Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/perennial/core_ext/blank.rb,
lib/perennial/core_ext/misc.rb
Overview
blank? parts taken from the active support source code, used under the MIT License.
Instance Method Summary collapse
Instance Method Details
#blank? ⇒ Boolean
5 6 7 |
# File 'lib/perennial/core_ext/blank.rb', line 5 def blank? respond_to?(:empty?) ? empty? : !self end |
#metaclass ⇒ Object
3 4 5 |
# File 'lib/perennial/core_ext/misc.rb', line 3 def class << self; self; end end |
#present? ⇒ Boolean
9 10 11 |
# File 'lib/perennial/core_ext/blank.rb', line 9 def present? !blank? end |