Class: RuboCop::CLI::Environment Private
- Inherits:
-
Object
- Object
- RuboCop::CLI::Environment
- Defined in:
- lib/rubocop/cli/environment.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Execution environment for a CLI command.
Instance Attribute Summary collapse
- #config_store ⇒ Object readonly private
- #options ⇒ Object readonly private
- #paths ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(options, config_store, paths) ⇒ Environment
constructor
private
A new instance of Environment.
-
#run(name) ⇒ Object
private
Run a command in this environment.
Constructor Details
#initialize(options, config_store, paths) ⇒ Environment
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Environment.
10 11 12 13 14 |
# File 'lib/rubocop/cli/environment.rb', line 10 def initialize(, config_store, paths) @options = @config_store = config_store @paths = paths end |
Instance Attribute Details
#config_store ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
8 9 10 |
# File 'lib/rubocop/cli/environment.rb', line 8 def config_store @config_store end |
#options ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
8 9 10 |
# File 'lib/rubocop/cli/environment.rb', line 8 def @options end |
#paths ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
8 9 10 |
# File 'lib/rubocop/cli/environment.rb', line 8 def paths @paths end |