Class: Slaw::Grammars::Inlines::Ref

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

Instance Method Summary collapse

Instance Method Details

#to_xml(b, idprefix) ⇒ Object



45
46
47
48
49
50
51
# File 'lib/slaw/grammars/inlines_nodes.rb', line 45

def to_xml(b, idprefix)
  b.ref(href: href.text_value) { |b|
    for e in content.elements
      e.inline_item.to_xml(b, idprefix)
    end
  }
end