diff options
-rw-r--r-- | lib/evendoors/spin.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/evendoors/spin.rb b/lib/evendoors/spin.rb index e4f61cf..da340d3 100644 --- a/lib/evendoors/spin.rb +++ b/lib/evendoors/spin.rb @@ -135,6 +135,10 @@ module EvenDoors File.open(path||@hibernate_path,'w') do |f| f << JSON.pretty_generate(self) end end # + def self.resume! path=nil + self.json_create JSON.load File.open(path||@hibernate_path,'r') { |f| f.read } + end + # end # end |