lib/receptacle/method_delegation.rb
# build method to mediate method calls of higher arity to strategy with full wrapper support
# @param method_cache [MethodCache] method_cache of the method to be build
# @return [void]
build method to mediate method calls of higher arity to strategy with full wrapper support
build method to mediate method calls of higher arity to strategy with full wrapper support
def __define_full_method_high_arity(method_cache)
      define_singleton_method(method_cache.method_name) do |*args, &inner_block|
        __run_wrappers(method_cache, args, true) do |*call_args|
          method_cache.strategy.new.public_send(method_cache.method_name, *call_args, &inner_block)
        end
      end
    end
def __define_full_method_high_arity ( method_cache ) define_singleton_method ( method_cache . method_name ) do | * args , & inner_block | __run_wrappers ( method_cache , args , true ) do | * call_args | method_cache . strategy . new . public_send ( method_cache . method_name , * call_args , & inner_block ) end end end
build method to mediate method calls of higher arity to strategy with full wrapper support
build method to mediate method calls of higher arity to strategy with full wrapper support
None
void
method_cache
method_cache of the method to be build
method_cache of the method to be build