class REXML::NotationDecl
Attributes
Public Class Methods
Source
# File lib/rexml/doctype.rb, line 278 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 302 def name @name end
This method retrieves the name of the notation.
Method contributed by Henrik Martensson
Source
# File lib/rexml/doctype.rb, line 286 def to_s context = parent&.context 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 295 def write( output, indent=-1 ) output << to_s end