Meta-programming Ruby for Fun & Profit

13:30–17:00 Tuesday, 2-09-2008
Location: Saal Maritim C Level: Intermediate
Presentation: external link
Average rating: ****.
(4.11, 19 ratings)

This session shows one of the reasons that JRuby is the most powerful mainstream language today: meta-programming. It shows tons of meta-programming techniques in Ruby, including open classes, the shadow meta-class, defining methods, method_ & const_missing, dynamically adding and removing mixins, and more. And each of these comes with an example that actually makes sense!

  • Freezing
  • Messages and Dynamic Invocation
  • The Shadow Eigen Class
  • Delegation
  • Uses for Open Classes
  • Aspects
  • Mixology
  • C and Java Extensions
Photo of Neal Ford

Neal Ford


Neal Ford is a senior application architect at *Thought*Works, a global IT consultancy with an exclusive focus on end-to-end software development and delivery. He is the designer and developer of applications, instructional materials, magazine articles, courseware, video/DVD presentations, author of 3 books, including Art of Java Web Development (Manning 2003), and editor/contributor for the 2006 and 2007 editions of the No Fluff, Just Stuff Anthology (Pragmatic Press). He is also an internationally acclaimed speaker, having spoken at numerous developers’ conferences worldwide. Check out his web site at He welcomes feedback and can be reached at

Patrick Farley


Patrick Farley is a developer and occasional tech lead with ThoughtWorks. He blogs on Ruby and Rails at

News and Coverage
co-presented by Ruby Central, Inc. O'Reilly
  • Engine Yard
  • Sun Microsystems
  • Brightbox
  • ELC Technologies
  • T3N

Sponsor Opportunities

For information on exhibition and sponsorship opportunities at RailsConf Europe, contact Yvonne Romaine at

Press and Media

For media-related inquiries, contact Maureen Jennings at

Contact Us

View a complete list of RailsConf Europe Contacts