diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-03 22:27:16 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-03 22:27:16 +0200 |
commit | 2ee48c4f18470e733f244c659221e243ff998416 (patch) | |
tree | 62949886912b3dc5eb9e000b211e7f45f17ed978 /lib/evendoors/space.rb | |
download | edoors-ruby-2ee48c4f18470e733f244c659221e243ff998416.zip edoors-ruby-2ee48c4f18470e733f244c659221e243ff998416.tar.gz |
initial commit
Diffstat (limited to 'lib/evendoors/space.rb')
-rw-r--r-- | lib/evendoors/space.rb | 24 |
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 |