Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/eye/utils/mini_active_support.rb
Instance Method Summary collapse
Instance Method Details
#blank? ⇒ Boolean
11 12 13 |
# File 'lib/eye/utils/mini_active_support.rb', line 11 def blank? respond_to?(:empty?) ? empty? : !self end |
#present? ⇒ Boolean
15 16 17 |
# File 'lib/eye/utils/mini_active_support.rb', line 15 def present? !blank? end |
#try(m, *args) ⇒ Object
19 20 21 |
# File 'lib/eye/utils/mini_active_support.rb', line 19 def try(m, *args) send(m, *args) if respond_to?(m) end |