Class: Transit::Marshaler::MessagePack

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/transit/marshaler/jruby/messagepack.rb

Instance Method Summary collapse

Methods included from Base

#emit_array, #emit_boolean, #emit_double, #emit_encoded, #emit_int, #emit_map, #emit_nil, #emit_string, #emit_tagged_value, #escape, #find_handler, #marshal, #marshal_top, #parse_options, #verbose_handlers

Constructor Details

#initialize(io, opts) ⇒ MessagePack

Returns a new instance of MessagePack.



26
27
28
# File 'lib/transit/marshaler/jruby/messagepack.rb', line 26

def initialize(io, opts)
  parse_options(default_opts.merge(opts))
end

Instance Method Details

#default_optsObject



20
21
22
23
24
# File 'lib/transit/marshaler/jruby/messagepack.rb', line 20

def default_opts
  {:prefer_strings => false,
    :max_int       => MAX_INT,
    :min_int       => MIN_INT}
end