Following are used as class identifiers in Hash values. No duplicates allowed.
Following are used as Hash keys. No duplicates allowed.
Serialize an object into a String
options (map<Symbol,Object>): Options [default = {}]
:version (String): The version to be used to encode
String: Serialized object
# File lib/ruby-serial.rb, line 18 def self.dump(obj, options = {}) return Serializer.new(obj, options).dump end
Deserialize an object from a String
data (String): Data to deserialize
Object: Corresponding Ruby object
# File lib/ruby-serial.rb, line 28 def self.load(data) return Deserializer.new(data).load end