Class: Transit::Unmarshaler::Json::ParseHandler Private

Inherits:
Object
  • Object
show all
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

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_startObject

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.

Raises:

  • (Exception)


33
34
35
# 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) ⇒ 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_startObject

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