class ActiveSupport::Callbacks::CallTemplate::ProcCall

Public Class Methods

new(target) click to toggle source
# File lib/active_support/callbacks.rb, line 504
def initialize(target)
  @override_target = target
end

Public Instance Methods

expand(target, value, block) click to toggle source
# File lib/active_support/callbacks.rb, line 508
def expand(target, value, block)
  [@override_target || target, block, :call, target, value]
end
inverted_lambda() click to toggle source
# File lib/active_support/callbacks.rb, line 518
def inverted_lambda
  lambda do |target, value, &block|
    !(@override_target || target).call(target, value, &block)
  end
end
make_lambda() click to toggle source
# File lib/active_support/callbacks.rb, line 512
def make_lambda
  lambda do |target, value, &block|
    (@override_target || target).call(target, value, &block)
  end
end