lib/receptacle/method_delegation.rb
# build method to mediate method calls of arity 1 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 arity 1 to strategy with full wrapper support
build method to mediate method calls of arity 1 to strategy with full wrapper support
def __define_full_method(method_cache)
      define_singleton_method(method_cache.method_name) do |*args, &inner_block|
        __run_wrappers(method_cache, *args) do |*call_args|
          method_cache.strategy.new.public_send(method_cache.method_name, *call_args, &inner_block)
        end
      end
    end
def __define_full_method ( method_cache ) define_singleton_method ( method_cache . method_name ) do | * args , & inner_block | __run_wrappers ( method_cache , * args ) 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 arity 1 to strategy with full wrapper support
build method to mediate method calls of arity 1 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