How to check where a method is defined, in ruby Read this article in: EnglishSpanishPortuguêsRussian Issue 2024Q1 (current) You can use this pattern/idea: CSV.new('string').method(:flock).source_location