nil_as_emptiness.rb

Path: lib/facets/core/nil_as_emptiness.rb
Last Update: Fri Apr 17 15:32:31 +0000 2009

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.

Required files

facets/core/nilclass/to_f   facets/core/nilclass/to_h   facets/core/nilclass/op_fetch   facets/core/nilclass/include   facets/core/nilclass/empty   facets/core/nilclass/size  

[Validate]