summaryrefslogtreecommitdiffstats
path: root/lib/evendoors/space.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/evendoors/space.rb')
-rw-r--r--lib/evendoors/space.rb24
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/evendoors/space.rb b/lib/evendoors/space.rb
new file mode 100644
index 0000000..6579003
--- /dev/null
+++ b/lib/evendoors/space.rb
@@ -0,0 +1,24 @@
+#! /usr/bin/env ruby
+# -*- coding: UTF-8 -*-
+
+#
+module EvenDoors
+ #
+ class Space < Room
+ #
+ def initialize n, args={}
+ super n, nil
+ EvenDoors::Twirl.debug = args[:debug] || false
+ end
+ #
+ def twirl!
+ @spots.values.each do |spot| spot.start! end
+ EvenDoors::Twirl.twirl!
+ @spots.values.each do |spot| spot.stop! end
+ end
+ #
+ end
+ #
+end
+#
+# EOF