Class: Cucumber::FileSpecs
- Inherits:
-
Object
- Object
- Cucumber::FileSpecs
- Defined in:
- lib/cucumber/file_specs.rb
Defined Under Namespace
Classes: FileSpec
Constant Summary collapse
- FILE_COLON_LINE_PATTERN =
:nodoc:
/^([\w\W]*?)(?::([\d:]+))?$/.freeze
Instance Method Summary collapse
- #files ⇒ Object
-
#initialize(file_specs) ⇒ FileSpecs
constructor
A new instance of FileSpecs.
- #locations ⇒ Object
Constructor Details
permalink #initialize(file_specs) ⇒ FileSpecs
Returns a new instance of FileSpecs.
10 11 12 13 14 |
# File '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
permalink #files ⇒ Object
[View source] [View on GitHub]
20 21 22 |
# File 'lib/cucumber/file_specs.rb', line 20 def files @file_specs.map(&:file).uniq end |
permalink #locations ⇒ Object
[View source] [View on GitHub]
16 17 18 |
# File 'lib/cucumber/file_specs.rb', line 16 def locations @file_specs.map(&:locations).flatten end |