Module: EDNGRAMMAR::Map3
- Defined in:
- lib/parser/edngrammar.rb
Instance Method Summary collapse
Instance Method Details
#ast ⇒ Object
2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 |
# File 'lib/parser/edngrammar.rb', line 2193 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 |