Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/tesler/ext.rb
Overview
define an extension for the Object class
Instance Method Summary collapse
-
#blank? ⇒ Boolean
stolen from activesupport.
Instance Method Details
#blank? ⇒ Boolean
stolen from activesupport.
4 5 6 |
# File 'lib/tesler/ext.rb', line 4 def blank? respond_to?(:empty?) ? empty? : !self end |