Made CruxUtils::Port.open return the port.
[ruby-cruxutils.git] / 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)