123456789_123456789_123456789_123456789_123456789_

Class: RuboCop::CLI::Environment Private

Relationships & Source Files
Inherits: Object
Defined in: lib/rubocop/cli/environment.rb

Overview

Execution environment for a CLI command.

Class Method Summary

Instance Attribute Summary

Instance Method Summary

  • #run(name) Internal use only

    Run a command in this environment.

Constructor Details

.new(options, config_store, paths) ⇒ Environment

[ GitHub ]

  
# File 'lib/rubocop/cli/environment.rb', line 10

def initialize(options, config_store, paths)
  @options = options
  @config_store = config_store
  @paths = paths
end

Instance Attribute Details

#config_store (readonly)

[ GitHub ]

  
# File 'lib/rubocop/cli/environment.rb', line 8

attr_reader :options, :config_store, :paths

#options (readonly)

[ GitHub ]

  
# File 'lib/rubocop/cli/environment.rb', line 8

attr_reader :options, :config_store, :paths

#paths (readonly)

[ GitHub ]

  
# File 'lib/rubocop/cli/environment.rb', line 8

attr_reader :options, :config_store, :paths

Instance Method Details

#run(name)

Run a command in this environment.

[ GitHub ]

  
# File 'lib/rubocop/cli/environment.rb', line 17

def run(name)
  Command.run(self, name)
end