Module: EDNGRAMMAR::Map3
- Defined in:
- lib/parser/edngrammar.rb
Instance Method Summary collapse
Instance Method Details
#ast ⇒ Object
1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 |
# File 'lib/parser/edngrammar.rb', line 1775 def ast r = if e = elements[3].elements Hash[ [e[0].ast] + e[2].elements.map {|x| x.kp.ast } ] else {} end if ei = spec.text_value[1..-1] if ei == "" r.cbor_stream! else warn "*** ignoring unimplemented encoding indicator #{ei.inspect} after \x7b" end end r end |