Class: Slaw::Grammars::Body

Inherits:
Treetop::Runtime::SyntaxNode
  • Object
show all
Defined in:
lib/slaw/grammars/core_nodes.rb

Instance Method Summary collapse

Instance Method Details

#to_xml(b) ⇒ Object



10
11
12
13
14
# File 'lib/slaw/grammars/core_nodes.rb', line 10

def to_xml(b)
  b.body { |b|
    children.elements.each_with_index { |e, i| e.to_xml(b, '', i) }
  }
end