Source: show | on GitHub
# File activesupport/lib/active_support/callbacks.rb, line 504 def initialize(target) @override_target = target end
# File activesupport/lib/active_support/callbacks.rb, line 508 def expand(target, value, block) [@override_target || target, block, :call, target, value] end
# File activesupport/lib/active_support/callbacks.rb, line 518 def inverted_lambda lambda do |target, value, &block| !(@override_target || target).call(target, value, &block) end end
# File activesupport/lib/active_support/callbacks.rb, line 512 def make_lambda lambda do |target, value, &block| (@override_target || target).call(target, value, &block) end end