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
Constant Summary collapse
- @@counters =
{}
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.counters ⇒ Object
353 354 355 |
# File 'lib/slaw/grammars/za/act_nodes.rb', line 353 def self.counters @@counters end |
Instance Method Details
#to_xml(b, idprefix, i = 0) ⇒ Object
357 358 359 360 361 362 363 364 365 366 367 |
# File 'lib/slaw/grammars/za/act_nodes.rb', line 357 def to_xml(b, idprefix, i=0) @@counters[idprefix] ||= -1 @@counters[idprefix] += 1 id = "#{idprefix}crossheading-#{@@counters[idprefix]}" b.hcontainer(id: id, name: 'crossheading') { |b| b.heading { |b| inline_items.to_xml(b, idprefix) } } end |