Module: Qwirk::MarshalStrategy::String

Extended by:
String
Included in:
String
Defined in:
lib/qwirk/marshal_strategy/string.rb

Instance Method Summary collapse

Instance Method Details

#marshal(object) ⇒ Object



14
15
16
# File 'lib/qwirk/marshal_strategy/string.rb', line 14

def marshal(object)
  object.to_s
end

#marshal_typeObject



6
7
8
# File 'lib/qwirk/marshal_strategy/string.rb', line 6

def marshal_type
  :text
end

#to_symObject



10
11
12
# File 'lib/qwirk/marshal_strategy/string.rb', line 10

def to_sym
  :string
end

#unmarshal(msg) ⇒ Object



18
19
20
# File 'lib/qwirk/marshal_strategy/string.rb', line 18

def unmarshal(msg)
  msg
end