lib/arid_cache/cache_proxy/result_processor.rb
# Run the user's proxy method (or Proc) and return the result.
#
# == Arguments
# * +direction+ - :in or :out, depending on whether we are putting results into
#             the cache, or returning results from the cache, respectively
# * +records+ - some kind of result that is passed to the proxy method
Run the user's proxy method (or Proc) and return the result.
Arguments
+direction+ - :in or :out, depending on whether we are putting results into
the cache, or returning results from the cache, respectively
+records+ - some kind of result that is passed to the proxy method
Run the user ' s proxy method ( or Proc ) and return the result . Arguments + direction + - : in or : out depending on whether we are putting results into the cache or returning results from the cache respectively + records + - some kind of result that is passed to the proxy method
def run_user_proxy(direction, records)
        proxy = @options.proxy(direction)
        case proxy
        when Symbol, String
          @options.receiver_klass.send(proxy, records)
        when Proc
          proxy.call(records)
        else
          records 
        end
      end
def run_user_proxy ( direction , records ) proxy = @options . proxy ( direction ) case proxy when Symbol , String @options . receiver_klass . send ( proxy , records ) when Proc proxy . call ( records ) else records end end
Run the user's proxy method (or Proc) and return the result.
Run the user ' s proxy method ( or Proc ) and return the result .
# silently ignore it
direction
records