Module: HGRAMMAR::AppStringH2

Defined in:
lib/cbor-diagnostic-app/hgrammar.rb

Instance Method Summary collapse

Instance Method Details

#astObject



38
39
40
41
# File 'lib/cbor-diagnostic-app/hgrammar.rb', line 38

def ast
  e1 = elements[1].elements
  e1.map {|e| Integer(e.elements[0].text_value + e.elements[2].text_value, 16).chr("BINARY")}.join.b
end