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