class RuboCop::Server::ServerCommand::Base
Abstract base class for server command. @api private
Public Class Methods
Source
# File lib/rubocop/server/server_command/base.rb, line 29 def self.inherited(child) super child.prepend Runner end
Calls superclass method
Source
# File lib/rubocop/server/server_command/base.rb, line 34 def initialize(args, token: '', cwd: Dir.pwd) @args = args @token = token @cwd = cwd end
Public Instance Methods
Private Instance Methods
Source
# File lib/rubocop/server/server_command/base.rb, line 44 def validate_token! raise InvalidTokenError unless Cache.token_path.read == @token end