One thing you can do is use a gem like byebug, put a breakpoint above the
code you want to find it's location and use this:
method(:name_of_method).source_location
if you put a breakpoint inside your routes.rb and call:
method(:get).source_location
it returns something like:
San Ji, thank for your answer. But how does Ruby runtime know which
function to call? There must be a way for human to mimic that... Right?
On Sat, Mar 21, 2020 at 10:35 AM San Ji wrote:
> To my knowledge, what you are looking for is not possible for Ruby.
>
> What you got in RubyMine is the
2 matches
Mail list logo