By arikthered
via coderoshi.blogspot.com
Published: Sep 02 2007 / 17:43
By arikthered
via coderoshi.blogspot.com
Published: Sep 02 2007 / 17:43
Comments
Jim Wilson replied ago:
Very clever - avoiding initializers by defining new methods on nil.
I might even suggest the following additions:
def nil.push(o); [o]; end
def nil.<<(o); o; end
Voters For This Link (12)
Voters Against This Link (0)