nil-as-emptiness.rb

Path: lib/facet/nil-as-emptiness.rb
Last Update: Wed Apr 27 23:26:47 EDT 2005

Description

The ideas here is to have nil acts more like an empty set than an error catcher. So you get responses like

  nil.include?(:x) # => nil

rather than 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 external libraries.

Required files

facet/nil/to_f   facet/nil/to_h   facet/nil/length   facet/nil/empty%3F   facet/nil/%5B%5D   facet/nil/include%3F   facet/nil/size  

[Validate]