Class
Attributes
Read & Write
No documentation available
Read & Write
No documentation available
Class Methods
lib/rexml/doctype.rb
View on GitHub
# File tmp/rubies/ruby-2.5.9/lib/rexml/doctype.rb, line 281
def initialize name, middle, pub, sys
super(nil)
@name = name
@middle = middle
@public = pub
@system = sys
end
No documentation available
Instance Methods
#
lib/rexml/doctype.rb
View on GitHub
# File tmp/rubies/ruby-2.5.9/lib/rexml/doctype.rb, line 304
def name
@name
end
This method retrieves the name of the notation.
Method
contributed by Henrik Martensson
#
lib/rexml/doctype.rb
View on GitHub
# File tmp/rubies/ruby-2.5.9/lib/rexml/doctype.rb, line 289
def to_s
notation = "<!NOTATION #{@name}"
reference_writer = ReferenceWriter.new(@middle, @public, @system)
reference_writer.write(notation)
notation << ">"
notation
end
No documentation available
lib/rexml/doctype.rb
View on GitHub
# File tmp/rubies/ruby-2.5.9/lib/rexml/doctype.rb, line 297
def write( output, indent=-1 )
output << to_s
end
No documentation available