Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/testcentricity_apps/utility_helpers.rb
Instance Method Summary collapse
Instance Method Details
#blank? ⇒ Boolean
2 3 4 |
# File 'lib/testcentricity_apps/utility_helpers.rb', line 2 def blank? respond_to?(:empty?) ? empty? : !self end |
#boolean? ⇒ Boolean
10 11 12 |
# File 'lib/testcentricity_apps/utility_helpers.rb', line 10 def boolean? [true, false].include? self end |
#present? ⇒ Boolean
6 7 8 |
# File 'lib/testcentricity_apps/utility_helpers.rb', line 6 def present? !blank? end |