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 Port.find(pattern)
+ PORTDIRS.inject([]) do |memo, pd|
+ tmp = Dir["#{pd}/#{pattern}"].map { |d| Port.new(d) }
+ memo.concat(tmp)
+ end
end
def initialize(dir)