lib/base/report.rb in edouard-metric_fu-1.2.0 vs lib/base/report.rb in edouard-metric_fu-1.2.1

- old
+ new

@@ -48,10 +48,10 @@ # classes to the aggregate report_hash managed by this hash. # # @param report_type Hash # The hash to add to the aggregate report_hash def add(report_type) - clazz = MetricFu.const_get(report_type.to_s.capitalize) + clazz = MetricFu.const_get(report_type.to_s.gsub(/\/(.?)/) { "::#{$1.upcase}" }.gsub(/(?:^|_)(.)/) { $1.upcase }) report_hash.merge!(clazz.generate_report) end # Saves the passed in content to the passed in directory. If # a filename is passed in it will be used as the name of the