Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/openstax/aws/extensions.rb

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


2
3
4
# File 'lib/openstax/aws/extensions.rb', line 2

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

#present?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/openstax/aws/extensions.rb', line 6

def present?
  !blank?
end