NoMethodErrors (even from nil) can be helpful, and can even help you track down typos. ‘underscored’.gsub!(’_’,’ ‘).upcase will, with NilClass#method_missing like this, return nil, and it might not be obvious why. And if you misspell an instance variable name somewhere it might be hard to track down if NilClass is silently swallowing method calls.