Class: Slaw::Grammars::ZA::Act::BlockElements
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- Slaw::Grammars::ZA::Act::BlockElements
- Defined in:
- lib/slaw/grammars/za/act_nodes.rb
Instance Method Summary collapse
Instance Method Details
#to_xml(b, idprefix = '', i = 0) ⇒ Object
318 319 320 321 322 323 324 325 326 327 328 |
# File 'lib/slaw/grammars/za/act_nodes.rb', line 318 def to_xml(b, idprefix='', i=0) cnt = Slaw::Grammars::Counters.counters[idprefix]['hcontainer'] += 1 id = "#{idprefix}hcontainer_#{cnt}" idprefix = "#{id}__" b.hcontainer(eId: id, name: 'hcontainer') { |b| b.content { |b| elements.each_with_index { |e, i| e.to_xml(b, idprefix, i) } } } end |