Class: Cucumber::FileSpecs
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/file_specs.rb
Defined Under Namespace
Classes: FileSpec
Constant Summary collapse
- FILE_COLON_LINE_PATTERN =
:nodoc:
/^([\w\W]*?)(?::([\d:]+))?$/
Instance Method Summary collapse
- #files ⇒ Object
-
#initialize(file_specs) ⇒ FileSpecs
constructor
A new instance of FileSpecs.
- #locations ⇒ Object
Constructor Details
#initialize(file_specs) ⇒ FileSpecs
Returns a new instance of FileSpecs.
10 11 12 13 14 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/file_specs.rb', line 10 def initialize(file_specs) Cucumber.logger.debug("Features:\n") @file_specs = file_specs.map { |spec| FileSpec.new(spec) } Cucumber.logger.debug("\n") end |
Instance Method Details
#files ⇒ Object
20 21 22 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/file_specs.rb', line 20 def files @file_specs.map(&:file).uniq end |
#locations ⇒ Object
16 17 18 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/file_specs.rb', line 16 def locations @file_specs.map(&:locations).flatten end |