Class: Cucumber::Unit

Inherits:
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.


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

def initialize(step_collection)
  @step_collection = step_collection
end

Instance Method Details

#step_countObject


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

def step_count
  @step_collection.length
end