Module: Property::Serialization::Marshal

Extended by:
Encoder
Includes:
Encoder
Defined in:
lib/property/serialization/marshal.rb

Overview

Use Marhsal to encode properties. Unless you have very good reasons to use Marshal, you should use the JSON serialization instead:

* it's faster at reading text/date based objects
* it's human readable
* no corruption risk if the version of Marshal changes
* it can be accessed by other languages then ruby

Defined Under Namespace

Modules: Encoder

Class Method Summary collapse

Methods included from Encoder

decode_properties, encode_properties

Class Method Details

.included(base) ⇒ Object



10
11
12
# File 'lib/property/serialization/marshal.rb', line 10

def self.included(base)
  base.extend Encoder
end