Method: Object#send_with_chain
- Defined in:
- lib/gems/configatron-2.2.2/lib/configatron/core_ext/object.rb
#send_with_chain(methods, *args) ⇒ Object
:nodoc:
3 4 5 6 7 |
# File 'lib/gems/configatron-2.2.2/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 |