Class: Cucumber::FileSpecs::FileSpec
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/file_specs.rb
Instance Attribute Summary collapse
-
#file ⇒ Object
readonly
Returns the value of attribute file.
Instance Method Summary collapse
-
#initialize(spec) ⇒ FileSpec
constructor
A new instance of FileSpec.
- #locations ⇒ Object
Constructor Details
#initialize(spec) ⇒ FileSpec
Returns a new instance of FileSpec.
25 26 27 28 29 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/file_specs.rb', line 25 def initialize(spec) @file, @lines = *FILE_COLON_LINE_PATTERN.match(spec).captures Cucumber.logger.debug(" * #{@file}\n") @lines = String(@lines).split(':').map { |line| Integer(line) } end |
Instance Attribute Details
#file ⇒ Object (readonly)
Returns the value of attribute file.
31 32 33 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/file_specs.rb', line 31 def file @file end |