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
299 300 301 |
# File 'lib/slaw/grammars/za/act_nodes.rb', line 299 def num subsection_prefix.num.text_value end |
#to_xml(b, idprefix, i) ⇒ Object
303 304 305 306 307 308 309 310 311 |
# File 'lib/slaw/grammars/za/act_nodes.rb', line 303 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 |