lib/forwardablex.rb
# Forward the name to the identity function.
#
# @param name [Symbol]
#   forwarder method name
# @return [void]
Forward the name to the identity function.
Forward the name to the identity function .
def forward_identity_receiver(name)
    define_method(name) do |*args, &b|
      self
    end
  end
def forward_identity_receiver ( name ) define_method ( name ) do | * args , & b | self end end
Forward the name to the identity function.
Forward the name to the identity function .
None
void
name
forwarder method name
forwarder method name