Skip to Content Skip to Search
Methods
C
N

Class Public methods

new(&block)

# File activesupport/lib/active_support/callbacks.rb, line 152
def initialize(&block)
  @block = block
end

Instance Public methods

call(target, value)

# File activesupport/lib/active_support/callbacks.rb, line 155
def call(target, value); @block.call(value); end