Made CruxUtils::Port.open return the port.
authorTilman Sauerbeck <tilman@code-monkey.de>
Fri, 29 Sep 2006 15:31:15 +0000 (17:31 +0200)
committerTilman Sauerbeck <tilman@code-monkey.de>
Fri, 29 Sep 2006 15:31:15 +0000 (17:31 +0200)
lib/cruxutils/port.rb

index 0e84fa57daa2ae21cdca40865972e066750cd66f..ecc111334e176af841b283efe5fcd8ada0033f0f 100644 (file)
@@ -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)