Class: Slaw::ZA::Act::BlocklistItem
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- Slaw::ZA::Act::BlocklistItem
- Defined in:
- lib/slaw/za/act_nodes.rb
Instance Method Summary collapse
Instance Method Details
#num ⇒ Object
355 356 357 |
# File 'lib/slaw/za/act_nodes.rb', line 355 def num blocklist_item_prefix.text_value end |
#to_xml(b, idprefix) ⇒ Object
359 360 361 362 363 364 365 366 |
# File 'lib/slaw/za/act_nodes.rb', line 359 def to_xml(b, idprefix) b.item(id: idprefix + num.gsub(/[()]/, '')) { |b| b.num(num) b.p { |b| item_content.clauses.to_xml(b, idprefix) if respond_to? :item_content and item_content.respond_to? :clauses } } end |