Class: Object

Inherits:
BasicObject
Defined in:
lib/extensions.rb

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


2
3
4
5
6
7
8
9
10
# File 'lib/extensions.rb', line 2

def blank?
  if respond_to? :empty?
    empty?
  elsif respond_to? :zero?
    zero?
  else
    !self
  end
end