Class: Transit::Marshaler::VerboseJson Private
- Includes:
- VerboseHandlers
- Defined in:
- lib/transit/marshaler/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
- #emit_string(prefix, tag, value, as_map_key, cache) ⇒ Object private
- #emit_tagged_value(tag, rep, cache) ⇒ Object private
Methods included from VerboseHandlers
Methods inherited from BaseJson
#emit_array_end, #emit_array_start, #emit_int, #emit_map_end, #emit_map_start, #emit_value, #flush, #initialize
Methods included from Base
#build_handlers, #emit_array, #emit_boolean, #emit_double, #emit_encoded, #emit_map, #emit_nil, #escape, #find_handler, #marshal, #marshal_top, #parse_options
Constructor Details
This class inherits a constructor from Transit::Marshaler::BaseJson
Instance Method Details
#emit_string(prefix, tag, value, as_map_key, cache) ⇒ 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.
89 90 91 |
# File 'lib/transit/marshaler/cruby/json.rb', line 89 def emit_string(prefix, tag, value, as_map_key, cache) emit_value("#{prefix}#{tag}#{value}", as_map_key) end |
#emit_tagged_value(tag, rep, cache) ⇒ 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.
93 94 95 96 97 98 |
# File 'lib/transit/marshaler/cruby/json.rb', line 93 def emit_tagged_value(tag, rep, cache) emit_map_start(1) emit_string(ESC, "#", tag, true, cache) marshal(rep, false, cache) emit_map_end end |