This article explains how to reopen a Ruby class so as to add new methods to the type. This is a way to extend a class' functionality without subclassing.
Um, duh? This is a pretty essential concept to Ruby and very commonly known. You might as well have written an article about how to create a main method in Java.
I don't agree Daniel, it may be an essential concept, but you could happily code Rails apps without knowing how this stuff works. I found it quite interesting, maybe 'cause I'm still a Ruby noob ;)
Comments
daniel replied ago:
Um, duh? This is a pretty essential concept to Ruby and very commonly known. You might as well have written an article about how to create a main method in Java.
elmo replied ago:
It seems helpful for rookie rubyists...
mikestephen replied ago:
I don't agree Daniel, it may be an essential concept, but you could happily code Rails apps without knowing how this stuff works. I found it quite interesting, maybe 'cause I'm still a Ruby noob ;)
Voters For This Link (13)
Voters Against This Link (0)