Parent

Methods

MetricFu::Stats

Public Instance Methods

analyze() click to toggle source
# File lib/generators/stats.rb, line 9
def analyze
  output = File.open(metric_directory + '/stats.txt').read
  lines = remove_noise(output)

  @stats = {}
  
  set_global_stats(lines.pop)
  set_granular_stats(lines)

  @stats
end
emit() click to toggle source
# File lib/generators/stats.rb, line 5
def emit
  `rake stats > #{metric_directory + '/stats.txt'}`
end
to_h() click to toggle source
# File lib/generators/stats.rb, line 21
def to_h
  {:stats => @stats}
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.