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
379 380 381 382 383 384 385 386 |
# File 'lib/slaw/grammars/za/act_nodes.rb', line 379 def to_xml(b, idprefix, i=0) cnt = Slaw::Grammars::Counters.counters[idprefix]['crossHeading'] += 1 id = "#{idprefix}crossHeading_#{cnt}" b.crossHeading(eId: id) { |b| inline_items.to_xml(b, idprefix) } end |