Class: RuboCop::Daemon::ServerCommand::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/rubocop/daemon/server_command/base.rb

Direct Known Subclasses

Exec, Stop

Defined Under Namespace

Modules: Runner

Class Method Summary collapse

Instance Method Summary collapse

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

#runObject



26
# File 'lib/rubocop/daemon/server_command/base.rb', line 26

def run; end