# File lib/rspec/core/configuration_options.rb, line 17 def configure(config) keys = options.keys keys.unshift(:requires) if keys.delete(:requires) keys.unshift(:libs) if keys.delete(:libs) keys.each do |key| config.send("#{key}=", options[key]) end end
# File lib/rspec/core/configuration_options.rb, line 26 def drb_argv argv = [] argv << "--color" if options[:color_enabled] argv << "--profile" if options[:profile_examples] argv << "--backtrace" if options[:full_backtrace] argv << "--autotest" if options[:autotest] argv << "--format" << options[:formatter] if options[:formatter] argv << "--line_number" << options[:line_number] if options[:line_number] argv << "--example" << options[:full_description].source if options[:full_description] (options[:libs] || []).each do |path| argv << "-I" << path end (options[:requires] || []).each do |path| argv << "--require" << path end argv + options[:files_or_directories_to_run] end
# File lib/rspec/core/configuration_options.rb, line 44 def parse_options @options = begin command_line_options = parse_command_line_options local_options = parse_local_options(command_line_options) global_options = parse_global_options env_options = parse_env_options [global_options, local_options, command_line_options, env_options].inject do |merged, options| merged.merge(options) end end end
Generated with the Darkfish Rdoc Generator 2.