Method: Cucumber::Cli::Options#initialize

Defined in:
lib/cucumber/cli/options.rb

#initialize(out_stream = $stdout, error_stream = $stderr, options = {}) ⇒ Options

Returns a new instance of Options.



73
74
75
76
77
78
79
80
81
82
83
84
85
# File 'lib/cucumber/cli/options.rb', line 73

def initialize(out_stream = $stdout, error_stream = $stderr, options = {})
  @out_stream   = out_stream
  @error_stream = error_stream

  @default_profile = options[:default_profile]
  @profiles = options[:profiles] || []
  @overridden_paths = []
  @options = default_options.merge(options)
  @profile_loader = options[:profile_loader]
  @options[:skip_profile_information] = options[:skip_profile_information]

  @disable_profile_loading = nil
end