Class: Cucumber::Unit
Instance Method Summary collapse
-
#initialize(step_collection) ⇒ Unit
constructor
A new instance of Unit.
- #step_count ⇒ Object
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_count ⇒ Object
7 8 9 |
# File 'lib/cucumber/unit.rb', line 7 def step_count @step_collection.length end |