From 20c597c6168f9cfecb1d7071b425c78c65b99349 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 14 May 2012 10:34:47 +0200 Subject: Room: remove useless respond_to? in start! and stop! --- lib/evendoors/room.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/evendoors/room.rb b/lib/evendoors/room.rb index 6497f02..8b62c24 100644 --- a/lib/evendoors/room.rb +++ b/lib/evendoors/room.rb @@ -67,12 +67,12 @@ module EvenDoors # def start! puts " * start #{path}" if @spin.debug_routing - @spots.values.each do |spot| spot.start! if spot.respond_to? :start! end + @spots.values.each do |spot| spot.start! end end # def stop! puts " * stop #{path}" if @spin.debug_routing - @spots.values.each do |spot| spot.stop! if spot.respond_to? :stop! end + @spots.values.each do |spot| spot.stop! end end # def search_down spath -- cgit v1.1-2-g2b99