I have checked that this feature is not already implemented
Use case
I would like to be able to go-to definition for singleton methods defined via the class << self syntax.
Description
Specifically, If I have:
module Foo
class << self
def bar
# do something
end
end
end
...
# in another file
Foo.bar
I want to be able to click on the bar in Foo.bar and go to the definition in the Foo module.
Currently you can go to definition for singleton methods defined with the self.foo syntax but not with the class << self syntax.
Implementation
No response
Other
I noticed that there were a couple of PRs relating to this, but they were both closed:
#1113
#1250