Class: NilClass

Inherits:
Object show all
Defined in:
lib/core_ext/object/blank.rb

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

nil is blank:

nil.blank? # => true

Returns:

  • (Boolean)

48
49
50
# File 'lib/core_ext/object/blank.rb', line 48

def blank?
  true
end