Class: Slaw::Grammars::ZA::Act::Crossheading
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- Slaw::Grammars::ZA::Act::Crossheading
- Defined in:
- lib/slaw/grammars/za/act_nodes.rb
Instance Method Summary collapse
Instance Method Details
#to_xml(b, idprefix, i = 0) ⇒ Object
373 374 375 376 377 378 379 380 381 382 |
# File 'lib/slaw/grammars/za/act_nodes.rb', line 373 def to_xml(b, idprefix, i=0) cnt = Slaw::Grammars::Counters.counters[idprefix]['hcontainer'] += 1 id = "#{idprefix}hcontainer_#{cnt}" b.hcontainer(eId: id, name: 'crossheading') { |b| b.heading { |b| inline_items.to_xml(b, idprefix) } } end |