Module: Property::Serialization::YAML::Encoder

Included in:
Property::Serialization::YAML, Property::Serialization::YAML
Defined in:
lib/property/serialization/yaml.rb

Instance Method Summary collapse

Instance Method Details

#decode_properties(string) ⇒ Object

Decode Marshal encoded properties



17
18
19
# File 'lib/property/serialization/yaml.rb', line 17

def decode_properties(string)
  ::YAML::load(string)
end

#encode_properties(properties) ⇒ Object

Encode properties with Marhsal



12
13
14
# File 'lib/property/serialization/yaml.rb', line 12

def encode_properties(properties)
  ::YAML.dump(properties)
end