Class: Object

Inherits:
BasicObject
Defined in:
lib/Object.rb

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


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

def blank?
  if self.respond_to? :"empty?"
    self.nil? or self.empty?
  else
    self.nil?
  end
end