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.



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

def initialize(step_collection)
  @step_collection = step_collection
end

Instance Method Details

#step_countObject



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

def step_count
  @step_collection.length
end