Parent

Class/Module Index [+]

Quicksearch

RSpec::Core::ConfigurationOptions

Responsible for utilizing externally provided configuration options, whether via the command line, `.rspec`, `~/.rspec`, `.rspec-local` or a custom options file.

Attributes

options[R]

@return [Hash] the final merged options, drawn from all external sources

Public Class Methods

new(args) click to toggle source

@param args [Array<String>] command line arguments

# File lib/rspec/core/configuration_options.rb, line 12
def initialize(args)
  @args = args.dup
  organize_options
end

Public Instance Methods

configure(config) click to toggle source

Updates the provided {Configuration} instance based on the provided external configuration options.

@param config [Configuration] the configuration instance to update

# File lib/rspec/core/configuration_options.rb, line 21
def configure(config)
  process_options_into config
  configure_filter_manager config.filter_manager
  load_formatters_into config
end
configure_filter_manager(filter_manager) click to toggle source

@api private Updates the provided {FilterManager} based on the filter options. @param filter_manager [FilterManager] instance to update

# File lib/rspec/core/configuration_options.rb, line 30
def configure_filter_manager(filter_manager)
  @filter_manager_options.each do |command, value|
    filter_manager.__send__ command, value
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.