Class: XML::Smart::Dom::Other

Inherits:
Text
  • Object
show all
Defined in:
lib/xml/smart_domother.rb

Instance Method Summary collapse

Methods inherited from Text

#===, #dump, #initialize, #parent, #path, #text, #text=, #to_f, #to_i, #to_s

Constructor Details

This class inherits a constructor from XML::Smart::Dom::Text

Instance Method Details

#otypeObject



6
7
8
9
10
11
# File 'lib/xml/smart_domother.rb', line 6

def otype
  case @text
    when Nokogiri::XML::Comment; :comment
    else; :unknown
  end
end