Class: NilClass

Inherits:
Object
  • Object
show all
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

Instance Method Details

#empty?Boolean

This adds the empty? method to nil, so that nil.empty? => true

Returns:

  • (Boolean)


8
9
10
# File 'lib/paypkg/nil-empty?.rb', line 8

def empty?
  true
end