In Files

  • rexml/doctype.rb

Class/Module Index [+]

Quicksearch

REXML::NotationDecl

Attributes

public[RW]
system[RW]

Public Class Methods

new(name, middle, pub, sys) click to toggle source
 
               # File rexml/doctype.rb, line 242
def initialize name, middle, pub, sys
  super(nil)
  @name = name
  @middle = middle
  @public = pub
  @system = sys
end
            

Public Instance Methods

name() click to toggle source

This method retrieves the name of the notation.

Method contributed by Henrik Martensson

 
               # File rexml/doctype.rb, line 265
def name
  @name
end
            
to_s() click to toggle source
 
               # File rexml/doctype.rb, line 250
def to_s
  notation = "<!NOTATION #{@name} #{@middle}"
  notation << " #{@public.inspect}" if @public
  notation << " #{@system.inspect}" if @system
  notation << ">"
  notation
end
            
write( output, indent=-1 ) click to toggle source
 
               # File rexml/doctype.rb, line 258
def write( output, indent=-1 )
  output << to_s
end
            

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.

blog comments powered by Disqus