class CucumberFM::Statistic
Public Instance Methods
overal()
click to toggle source
# File lib/cucumber_f_m/statistic.rb, line 4 def overal cfm end
various()
click to toggle source
# File lib/cucumber_f_m/statistic.rb, line 8 def various @various ||= CucumberFM::Aggregator.new(cfm, nil, CucumberFM::FeatureElement::Component::Tags::TECHNICAL).collection end
Private Instance Methods
method_missing(m, * args, & block)
click to toggle source
Calls superclass method
# File lib/cucumber_f_m/statistic.rb, line 14 def method_missing(m, * args, & block) if CucumberFM::FeatureElement::Component::Tags::PATTERN.has_key?(m.to_sym) report(m) else super end end
patterns(label)
click to toggle source
# File lib/cucumber_f_m/statistic.rb, line 26 def patterns(label) [CucumberFM::FeatureElement::Component::Tags::PATTERN[label]] end
report(aggregate_by)
click to toggle source
# File lib/cucumber_f_m/statistic.rb, line 22 def report(aggregate_by) CucumberFM::Aggregator.new(cfm, (aggregate_by.is_a?(Regexp) ? aggregate_by : patterns(aggregate_by))).collection end