Class

NilClass

Extends:

Extensions to nil which allow for more helpful error messages for people who are new to rails.

The aim is to ensure that when users pass nil to methods where that isn’t appropriate, instead of NoMethodError and the name of some method used by the framework users will see a message explaining what type of object was expected.

Constants
WHINERS
Public Methods
blank?
duplicable?
id
to_json
Private Methods
method_missing
raise_nil_warning_for
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.