class ActiveSupport::Callbacks::CallTemplate::MethodCall

:nodoc:
or a condition filter).
A future invocation of user-supplied code (either as a callback,

def expand(target, value, block)

call stack pollution.
The actual invocation is left up to the caller to minimize

target.send(method, *arguments, &block)

This array can be used as such:

[target, block, method, *arguments]

Returns an array of the form:

input values.
Return the parts needed to make this call, with the given
def expand(target, value, block)
  [target, block, @method_name]
end

def initialize(method)

def initialize(method)
  @method_name = method
end

def inverted_lambda

def inverted_lambda
  lambda do |target, value, &block|
    !target.send(@method_name, &block)
  end
end

def make_lambda

def make_lambda
  lambda do |target, value, &block|
    target.send(@method_name, &block)
  end
end