Skip to content

Instantly share code, notes, and snippets.

@naoyamakino
Created May 2, 2013 18:53
Show Gist options
  • Save naoyamakino/5504445 to your computer and use it in GitHub Desktop.
Save naoyamakino/5504445 to your computer and use it in GitHub Desktop.
Dissecting Ruby with Ruby via @schneems #railsConf
Code Triage: gemhttp://www.codetriage.com/
budle open gemName
puts caller.inspect #where it came from
object#method
object.method(:method_name).source_location
method.source_location
self.class.ancestors #get superclass names in order
Method#instance_method
User.instance_method(:github_url)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment