Class: Couchbase::Transcoder::Marshal

Inherits:
Base
  • Object
show all
Defined in:
lib/couchbase/transcoder.rb

Instance Method Summary collapse

Instance Method Details

#decode(d) ⇒ Object



53
54
55
# File 'lib/couchbase/transcoder.rb', line 53

def decode(d)
  ::Marshal.load super.getData.to_s
end

#encode(o) ⇒ Object



57
58
59
# File 'lib/couchbase/transcoder.rb', line 57

def encode(o)
  super ::Marshal.dump(o)
end