Class: Cucumber::Unit

Inherits:
Object
  • Object
show all
Defined in:
lib/cucumber/unit.rb

Instance Method Summary collapse

Constructor Details

#initialize(step_collection) ⇒ Unit

Returns a new instance of Unit.



5
6
7
# File 'lib/cucumber/unit.rb', line 5

def initialize(step_collection)
  @step_collection = step_collection
end

Instance Method Details

#step_countObject



9
10
11
# File 'lib/cucumber/unit.rb', line 9

def step_count
  @step_collection.length
end