Meta-programming Ruby for Fun & Profit
Location: Saal Maritim C Level: Intermediate
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!
- Messages and Dynamic Invocation
- The Shadow Eigen Class
- Uses for Open Classes
- C and Java Extensions
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 www.nealford.com. He welcomes feedback and can be reached at email@example.com.
Patrick Farley is a developer and occasional tech lead with ThoughtWorks. He blogs on Ruby and Rails at www.klankboomklang.com