Class: Transit::Unmarshaler::Json::ParseHandler Private
- Inherits:
-
Object
- Object
- Transit::Unmarshaler::Json::ParseHandler
- Defined in:
- lib/transit/unmarshaler/cruby/json.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #add_value(v) ⇒ Object private
- #array_append(a, v) ⇒ Object private
- #array_start ⇒ Object private
- #each(&block) ⇒ Object private
- #error(message, line, column) ⇒ Object private
- #hash_set(h, k, v) ⇒ Object private
- #hash_start ⇒ Object private
Instance Method Details
#add_value(v) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
26 |
# File 'lib/transit/unmarshaler/cruby/json.rb', line 26 def add_value(v) @yield_v[v] if @yield_v end |
#array_append(a, v) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
31 |
# File 'lib/transit/unmarshaler/cruby/json.rb', line 31 def array_append(a,v) a << v end |
#array_start ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
30 |
# File 'lib/transit/unmarshaler/cruby/json.rb', line 30 def array_start() [] end |
#each(&block) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
25 |
# File 'lib/transit/unmarshaler/cruby/json.rb', line 25 def each(&block) @yield_v = block end |
#error(message, line, column) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
33 34 35 |
# File 'lib/transit/unmarshaler/cruby/json.rb', line 33 def error(, line, column) raise Exception.new(, line, column) end |
#hash_set(h, k, v) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
29 |
# File 'lib/transit/unmarshaler/cruby/json.rb', line 29 def hash_set(h,k,v) h.store(k,v) end |
#hash_start ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
28 |
# File 'lib/transit/unmarshaler/cruby/json.rb', line 28 def hash_start() {} end |