Module: EDNGRAMMAR::Map3
- Defined in:
- lib/parser/edngrammar.rb
Instance Method Summary collapse
Instance Method Details
#ast ⇒ Object
1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 |
# File 'lib/parser/edngrammar.rb', line 1991 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 |