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