From 7ddad9628c9c1431fbdf4d2f1917252f9fd97e7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 14 May 2012 10:33:35 +0200 Subject: Spot: add bodyless start! stop! hibernate! resume! --- lib/evendoors/spot.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/lib/evendoors/spot.rb b/lib/evendoors/spot.rb index a1106a7..75114d3 100644 --- a/lib/evendoors/spot.rb +++ b/lib/evendoors/spot.rb @@ -36,6 +36,23 @@ module EvenDoors attr_reader :name, :path, :spin attr_accessor :viewer, :parent # + def start! + # override this to initialize yout object on stystem start + end + # + def stop! + # override this to initialize yout object on stystem stop + end + # + def hibernate! + # override this to save your object state on hibernate + {} + end + # + def resume! o + # override this to restore your object state on resume + end + # end # end -- cgit v1.1-2-g2b99