Class: NilClass
- Inherits:
-
Object
- Object
- NilClass
- Defined in:
- lib/paypkg/nil-empty?.rb
Overview
This extends NilClass to add empty? ############# It just makes sense that nil is empty, right? ###
Instance Method Summary collapse
-
#empty? ⇒ Boolean
This adds the empty? method to nil, so that nil.empty? => true.
Instance Method Details
#empty? ⇒ Boolean
This adds the empty? method to nil, so that nil.empty? => true
8 9 10 |
# File 'lib/paypkg/nil-empty?.rb', line 8 def empty? true end |