Class: Slaw::Grammars::ZA::Act::PartHeading
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- Slaw::Grammars::ZA::Act::PartHeading
- Defined in:
- lib/slaw/grammars/za/act_nodes.rb
Instance Method Summary collapse
Instance Method Details
#num ⇒ Object
155 156 157 |
# File 'lib/slaw/grammars/za/act_nodes.rb', line 155 def num part_heading_prefix.alphanums.text_value end |
#to_xml(b) ⇒ Object
159 160 161 162 163 164 165 166 |
# File 'lib/slaw/grammars/za/act_nodes.rb', line 159 def to_xml(b) b.num(num) if heading.respond_to? :inline_items b.heading { |b| heading.inline_items.to_xml(b) } end end |