Description
Finds the source code location and body for Ruby methods when that information is available. It is useful for consoles, debuggers, documentation tools, and metaprogramming diagnostics.
Source inspection can expose project paths and proprietary code. Avoid showing output in public logs or error pages, and handle methods without retrievable source gracefully.