summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-05-06 14:38:57 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-05-07 12:05:55 +0200
commit2c4c391d054ddaf6c2f5caa6912d50c120285c42 (patch)
tree78fda60575c4b9ecbf19e2699900b945bf71599d /lib
parentc119512efa614916195642b64f9103e70bd85587 (diff)
downloadedoors-ruby-2c4c391d054ddaf6c2f5caa6912d50c120285c42.zip
edoors-ruby-2c4c391d054ddaf6c2f5caa6912d50c120285c42.tar.gz
Root: add space method
Diffstat (limited to 'lib')
-rw-r--r--lib/evendoors/room.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/evendoors/room.rb b/lib/evendoors/room.rb
index 29e3b75..2a38ac9 100644
--- a/lib/evendoors/room.rb
+++ b/lib/evendoors/room.rb
@@ -37,6 +37,10 @@ module EvenDoors
@spots.values.each do |spot| spot.stop! if spot.respond_to? :stop! end
end
#
+ def space
+ ( @parent.nil? ? self : @parent.space )
+ end
+ #
def try_links p
puts " * try_links ..." if EvenDoors::Twirl.debug
pending_link = nil