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 0e84fa5..ecc1113 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)