Class: RuboCop::Daemon::ServerCommand::Base
- Inherits:
-
Object
- Object
- RuboCop::Daemon::ServerCommand::Base
- Defined in:
- lib/rubocop/daemon/server_command/base.rb
Defined Under Namespace
Modules: Runner
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(args, token: '', cwd: Dir.pwd) ⇒ Base
constructor
A new instance of Base.
- #run ⇒ Object
Constructor Details
#initialize(args, token: '', cwd: Dir.pwd) ⇒ Base
Returns a new instance of Base.
20 21 22 23 24 |
# File 'lib/rubocop/daemon/server_command/base.rb', line 20 def initialize(args, token: '', cwd: Dir.pwd) @args = args @token = token @cwd = cwd end |
Class Method Details
.inherited(child) ⇒ Object
16 17 18 |
# File 'lib/rubocop/daemon/server_command/base.rb', line 16 def self.inherited(child) child.prepend Runner end |
Instance Method Details
#run ⇒ Object
26 |
# File 'lib/rubocop/daemon/server_command/base.rb', line 26 def run; end |