Programming
Article
By Nathan Kleyn

RubySource: Ruby Metaprogramming: Part II

By Nathan Kleyn

Welcome back to Metaprogramming with Ruby! In part one we looked at what Metaprogramming is and how it works; we explored deep into the internals of Ruby’s method lookup system and walked through how creating Singleton Classes fits into that mechanism. Now for the good part: applying it all. Mocking objects for testing Some of the most useful features of Ruby’s metaprogramming have been shown off countless times in the vast array of testing frameworks available.

Read the article:
RubySource: Ruby Metaprogramming: Part II

Recommended
Sponsors
The most important and interesting stories in tech. Straight to your inbox, daily. Get Versioning.
Login or Create Account to Comment
Login Create Account