Class: Object

Inherits:
BasicObject
Defined in:
lib/attrio/core_ext/object.rb

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/attrio/core_ext/object.rb', line 4

def blank?
  !self
end

#present?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/attrio/core_ext/object.rb', line 8

def present?
  !blank?
end