Skip to Content Skip to Search
Methods
E
I
M
N

Class Public methods

new(block)

# File activesupport/lib/active_support/callbacks.rb, line 435
def initialize(block)
  @override_block = block
end

Instance Public methods

expand(target, value, block)

# File activesupport/lib/active_support/callbacks.rb, line 439
def expand(target, value, block)
  [target, @override_block, :instance_exec]
end

inverted_lambda()

# File activesupport/lib/active_support/callbacks.rb, line 449
def inverted_lambda
  lambda do |target, value, &block|
    !target.instance_exec(&@override_block)
  end
end

make_lambda()

# File activesupport/lib/active_support/callbacks.rb, line 443
def make_lambda
  lambda do |target, value, &block|
    target.instance_exec(&@override_block)
  end
end