From 4d75d72f0173567cc013eda0d4d78af442dc2a1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Fri, 11 May 2012 09:06:10 +0200 Subject: Room#spin -> Spot#spin --- lib/evendoors/room.rb | 5 ----- lib/evendoors/spot.rb | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/evendoors/room.rb b/lib/evendoors/room.rb index a3efc7a..4e06bf7 100644 --- a/lib/evendoors/room.rb +++ b/lib/evendoors/room.rb @@ -76,11 +76,6 @@ module EvenDoors @spots.values.each do |spot| spot.stop! if spot.respond_to? :stop! end end # - def spin - return @spin if @spin - @spin = ( @parent.nil? ? self : @parent.spin ) - end - # def search_down spath return self if spath==path return nil if (spath=~/^#{path}\/(\w+)\/?/)!=0 diff --git a/lib/evendoors/spot.rb b/lib/evendoors/spot.rb index 68c6676..fc87a32 100644 --- a/lib/evendoors/spot.rb +++ b/lib/evendoors/spot.rb @@ -38,6 +38,11 @@ module EvenDoors @path = ( @parent ? @parent.path+EvenDoors::PATH_SEP : '') + name end # + def spin + return @spin if @spin + @spin = ( @parent.nil? ? self : @parent.spin ) + end + # end # end -- cgit v1.1-2-g2b99