From acafe90296b1fa2fd0a5bb08d1d6d91b8de745b2 Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Fri, 29 Sep 2006 17:31:15 +0200 Subject: [PATCH] Made CruxUtils::Port.open return the port. --- lib/cruxutils/port.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/cruxutils/port.rb b/lib/cruxutils/port.rb index 0e84fa5..ecc1113 100644 --- a/lib/cruxutils/port.rb +++ b/lib/cruxutils/port.rb @@ -15,7 +15,9 @@ class Port COMMENT_MAP["Nice to have"] = :nice_to_have def Port.open(dir) - yield Port.new(dir) + tmp = Port.new(dir) + yield tmp + tmp end def initialize(dir) -- 2.30.2