Sha256: 65f170b8e71e21b8ccb1b5e476645df33caddba9c8ad0426161253021a97c435
Contents?: true
Size: 204 Bytes
Versions: 3
Compression:
Stored size: 204 Bytes
Contents
class NilClass # Allows <tt>nil</tt> to respond to #empty? method. # Alwasy returns <tt>true</tt>. # # require 'facet/nil/empty?' # # nil.empty? #=> true # def empty? ; true ; end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
facets-0.7.0 | lib/facet/nil/empty%3F.rb |
facets-0.7.1 | lib/facet/nil/empty%3F.rb |
facets-0.7.2 | lib/facet/nil/empty%3F.rb |