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
305 306 307 |
# File 'lib/slaw/grammars/za/act_nodes.rb', line 305 def num subsection_prefix.num.text_value end |
#to_xml(b, idprefix, i) ⇒ Object
309 310 311 312 313 314 315 316 317 |
# File 'lib/slaw/grammars/za/act_nodes.rb', line 309 def to_xml(b, idprefix, i) id = idprefix + num.gsub(/[()]/, '') idprefix = id + "." b.subsection(id: id) { |b| b.num(num) block_elements_with_inline.to_xml(b, idprefix) } end |