Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/nsf/standard_extensions.rb,
lib/nsf/standard_extensions.rb
Instance Method Summary collapse
Instance Method Details
#blank? ⇒ Boolean
3 4 5 |
# File 'lib/nsf/standard_extensions.rb', line 3 def blank? respond_to?(:empty?) ? empty? : !self end |
#present? ⇒ Boolean
11 12 13 |
# File 'lib/nsf/standard_extensions.rb', line 11 def present? !blank? end |