diff options
Diffstat (limited to 'lib/evendoors/spot.rb')
-rw-r--r-- | lib/evendoors/spot.rb | 5 |
1 files changed, 5 insertions, 0 deletions
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 |