Sha256: d7693a33a9ff8fe42da7ec8a990b8e34b0b577c0ba579caa9c5dc38ce5e86fdc
Contents?: true
Size: 508 Bytes
Versions: 2
Compression:
Stored size: 508 Bytes
Contents
require 'kabuki/dump/object' require 'kabuki/dump/string' require 'kabuki/dump/symbol' require 'kabuki/dump/hash' require 'kabuki/dump/array' require 'kabuki/dump/set' require 'kabuki/dump/class' module Kabuki class Dump def self.encode(object) Marshal.dump(object) end def self.decode(string) Marshal.load(string) end end end class Object def kabuki_dump Kabuki::Dump.encode(self) end end class String def kabuki_load Kabuki::Dump.decode(self) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kabuki-0.0.3 | lib/kabuki/dump.rb |
kabuki-0.0.1 | lib/kabuki/dump.rb |