lib/graphiti/resource/persistence.rb
def call_with_meta(callback, *args)
        if callback.respond_to?(:call)
          instance_exec(*args, &callback)
        else
          arity = method(callback).arity
          args = args[0..0] if arity == 1
          args = args[0..1] if arity == 2
          send(callback, *args)
        end
      end
# Convenience for calling a method or proc
# while taking into account 'meta' is an optional argument
Convenience for calling a method or proc
while taking into account 'meta' is an optional argument
Convenience for calling a method or proc while taking into account ' meta ' is an optional argument
def call_with_meta(callback, *args)
        if callback.respond_to?(:call)
          instance_exec(*args, &callback)
        else
          arity = method(callback).arity
          args = args[0..0] if arity == 1
          args = args[0..1] if arity == 2
          send(callback, *args)
        end
      end
def call_with_meta ( callback , * args ) if callback . respond_to? ( :call ) instance_exec ( * args , & callback ) else arity = method ( callback ) . arity args = args [ 0 .. 0 ] if arity == 1 args = args [ 0 .. 1 ] if arity == 2 send ( callback , * args ) end end
Convenience for calling a method or proc
while taking into account 'meta' is an optional argument
Convenience for calling a method or proc while taking into account ' meta ' is an optional argument
callback
args