Class: Cucumber::Unit

Inherits:
Object show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/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/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/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/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/unit.rb', line 9

def step_count
  @step_collection.length
end