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
190 191 192 |
# File 'lib/slaw/grammars/za/act_nodes.rb', line 190 def num chapter_heading_prefix.alphanums.text_value end |
#title ⇒ Object
194 195 196 197 198 |
# File 'lib/slaw/grammars/za/act_nodes.rb', line 194 def title if heading.text_value and heading.respond_to? :content heading.content.text_value.strip end end |
#to_xml(b) ⇒ Object
200 201 202 203 |
# File 'lib/slaw/grammars/za/act_nodes.rb', line 200 def to_xml(b) b.num(num) b.heading(title) if title end |