This repository has been archived by the owner on Jul 22, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
Dissecting Ruby with Ruby
Marshall Shen edited this page Jul 19, 2013
·
1 revision
Presenter: Richard Schneeman, @scheneems
- Works at Heroku Austin, write the gem sextant
- Get involved with open source.
CodeTriage
- schneems.com/ut-rails
- Some Ruby tricks that enable you to understand codebase faster
- A very good way to keep track of issues for open source projects: http://www.codetriage.com/
-
Ruby
Method
class helps track down source location.p = Person.new p.method(:greetings).source_location
-
Use
ancestor_classes
Person.instance_method(:some_method_defined_somewhere).source_location self.class.ancestors do |klass| next unless klass.method_defined?(:some_method_defined_somewhere) puts klass.method(:some_method_defined_somewhere).source_location end end
-
Try to figure out where a method got called?
def where_is_this_called? caller.inspect end
A crowd-sourced conference wiki!
Working together is better. :)
- Speakers, for example:
- Recent Conferences
- Software
- Offline Access
- Contributors (More than 50!)
- Code Frequency