lib/receptacle/method_delegation.rb
# build lightweight method to mediate method calls to strategy without wrappers
# @param method_cache [MethodCache] method_cache of the method to be build
# @return [void]
build lightweight method to mediate method calls to strategy without wrappers
build lightweight method to mediate method calls to strategy without wrappers
def __define_shortcut_method(method_cache)
      define_singleton_method(method_cache.method_name) do |*args, &inner_block|
        method_cache.strategy.new.public_send(method_cache.method_name, *args, &inner_block)
      end
    end
def __define_shortcut_method ( method_cache ) define_singleton_method ( method_cache . method_name ) do | * args , & inner_block | method_cache . strategy . new . public_send ( method_cache . method_name , * args , & inner_block ) end end
build lightweight method to mediate method calls to strategy without wrappers
build lightweight method to mediate method calls to strategy without wrappers
None
void
method_cache
method_cache of the method to be build
method_cache of the method to be build