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



364
365
366
# File 'lib/slaw/grammars/za/act_nodes.rb', line 364

def num
  blocklist_item_prefix.text_value
end

#to_xml(b, idprefix) ⇒ Object



368
369
370
371
372
373
374
375
# File 'lib/slaw/grammars/za/act_nodes.rb', line 368

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