On Dec 13, 1:23 pm, matthew deiters <[EMAIL PROTECTED]> wrote:
> Ever need to do !object.nil? - I do and frequently. This patch is
> basically rolling up an extension i end up adding to every project i
> work on.
>
> Sure using !object.nil? to see if an instance is not nil works but how
> much more meaningful and elegant is object.not_nil? ? Creating a
> separate plugin for this small but powerful feature would be crazy so
> heres the patch to better all the rails projects out there.

If readability is the objective here you can just as easily do:

"if not object.nil?" or "unless object.nil?"



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to