Class: Object

Inherits:
BasicObject
Defined in:
lib/wolf_core/utils/object_extension.rb

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/wolf_core/utils/object_extension.rb', line 6

def blank?
  nil? || (respond_to?(:empty?) && empty?)
end

#present?Boolean

Returns:

  • (Boolean)


2
3
4
# File 'lib/wolf_core/utils/object_extension.rb', line 2

def present?
  !blank?
end