class RSpec::Core::CommandLine

def configuration

def configuration
  RSpec.configuration
end

def example_count

def example_count
  world.example_count
end

def example_groups

def example_groups
  world.example_groups.extend(ExampleGroups)
end

def initialize(argv)

def initialize(argv)
  @options = RSpec::Core::ConfigurationOptions.new(argv)
  @options.configure(configuration)
  configuration.require_files_to_run
  configuration.configure_mock_framework
end

def run(err, out)

def run(err, out)
  configuration.error_stream = err
  configuration.output_stream = out
  world.announce_inclusion_filter
  configuration.reporter.report(example_count) do |reporter|
    example_groups.run_examples(reporter)
  end
  
  example_groups.success?
end

def world

def world
  RSpec.world
end