Skip to content

Instantly share code, notes, and snippets.

@benhoskings
Created October 15, 2008 03:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benhoskings/16847 to your computer and use it in GitHub Desktop.
Save benhoskings/16847 to your computer and use it in GitHub Desktop.
# Where the hell did 'lol' get defined?
method_name = "lol"
ObjectSpace.each_object.each {|o| puts "#{o.is_a?(Class) ? o.name : o.class}: #{o.methods.grep method_name}" unless o.methods.grep(method_name).empty? }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment