Class: Slaw::Grammars::ZA::Act::ChapterHeading
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- Slaw::Grammars::ZA::Act::ChapterHeading
- Defined in:
- lib/slaw/grammars/za/act_nodes.rb
Instance Method Summary collapse
Instance Method Details
#num ⇒ Object
218 219 220 |
# File 'lib/slaw/grammars/za/act_nodes.rb', line 218 def num chapter_heading_prefix.alphanums.text_value end |
#to_xml(b) ⇒ Object
222 223 224 225 226 227 228 229 |
# File 'lib/slaw/grammars/za/act_nodes.rb', line 222 def to_xml(b) b.num(num) if heading.respond_to? :inline_items b.heading { |b| heading.inline_items.to_xml(b) } end end |