方法
- E
- I
- M
- N
类公共方法
new(block) 链接
源代码: 显示 | 在 GitHub 上
# File activesupport/lib/active_support/callbacks.rb, line 460 def initialize(block) @override_block = block end
实例公共方法
expand(target, value, block) 链接
源代码: 显示 | 在 GitHub 上
# File activesupport/lib/active_support/callbacks.rb, line 464 def expand(target, value, block) [target, @override_block, :instance_exec, target] end
inverted_lambda() 链接
源代码: 显示 | 在 GitHub 上
# File activesupport/lib/active_support/callbacks.rb, line 474 def inverted_lambda lambda do |target, value, &block| !target.instance_exec(target, &@override_block) end end
make_lambda() 链接
源代码: 显示 | 在 GitHub 上
# File activesupport/lib/active_support/callbacks.rb, line 468 def make_lambda lambda do |target, value, &block| target.instance_exec(target, &@override_block) end end