Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/configatron/core_ext/object.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#blank? ⇒ Boolean
ported ActiveSupport method.
-
#send_with_chain(methods, *args) ⇒ Object
:nodoc:.
Instance Method Details
#blank? ⇒ Boolean
ported ActiveSupport method
9 10 11 |
# File 'lib/configatron/core_ext/object.rb', line 9 def blank? # ported ActiveSupport method respond_to?(:empty?) ? empty? : !self end |
#send_with_chain(methods, *args) ⇒ Object
:nodoc:
3 4 5 6 7 |
# File 'lib/configatron/core_ext/object.rb', line 3 def send_with_chain(methods, *args) # :nodoc: obj = self [methods].flatten.each {|m| obj = obj.send(m, *args)} obj end |