Class: Slaw::Grammars::ZA::Act::Preamble

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

Instance Method Summary collapse

Instance Method Details

#to_xml(b, *args) ⇒ Object



95
96
97
98
99
100
101
102
103
# File 'lib/slaw/grammars/za/act_nodes.rb', line 95

def to_xml(b, *args)
  if text_value != ""
    b.preamble { |b|
      statements.elements.each { |e|
        e.to_xml(b, "")
      }
    }
  end
end