Class: NilClass

Inherits:
Object show all
Defined in:
lib/libis/tools/extend/empty.rb,
lib/libis/tools/extend/string.rb

Overview

Extension class

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Allow nil.blank? so that blank? can be applied without errors.

Returns:

  • (Boolean)


91
92
93
# File 'lib/libis/tools/extend/string.rb', line 91

def blank?
  true
end

#empty?Boolean

Allows nil.empty?

Returns:

  • (Boolean)


4
5
6
# File 'lib/libis/tools/extend/empty.rb', line 4

def empty?
  true
end