Class: Object

Inherits:
BasicObject
Defined in:
lib/cuba/tools/inflectors.rb

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/cuba/tools/inflectors.rb', line 15

def blank?
  respond_to?(:empty?) ? empty? : !self
end

#present?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/cuba/tools/inflectors.rb', line 19

def present?
  !blank?
end