Methods
Class Public methods
new(&block)
📝 Source code
# File activesupport/lib/active_support/callbacks.rb, line 153
def initialize(&block)
@block = block
end
🔎 See on GitHub
Instance Public methods
call(target, value)
📝 Source code
# File activesupport/lib/active_support/callbacks.rb, line 156
def call(target, value); @block.call(value); end
🔎 See on GitHub