Module: Qwirk::MarshalStrategy::YAML
Instance Method Summary collapse
Instance Method Details
#marshal(object) ⇒ Object
14 15 16 |
# File 'lib/qwirk/marshal_strategy/yaml.rb', line 14 def marshal(object) object.to_yaml end |
#marshal_type ⇒ Object
6 7 8 |
# File 'lib/qwirk/marshal_strategy/yaml.rb', line 6 def marshal_type :text end |
#to_sym ⇒ Object
10 11 12 |
# File 'lib/qwirk/marshal_strategy/yaml.rb', line 10 def to_sym :yaml end |
#unmarshal(msg) ⇒ Object
18 19 20 |
# File 'lib/qwirk/marshal_strategy/yaml.rb', line 18 def unmarshal(msg) ::YAML.load(msg) end |