Class | NilClass |
In: |
lib/facet/nil/[].rb
lib/facet/nil/length.rb lib/facet/nil/to_f.rb lib/facet/nil/to_h.rb lib/facet/nil/empty?.rb lib/facet/nil/include?.rb |
Parent: | Object |
Allows nil to respond to include? method. Alwasy returns nil.
require 'facet/nil/empty?' nil.blank? #=> true
Allows nil to respond to empty? method. Alwasy returns true.
require 'facet/nil/empty?' nil.empty? #=> true
Allows nil to respond to include? method. Alwasy returns nil.
require 'facet/nil/include?' nil.include?("abc") #=> nil
Allows nil to respond to length. Always returns 0.
require 'facet/nil/length' nil.length #=> 0