class ActiveSupport::Callbacks::CallTemplate::ProcCall
Public Class Methods
Source
# File lib/active_support/callbacks.rb, line 504 def initialize(target) @override_target = target end
Public Instance Methods
Source
# File lib/active_support/callbacks.rb, line 508 def expand(target, value, block) [@override_target || target, block, :call, target, value] end
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
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