Rails uses "whiny nil", which means if you call a method on an object that happens to be nil (null), you get an exception. This is good. But with strings in a web app (in any language), you often don't know if an empty string will be nil or simply zero-length (""). That's because some [...]
Ruby/Rails: Overriding NilClass
June 25th, 2007 · 2 Comments
Tags: SoftwareDev
