summaryrefslogtreecommitdiffstats
path: root/lib/edoors
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-06-11 22:25:37 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-06-11 22:25:37 +0200
commita19c8e272ac87c1494a975955854b8daa368bf27 (patch)
tree20f4179ea5734713f7e8c9674e6a25b8897ec0f9 /lib/edoors
parent4cffa7a15f82a318288e8e1bcb3fba5709fa3ce3 (diff)
downloadedoors-ruby-a19c8e272ac87c1494a975955854b8daa368bf27.zip
edoors-ruby-a19c8e272ac87c1494a975955854b8daa368bf27.tar.gz
Door#garbage -> private Door#_garbage
Diffstat (limited to 'lib/edoors')
-rw-r--r--lib/edoors/board.rb2
-rw-r--r--lib/edoors/door.rb5
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/edoors/board.rb b/lib/edoors/board.rb
index a837512..f845dcd 100644
--- a/lib/edoors/board.rb
+++ b/lib/edoors/board.rb
@@ -59,7 +59,7 @@ module Edoors
end
@saved = p
receive_p p
- garbage if not @saved.nil?
+ _garbage if not @saved.nil?
end
#
end
diff --git a/lib/edoors/door.rb b/lib/edoors/door.rb
index ecbf4a9..c3e1995 100644
--- a/lib/edoors/door.rb
+++ b/lib/edoors/door.rb
@@ -51,18 +51,19 @@ module Edoors
@spin.release_p p
end
#
- def garbage
+ def _garbage
puts " ! #{path} didn't give back #{@saved}" if @spin.debug_errors
puts "\t#{@saved.data Edoors::FIELD_ERROR_MSG}" if @saved.action==Edoors::ACT_ERROR
release_p @saved
@saved = nil
end
+ private :_garbage
#
def process_p p
@viewer.receive_p p if @viewer
@saved = p
receive_p p
- garbage if not @saved.nil?
+ _garbage if not @saved.nil?
end
#
def process_sys_p p