Parent

Files

Class/Module Index [+]

Quicksearch

RSpec::Core::ConfigurationOptions

@private

Constants

NON_FORCED_OPTIONS

Attributes

options[R]

Public Class Methods

new(args) click to toggle source
# File lib/rspec/core/configuration_options.rb, line 9
def initialize(args)
  @args = args
end

Public Instance Methods

configure(config) click to toggle source
# File lib/rspec/core/configuration_options.rb, line 13
def configure(config)
  formatters = options.delete(:formatters)

  config.filter_manager = filter_manager

  order(options.keys, :libs, :requires, :default_path, :pattern).each do |key|
    force?(key) ? config.force(key => options[key]) : config.send("#{key}=", options[key]) 
  end

  formatters.each {|pair| config.add_formatter(*pair) } if formatters
end
drb_argv() click to toggle source
# File lib/rspec/core/configuration_options.rb, line 31
def drb_argv
  DrbOptions.new(options, filter_manager).options
end
filter_manager() click to toggle source
# File lib/rspec/core/configuration_options.rb, line 35
def filter_manager
  @filter_manager ||= FilterManager.new
end
parse_options() click to toggle source
# File lib/rspec/core/configuration_options.rb, line 25
def parse_options
  @options ||= extract_filters_from(*all_configs).inject do |merged, pending|
    merged.merge(pending)
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.