Class: CucumberStatistics::UnusedSteps
- Inherits:
-
Object
- Object
- CucumberStatistics::UnusedSteps
- Defined in:
- lib/cucumber_statistics/unused_steps.rb
Instance Method Summary collapse
- #all ⇒ Object
-
#initialize ⇒ UnusedSteps
constructor
A new instance of UnusedSteps.
- #record(step_name, where) ⇒ Object
Constructor Details
#initialize ⇒ UnusedSteps
Returns a new instance of UnusedSteps.
3 4 5 |
# File 'lib/cucumber_statistics/unused_steps.rb', line 3 def initialize @all = Hash.new end |
Instance Method Details
#all ⇒ Object
14 15 16 |
# File 'lib/cucumber_statistics/unused_steps.rb', line 14 def all @all end |
#record(step_name, where) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/cucumber_statistics/unused_steps.rb', line 7 def record step_name, where result = @all[step_name] result = where @all[step_name] ||= result end |