class Slaw::Grammars::ZA::Act::SectionTitleType2
Public Instance Methods
num()
click to toggle source
a section title of the form:
-
Definitions
In this act…
In this format, the title is optional and the section content may start where we think the title is.
# File lib/slaw/grammars/za/act_nodes.rb, line 284 def num section_title_prefix.number_letter.text_value end
to_xml(b, *args)
click to toggle source
# File lib/slaw/grammars/za/act_nodes.rb, line 288 def to_xml(b, *args) b.num("#{num}.") if section_title.respond_to? :inline_items and section_title.inline_items.text_value b.heading { |b| section_title.inline_items.to_xml(b) } else b.heading end end