Class: Object

Inherits:
BasicObject
Defined in:
lib/cloud_file.rb

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/cloud_file.rb', line 4

def blank?
  to_s.strip == ''
end

#present?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/cloud_file.rb', line 7

def present?
  !blank?
end