Class: Object

Inherits:
BasicObject
Defined in:
lib/stretto/util/utils.rb

Instance Method Summary (collapse)

Instance Method Details

- (Boolean) blank?

Returns:

  • (Boolean)


2
3
4
# File 'lib/stretto/util/utils.rb', line 2

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

- (Boolean) present?

Returns:

  • (Boolean)


6
7
8
# File 'lib/stretto/util/utils.rb', line 6

def present?
  !blank?
end