lib/checkm.rb in checkm-0.0.3 vs lib/checkm.rb in checkm-0.0.4
- old
+ new
@@ -65,9 +65,13 @@
def to_s
@lines.join("\n")
end
+ def to_hash
+ Hash[*@entries.map { |x| [x.sourcefileorurl, x] }.flatten]
+ end
+
private
def parse_lines
@lines.each do |line|
case line