Class: Slaw::Grammars::ZA::Act::Preface
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- Slaw::Grammars::ZA::Act::Preface
- Defined in:
- lib/slaw/grammars/za/act_nodes.rb
Instance Method Summary collapse
Instance Method Details
#to_xml(b, *args) ⇒ Object
81 82 83 84 85 86 87 88 89 90 91 92 |
# File 'lib/slaw/grammars/za/act_nodes.rb', line 81 def to_xml(b, *args) stmts = statements.elements if !stmts.empty? b.preface { |b| stmts.each { |element| for e in element.elements e.to_xml(b, "") if e.respond_to? :to_xml end } } end end |