Method: Property::Serialization::Marshal::Encoder#encode_properties
- Defined in:
- lib/property/serialization/marshal.rb
#encode_properties(properties) ⇒ Object
Encode properties with Marhsal
16 17 18 19 20 |
# File 'lib/property/serialization/marshal.rb', line 16 def encode_properties(properties) # we limit dump depth to 0 (object only: no instance variables) # we have to protect Marshal from serializing instance variables by making a copy [::Marshal::dump(Properties[properties])].pack('m*') end |