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



122
123
124
125
126
127
128
129
130
131
# File 'lib/slaw/grammars/za/act_nodes.rb', line 122

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