123456789_123456789_123456789_123456789_123456789_

Class: RuboCop::Server::ServerCommand::Base Private

Do not use. This class is for internal use only.
Relationships & Source Files
Namespace Children
Modules:
Extension / Inclusion / Inheritance Descendants
Subclasses:
RuboCop::Server::ServerCommand::Exec, RuboCop::Server::ServerCommand::Stop
Inherits: Object
Defined in: lib/rubocop/server/server_command/base.rb

Overview

Abstract base class for server command.

Class Method Summary

Instance Method Summary

Class Method Details

.inherited(child)

[ GitHub ]

  
# File 'lib/rubocop/server/server_command/base.rb', line 29

def self.inherited(child)
  super
  child.prepend Runner
end

Instance Method Details

#run

[ GitHub ]

  
# File 'lib/rubocop/server/server_command/base.rb', line 40

def run; end

#validate_token! (private)

Raises:

[ GitHub ]

  
# File 'lib/rubocop/server/server_command/base.rb', line 44

def validate_token!
  raise InvalidTokenError unless Cache.token_path.read == @token
end