method
build
v2.2.1 -
Show latest stable
- Class:
ActiveSupport::Callbacks::CallbackChain
build(kind, *methods, &block)public
No documentation available.
# File activesupport/lib/active_support/callbacks.rb, line 80
def self.build(kind, *methods, &block)
methods, options = extract_options(*methods, &block)
methods.map! { |method| Callback.new(kind, method, options) }
new(methods)
end