Class: Object

Inherits:
BasicObject
Defined in:
lib/rchoice/core_ext.rb

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/rchoice/core_ext.rb', line 9

def blank?
  to_s.strip == ''
end

#present?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/rchoice/core_ext.rb', line 12

def present?
  !blank?
end