Class: Rubyprot::Deserializer

Inherits:
Object
  • Object
show all
Defined in:
lib/rubyprot/deserializer.rb

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

.deserialize(name) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/rubyprot/deserializer.rb', line 3

def self.deserialize(name)
  raise "dump_path attribute must be set" unless Rubyprot.dump_path
  
  File.open(Rubyprot.dump_path + "/" + name) do |f|
    Marshal.load(f)
  end
end