Class: Ox::Element
- Inherits:
-
Object
- Object
- Ox::Element
- Defined in:
- lib/dagger/ox_extension.rb
Instance Method Summary collapse
Instance Method Details
#to_hash ⇒ Object
40 41 42 43 |
# File 'lib/dagger/ox_extension.rb', line 40 def to_hash children = nodes.map { |n| n.class == self.class ? n.to_hash : nil }.compact XMLNode.new(value, text, attributes, children) end |