Theocacao
Leopard
Design Element
Comment on "Attribute Values in Rails"
by Duke Jones — Feb 04, 08

Hello, I love the design of your site.

As for nil, you could make nil do nothing when a non-existent method is called on it:

class NilClass def method_missing(*args) end end

nil.do_something! # => nil

This is bad form for production, apparently, but could be quite helpful during development, as you pointed out.

Cheers!

Back to "Attribute Values in Rails"
Design Element

Technorati Profile
Copyright © Scott Stevenson 2004-2006