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

- (FeaturesLoader) initialize(feature_files, filters, tag_expression)

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

- (Object) features



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

def features
  load unless (defined? @features) and @features
  @features
end