Class: ActiveSupport::Callbacks::CallTemplate::InstanceExec0
Do not use. This class is for internal use only.
Relationships & Source Files | |
Inherits: | Object |
Defined in: | activesupport/lib/active_support/callbacks.rb |
Class Method Summary
- .new(block) ⇒ InstanceExec0 constructor
Instance Method Summary
Constructor Details
.new(block) ⇒ InstanceExec0
# File 'activesupport/lib/active_support/callbacks.rb', line 396
def initialize(block) @override_block = block end
Instance Method Details
#expand(target, value, block)
[ GitHub ]# File 'activesupport/lib/active_support/callbacks.rb', line 400
def (target, value, block) [target, @override_block, :instance_exec] end
#inverted_lambda
[ GitHub ]# File 'activesupport/lib/active_support/callbacks.rb', line 410
def inverted_lambda lambda do |target, value, &block| !target.instance_exec(&@override_block) end end
#make_lambda
[ GitHub ]# File 'activesupport/lib/active_support/callbacks.rb', line 404
def make_lambda lambda do |target, value, &block| target.instance_exec(&@override_block) end end