Class's Class is Class: Metaprogramming Ruby

Chris Kelly (New Relic)
Sponsored Sessions
Location: E141
Average rating: ****.
(4.25, 4 ratings)

Ruby’s open class structure makes metaprogramming simple and powerful. At New Relic, we leverage metaprogramming in our Ruby agent to extract deep metrics about your code automatically. In this session, we’ll start with the Ruby Object Model and work through the most common callbacks for efficient metaprogramming. We’ll discuss good metaprogramming patterns, and how to avoid some pitfalls that add unnecessary complexity. We’ll wrap up by looking at some of the New Relic agent code that takes advantage of these tools, pulling back the curtain on some of the magic behind New Relic.

This session is sponsored by New Relic

Photo of Chris Kelly

Chris Kelly

New Relic

Chris is the Developer/Evangelist at New Relic, makers of web application performance tools. He is an active Rubyist and Open Source Advocate at SD Ruby. Prior to New Relic, Chris lead an engineering and operations team building an ecommerce platform for the publishing industry. You can follow Chris on twitter at [@amateurhuman](


Sponsorship Opportunities

For information on exhibition and sponsorship opportunities at the conference, contact Sharon Cordesse at (707) 827-7065 or

Contact Us

View a complete list of OSCON contacts