Class: Slaw::Grammars::ZA::Act::SubpartHeading

Inherits:
Treetop::Runtime::SyntaxNode
  • Object
show all
Defined in:
lib/slaw/grammars/za/act_nodes.rb

Instance Method Summary collapse

Instance Method Details

#numObject



188
189
190
# File 'lib/slaw/grammars/za/act_nodes.rb', line 188

def num
  subpart_heading_prefix.num.text_value.strip()
end

#to_xml(b) ⇒ Object



192
193
194
195
196
197
198
199
# File 'lib/slaw/grammars/za/act_nodes.rb', line 192

def to_xml(b)
  b.num(num) unless self.num.empty?
  if heading.respond_to? :inline_items
    b.heading { |b|
      heading.inline_items.to_xml(b)
    }
  end
end