Class: Rspec::Bash::RubyStubMarshaller

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec/bash/server/ruby_stub_marshaller.rb

Instance Method Summary collapse

Instance Method Details

#marshal(object_to_marshal) ⇒ Object



8
9
10
# File 'lib/rspec/bash/server/ruby_stub_marshaller.rb', line 8

def marshal(object_to_marshal)
  Marshal.dump(object_to_marshal)
end

#unmarshal(message_to_unmarshal) ⇒ Object



4
5
6
# File 'lib/rspec/bash/server/ruby_stub_marshaller.rb', line 4

def unmarshal(message_to_unmarshal)
  Marshal.load(message_to_unmarshal)
end