Class: Slaw::Grammars::ZA::Act::BlocklistItem

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

Instance Method Summary collapse

Instance Method Details

#numObject



358
359
360
# File 'lib/slaw/grammars/za/act_nodes.rb', line 358

def num
  blocklist_item_prefix.text_value
end

#to_xml(b, idprefix) ⇒ Object



362
363
364
365
366
367
368
369
# File 'lib/slaw/grammars/za/act_nodes.rb', line 362

def to_xml(b, idprefix)
  b.item(eId: idprefix + "item_" + Slaw::Grammars::Counters.clean(num)) { |b|
    b.num(num)
    b.p { |b|
      item_content.inline_items.to_xml(b, idprefix) if respond_to? :item_content and item_content.respond_to? :inline_items
    }
  }
end