方法
- E
- I
- M
- N
類別公開方法
new(target, method) 連結
來源:顯示 | 在 GitHub 上
# File activesupport/lib/active_support/callbacks.rb, line 415 def initialize(target, method) @override_target = target @method_name = method end
執行個體公開方法
expand(target, value, block) 連結
來源:顯示 | 在 GitHub 上
# File activesupport/lib/active_support/callbacks.rb, line 420 def expand(target, value, block) [@override_target || target, block, @method_name, target] end
inverted_lambda() 連結
來源:顯示 | 在 GitHub 上
# File activesupport/lib/active_support/callbacks.rb, line 430 def inverted_lambda lambda do |target, value, &block| !(@override_target || target).send(@method_name, target, &block) end end
make_lambda() 連結
來源:顯示 | 在 GitHub 上
# File activesupport/lib/active_support/callbacks.rb, line 424 def make_lambda lambda do |target, value, &block| (@override_target || target).send(@method_name, target, &block) end end