Class: Cucumber::Runtime::FeaturesLoader

Inherits:
Object
  • Object
show all
Includes:
Formatter::Duration
Defined in:
lib/cucumber/runtime/features_loader.rb

Instance Method Summary collapse

Methods included from Formatter::Duration

#format_duration

Constructor Details

#initialize(feature_files, filters, tag_expression) ⇒ FeaturesLoader

Returns a new instance of FeaturesLoader.



9
10
11
# File 'lib/cucumber/runtime/features_loader.rb', line 9

def initialize(feature_files, filters, tag_expression)
  @feature_files, @filters, @tag_expression = feature_files, filters, tag_expression
end

Instance Method Details

#featuresObject



13
14
15
16
# File 'lib/cucumber/runtime/features_loader.rb', line 13

def features
  load unless @features
  @features
end