Class: CucumberStatistics::UnusedSteps

Inherits:
Object
  • Object
show all
Defined in:
lib/cucumber_statistics/unused_steps.rb

Instance Method Summary collapse

Constructor Details

#initializeUnusedSteps

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

#allObject



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