Class: Slaw::ZA::Act::PartHeading
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- Slaw::ZA::Act::PartHeading
- Defined in:
- lib/slaw/za/act_nodes.rb
Instance Method Summary collapse
Instance Method Details
#num ⇒ Object
140 141 142 |
# File 'lib/slaw/za/act_nodes.rb', line 140 def num part_heading_prefix.alphanums.text_value end |
#title ⇒ Object
144 145 146 147 148 |
# File 'lib/slaw/za/act_nodes.rb', line 144 def title if heading.text_value and heading.respond_to? :content heading.content.text_value.strip end end |
#to_xml(b) ⇒ Object
150 151 152 153 |
# File 'lib/slaw/za/act_nodes.rb', line 150 def to_xml(b) b.num(num) b.heading(title) if title end |