Class: Cucumber::FileSpecs

Inherits:
Object
  • Object
show all
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

Constructor Details

#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

#filesObject



20
21
22
# File 'lib/cucumber/file_specs.rb', line 20

def files
  @file_specs.map(&:file).uniq
end

#locationsObject



16
17
18
# File 'lib/cucumber/file_specs.rb', line 16

def locations
  @file_specs.map(&:locations).flatten
end