Skip to content

Instantly share code, notes, and snippets.

@epitron
Created April 7, 2013 03:23
Show Gist options
  • Select an option

  • Save epitron/5328790 to your computer and use it in GitHub Desktop.

Select an option

Save epitron/5328790 to your computer and use it in GitHub Desktop.
Uses Pry to shows undocumented methods of Ruby classes.
require 'pry'
ObjectSpace.each_object do |o|
o.methods(false).each do |meth|
name = "#{o.class}##{meth}"
result = Pry::Method.from_str(name)
if result.nil?
puts "#{name}"
elsif result.source_location.nil?
puts "#{name} (#{result.source_type})"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment