Class: NilClass

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

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

nil is blank:

nil.blank? # => true

Returns:

  • (Boolean)


68
69
70
# File 'lib/ruby/blank.rb', line 68

def blank?
  true
end