Module: Qwirk::MarshalStrategy::None

Extended by:
None
Included in:
None
Defined in:
lib/qwirk/marshal_strategy/none.rb

Overview

Should only be used with InMemory strategy

Instance Method Summary collapse

Instance Method Details

#marshal(object) ⇒ Object



15
16
17
# File 'lib/qwirk/marshal_strategy/none.rb', line 15

def marshal(object)
  object
end

#marshal_typeObject



7
8
9
# File 'lib/qwirk/marshal_strategy/none.rb', line 7

def marshal_type
  :bytes
end

#to_symObject



11
12
13
# File 'lib/qwirk/marshal_strategy/none.rb', line 11

def to_sym
  :none
end

#unmarshal(msg) ⇒ Object



19
20
21
# File 'lib/qwirk/marshal_strategy/none.rb', line 19

def unmarshal(msg)
  msg
end