Method: ActiveSupport::Callbacks::CallTemplate::InstanceExec2#inverted_lambda

Defined in:
activesupport/lib/active_support/callbacks.rb

#inverted_lambdaObject


456
457
458
459
460
461
# File 'activesupport/lib/active_support/callbacks.rb', line 456

def inverted_lambda
  lambda do |target, value, &block|
    raise ArgumentError unless block
    !target.instance_exec(target, block, &@override_block)
  end
end