Class: Cucumber::Unit
- Inherits:
-
Object
- Object
- Cucumber::Unit
- Defined in:
- lib/cucumber/unit.rb
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.
5 6 7 |
# File 'lib/cucumber/unit.rb', line 5 def initialize(step_collection) @step_collection = step_collection end |
Instance Method Details
#step_count ⇒ Object
9 10 11 |
# File 'lib/cucumber/unit.rb', line 9 def step_count @step_collection.length end |