Path: | lib/facets/core/nil_as_emptiness.rb |
Last Update: | Sat Dec 15 01:55:12 +0000 2007 |
The ideas here is to have nil act more like an empty set than an error catcher. So you get responses like
nil.include?(:x) # => nil
instead of an error being raised.
WARNING! One should be aware that in some rare cases incompatabilites may arise when using these methods in conjuction with other libraries.