方法
- E
- I
- M
- N
類別公開方法
new(block) 連結
來源: 顯示 | 在 GitHub 上
# File activesupport/lib/active_support/callbacks.rb, line 482 def initialize(block) @override_block = block end
實體公開方法
expand(target, value, block) 連結
來源: 顯示 | 在 GitHub 上
# File activesupport/lib/active_support/callbacks.rb, line 486 def expand(target, value, block) raise ArgumentError unless block [target, @override_block || block, :instance_exec, target, block] end
inverted_lambda() 連結
來源: 顯示 | 在 GitHub 上
# File activesupport/lib/active_support/callbacks.rb, line 498 def inverted_lambda lambda do |target, value, &block| raise ArgumentError unless block !target.instance_exec(target, block, &@override_block) end end
make_lambda() 連結
來源: 顯示 | 在 GitHub 上
# File activesupport/lib/active_support/callbacks.rb, line 491 def make_lambda lambda do |target, value, &block| raise ArgumentError unless block target.instance_exec(target, block, &@override_block) end end