lib/forwardable/extended.rb
def def_delegators(accessor, *methods)
      kwd = methods.shift if methods.first.is_a?(Hash)
      kwd = methods.pop   if methods. last.is_a?(Hash)
      kwd = {} unless kwd

      methods.each do |method|
        def_delegator accessor, method, **kwd
      end
    end
def def_delegators(accessor, *methods)
      kwd = methods.shift if methods.first.is_a?(Hash)
      kwd = methods.pop   if methods. last.is_a?(Hash)
      kwd = {} unless kwd

      methods.each do |method|
        def_delegator accessor, method, **kwd
      end
    end
def def_delegators ( accessor , * methods ) kwd = methods . shift if methods . first . is_a? ( Hash ) kwd = methods . pop if methods . last . is_a? ( Hash ) kwd = { } unless kwd methods . each do | method | def_delegator accessor , method , ** kwd end end
------------------------------------------------------------------------
 Create multiple delegates at once.
 ------------------------------------------------------------------------
------------------------------------------------------------------------ Create multiple delegates at once . ------------------------------------------------------------------------