class REXML::NotationDecl
Attributes
Public Class Methods
Source
# File lib/rexml/doctype.rb, line 282 def initialize name, middle, pub, sys super(nil) @name = name @middle = middle @public = pub @system = sys end
Calls superclass method
REXML::Child::new
Public Instance Methods
Source
# File lib/rexml/doctype.rb, line 307 def name @name end
This method retrieves the name of the notation.
Method contributed by Henrik Martensson
Source
# File lib/rexml/doctype.rb, line 290 def to_s context = nil context = parent.context if parent notation = "<!NOTATION #{@name}" reference_writer = ReferenceWriter.new(@middle, @public, @system, context) reference_writer.write(notation) notation << ">" notation end
Source
# File lib/rexml/doctype.rb, line 300 def write( output, indent=-1 ) output << to_s end