Class: Ox::Element

Inherits:
Object
  • Object
show all
Defined in:
lib/dagger/ox_extension.rb

Instance Method Summary collapse

Instance Method Details

#to_nodeObject



99
100
101
102
# File 'lib/dagger/ox_extension.rb', line 99

def to_node
  children = nodes.map { |n| n.class == self.class ? n.to_node : nil }.compact
  XMLNode.new(value, text, attributes, children)
end