Class: TSV::BinarySerializer

Inherits:
Object
  • Object
show all
Defined in:
lib/rbbt/tsv/serializers.rb

Class Method Summary collapse

Class Method Details

.dump(o) ⇒ Object



10
# File 'lib/rbbt/tsv/serializers.rb', line 10

def self.dump(o); [o].pack('m'); end

.load(str) ⇒ Object



11
# File 'lib/rbbt/tsv/serializers.rb', line 11

def self.load(str); str.unpack('m').first; end