Archive for March, 2011

Reopening modules in Ruby

March 31st, 2011 | Category: Programming, Ruby

Open class definitions in ruby allow libraries to add functionality to existing objects. Standard practice is to define a module with the new functionality and include it into the existing class ( Jay fields on the subject here ). Unfortunately this model breaks when you want to update a module.
Read more

1 comment

Why class variables in Ruby are a bad idea

March 20th, 2011 | Category: Programming, Ruby

In ruby, there are instance variables and class variables. Class variables may not work the way you think… Read more

Comments are off for this post