nil-as-emptiness.rb

Path: lib/facet/nil-as-emptiness.rb
Last Update: Mon Jan 03 10:41:10 EST 2005

NilClass as Emptiness/Nothingness

The ideas here is that nil acts more like an empty set than an error catcher. So you get things like:

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

rather than an error being raised.

There are probably a few more to be added.

Required files

facet/nil/to_f   facet/nil/to_h   facet/nil/length   facet/nil/empty?   facet/nil/[]   facet/nil/include?  

[Validate]