class Transit::Unmarshaler::Json::ParseHandler
Public Instance Methods
add_value(v)
click to toggle source
# File lib/transit/unmarshaler/cruby/json.rb, line 26 def add_value(v) @yield_v[v] if @yield_v end
array_append(a,v)
click to toggle source
# File lib/transit/unmarshaler/cruby/json.rb, line 31 def array_append(a,v) a << v end
array_start()
click to toggle source
# File lib/transit/unmarshaler/cruby/json.rb, line 30 def array_start() [] end
each(&block)
click to toggle source
# File lib/transit/unmarshaler/cruby/json.rb, line 25 def each(&block) @yield_v = block end
error(message, line, column)
click to toggle source
# File lib/transit/unmarshaler/cruby/json.rb, line 33 def error(message, line, column) raise Exception.new(message, line, column) end
hash_set(h,k,v)
click to toggle source
# File lib/transit/unmarshaler/cruby/json.rb, line 29 def hash_set(h,k,v) h.store(k,v) end
hash_start()
click to toggle source
# File lib/transit/unmarshaler/cruby/json.rb, line 28 def hash_start() {} end