lib/forwardablex.rb
# Define each method that calls the receiver's method.
#
# @param receiver [Symbol, String, Proc, or Object]
#   message receiver
# @param methods [Array<Symbol>]
#   method names that we forward to
# @return [void]
Define each method that calls the receiver's method.
Define each method that calls the receiver ' s method .
def forward!(receiver, *methods)
    methods.delete("__send__")
    methods.delete("__id__")
    methods.each {|method| forward(receiver, method)}
  end
def forward! ( receiver , * methods ) methods . delete ( "__send__" ) methods . delete ( "__id__" ) methods . each { | method | forward ( receiver , method ) } end
Define each method that calls the receiver's method.
Define each method that calls the receiver ' s method .
None
void
receiver
None
methods
method names that we forward to
method names that we forward to