Class: RubyLsp::Rails::NullClient

Inherits:
RunnerClient show all
Defined in:
lib/ruby_lsp/ruby_lsp_rails/runner_client.rb

Instance Method Summary collapse

Methods inherited from RunnerClient

#association_target, create_client, #delegate_notification, #delegate_request, #i18n, #model, #pending_migrations_message, #register_server_addon, #route, #route_location, #run_migrations, #trigger_i18n_reload, #trigger_reload

Constructor Details

#initializeNullClient

: -> void



365
366
# File 'lib/ruby_lsp/ruby_lsp_rails/runner_client.rb', line 365

def initialize # rubocop:disable Lint/MissingSuper
end

Instance Method Details

#connected?Boolean

: -> bool

Returns:

  • (Boolean)


387
388
389
# File 'lib/ruby_lsp/ruby_lsp_rails/runner_client.rb', line 387

def connected?
  false
end

#rails_rootObject

: -> String



382
383
384
# File 'lib/ruby_lsp/ruby_lsp_rails/runner_client.rb', line 382

def rails_root
  Dir.pwd
end

#shutdownObject

: -> void



370
371
372
# File 'lib/ruby_lsp/ruby_lsp_rails/runner_client.rb', line 370

def shutdown
  # no-op
end

#stopped?Boolean

: -> bool

Returns:

  • (Boolean)


376
377
378
# File 'lib/ruby_lsp/ruby_lsp_rails/runner_client.rb', line 376

def stopped?
  true
end