From 2c4c391d054ddaf6c2f5caa6912d50c120285c42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Sun, 6 May 2012 14:38:57 +0200 Subject: Root: add space method --- lib/evendoors/room.rb | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.1-2-g2b99