# File lib/generators/rails_best_practices.rb, line 14 def analyze @matches = @output.chomp.split("\n").map{|m| m.split(" - ") } total = @matches.pop 2.times { @matches.pop } # ignore wiki link @matches.reject! {|array| array.empty? } @matches.map! do |match| file, line = match[0].split(':') problem = match[1] {:file => file, :line => line, :problem => problem} end @rails_best_practices_results = {:total => total, :problems => @matches} end
Generated with the Darkfish Rdoc Generator 2.