gem

Navigating nil (Method Chaining) in Ruby

Method Chaining is an important technique to create beautiful code in object oriented languages, but Ruby (the beautiful language, right?) does not support it as well as it should.

Read more...

Written on Sun Mar 16 08:17:59 2008.
Tagged as gem, ruby.



Real modules for Ruby

More specifically, Ruby doesn’t have real mixins (or interfaces or typeclasses if you like). But then what does a module mixin do? It modifies a class’s inheritance chain at runtime

Read more...

Written on Tue Mar 11 16:26:54 2008.
Tagged as gem, ruby.