Class: CucumberFM::Statistic

Inherits:
Struct
  • Object
show all
Defined in:
lib/cucumber_f_m/statistic.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(m, *args, &block) ⇒ Object (private)



14
15
16
17
18
19
20
# 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

Instance Attribute Details

#cfmObject

Returns the value of attribute cfm

Returns:

  • (Object)

    the current value of cfm



2
3
4
# File 'lib/cucumber_f_m/statistic.rb', line 2

def cfm
  @cfm
end

Instance Method Details

#overalObject



4
5
6
# File 'lib/cucumber_f_m/statistic.rb', line 4

def overal
  cfm
end

#variousObject



8
9
10
# File 'lib/cucumber_f_m/statistic.rb', line 8

def various
  @various ||= CucumberFM::Aggregator.new(cfm, nil, CucumberFM::FeatureElement::Component::Tags::TECHNICAL).collection
end