summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-05-14 10:33:35 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-05-14 10:33:35 +0200
commit7ddad9628c9c1431fbdf4d2f1917252f9fd97e7d (patch)
tree52af840f0ae42281edd7357c9fb05ecb4455eed6
parentd3a528a728614d617ff326346059bdbf71eb64dc (diff)
downloadedoors-ruby-7ddad9628c9c1431fbdf4d2f1917252f9fd97e7d.zip
edoors-ruby-7ddad9628c9c1431fbdf4d2f1917252f9fd97e7d.tar.gz
Spot: add bodyless start! stop! hibernate! resume!
-rw-r--r--lib/evendoors/spot.rb17
1 files changed, 17 insertions, 0 deletions
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