class RubyLsp::Requests::Definition

The definition request jumps to the definition of the symbol under the cursor.

Currently supported targets: - Classes - Modules - Constants - Require paths - Methods invoked on self only

Example

require "some_gem/file" # <- Request go to definition on this string will take you to the file
Product.new # <- Request go to definition on this class name will take you to its declaration.

Public Class Methods

new(document, global_state, position, dispatcher, typechecker_enabled)

Calls superclass method

Public Instance Methods

perform()