Class: Object

Inherits:
BasicObject
Defined in:
lib/sym/extensions/stdlib.rb

Instance Method Summary collapse

Instance Method Details

#present?Boolean

Returns:

  • (Boolean)


14
15
16
17
18
19
20
# File 'lib/sym/extensions/stdlib.rb', line 14

def present?
  return false if self.nil?
  if self.is_a?(String) && (self == '')
    return false
  end
  true
end