method
new
v5.1.7 -
Show latest stable
- Class:
ActiveSupport::Callbacks::Callback
new(name, filter, kind, options, chain_config)public
No documentation available.
# File activesupport/lib/active_support/callbacks.rb, line 294
def initialize(name, filter, kind, options, chain_config)
@chain_config = chain_config
@name = name
@kind = kind
@filter = filter
@key = compute_identifier filter
@if = Array(options[:if])
@unless = Array(options[:unless])
end