Class: RuboCop::CLI::Environment
- Inherits:
-
Object
- Object
- RuboCop::CLI::Environment
- Defined in:
- lib/rubocop/cli/environment.rb
Overview
Execution environment for a CLI command.
Instance Attribute Summary collapse
-
#config_store ⇒ Object
readonly
Returns the value of attribute config_store.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#paths ⇒ Object
readonly
Returns the value of attribute paths.
Instance Method Summary collapse
-
#initialize(options, config_store, paths) ⇒ Environment
constructor
A new instance of Environment.
-
#run(name) ⇒ Object
Run a command in this environment.
Constructor Details
#initialize(options, config_store, paths) ⇒ Environment
Returns a new instance of Environment.
9 10 11 12 13 |
# File 'lib/rubocop/cli/environment.rb', line 9 def initialize(, config_store, paths) @options = @config_store = config_store @paths = paths end |
Instance Attribute Details
#config_store ⇒ Object (readonly)
Returns the value of attribute config_store.
7 8 9 |
# File 'lib/rubocop/cli/environment.rb', line 7 def config_store @config_store end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/rubocop/cli/environment.rb', line 7 def @options end |
#paths ⇒ Object (readonly)
Returns the value of attribute paths.
7 8 9 |
# File 'lib/rubocop/cli/environment.rb', line 7 def paths @paths end |