Methods

Class Public methods

new(&block)

📝 Source code
# File activesupport/lib/active_support/callbacks.rb, line 155
          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 158
          def call(target, value); @block.call(value); end
🔎 See on GitHub