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.4.10/lib/rexml/doctype.rb, line 243
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.4.10/lib/rexml/doctype.rb, line 266
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.4.10/lib/rexml/doctype.rb, line 251
def to_s
notation = "<!NOTATION #{@name} #{@middle}"
notation << " #{@public.inspect}" if @public
notation << " #{@system.inspect}" if @system
notation << ">"
notation
end
No documentation available
lib/rexml/doctype.rb
View on GitHub
# File tmp/rubies/ruby-2.4.10/lib/rexml/doctype.rb, line 259
def write( output, indent=-1 )
output << to_s
end
No documentation available