lib/forwardablex.rb
def forward_object_receiver(receiver, method, name, *_args)
    define_method(name) do |*args, &b|
      receiver.__send__(method, *args, &b)
    end
  end
# Forward the name to the object.
#
# @param receiver [Object]
#   receiver object
# @param method [Symbol]
#   method name of the object
# @param name [Symbol]
#   forwarder method name
# @param _args [Array<Object>]
#   additional arguments
# @return [void]
Forward the name to the object.
Forward the name to the object .
def forward_object_receiver(receiver, method, name, *_args)
    define_method(name) do |*args, &b|
      receiver.__send__(method, *args, &b)
    end
  end
def forward_object_receiver ( receiver , method , name , * _args ) define_method ( name ) do | * args , & b | receiver . __send__ ( method , * args , & b ) end end
Forward the name to the object.
Forward the name to the object .
None
void
receiver
None
method
method name of the object
method name of the object
name
forwarder method name
forwarder method name
_args
None