Class: Slaw::Grammars::ZA::Act::Subsection
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- Slaw::Grammars::ZA::Act::Subsection
- Defined in:
- lib/slaw/grammars/za/act_nodes.rb
Instance Method Summary collapse
Instance Method Details
#num ⇒ Object
332 333 334 |
# File 'lib/slaw/grammars/za/act_nodes.rb', line 332 def num subsection_prefix.num.text_value end |
#to_xml(b, idprefix, i) ⇒ Object
336 337 338 339 340 341 342 343 344 |
# File 'lib/slaw/grammars/za/act_nodes.rb', line 336 def to_xml(b, idprefix, i) id = idprefix + "subsec_" + Slaw::Grammars::Counters.clean(num) idprefix = id + "__" b.subsection(eId: id) { |b| b.num(num) block_elements_with_inline.to_xml(b, idprefix) } end |