From a19c8e272ac87c1494a975955854b8daa368bf27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 11 Jun 2012 22:25:37 +0200 Subject: Door#garbage -> private Door#_garbage --- lib/edoors/board.rb | 2 +- lib/edoors/door.rb | 5 +++-- 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 -- cgit v1.1-2-g2b99