class method
self.new
Ruby on Rails 3.0.20
Since v2.2.3 Last seen in v3.0.20Signature
self.new(chain, filter, kind, options, klass)
No documentation comment.
Parameters
-
chainreq -
filterreq -
kindreq -
optionsreq -
klassreq
Source
# File activesupport/lib/active_support/callbacks.rb, line 107
def initialize(chain, filter, kind, options, klass)
@chain, @kind, @klass = chain, kind, klass
normalize_options!(options)
@per_key = options.delete(:per_key)
@raw_filter, @options = filter, options
@filter = _compile_filter(filter)
@compiled_options = _compile_options(options)
@callback_id = next_id
_compile_per_key_options
end
Defined in activesupport/lib/active_support/callbacks.rb line 107
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Callbacks::Callback