Skip to Content Skip to Search
Methods
E
I
M
N

Class Public methods

new(target)

# File activesupport/lib/active_support/callbacks.rb, line 504
def initialize(target)
  @override_target = target
end

Instance Public methods

expand(target, value, block)

# File activesupport/lib/active_support/callbacks.rb, line 508
def expand(target, value, block)
  [@override_target || target, block, :call, target, value]
end

inverted_lambda()

# 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

make_lambda()

# 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