class ActiveSupport::Callbacks::Callback

def self.build(chain, filter, kind, options)

Experimental RBS support (using type sampling data from the type_fusion project).

def self.build: (ActiveSupport::Callbacks::CallbackChain chain, (ActiveModel::Validations::ComparisonValidator | ActiveRecord::Validations::UniquenessValidator | Symbol) filter, Symbol kind, Hash options) -> ActiveSupport::Callbacks::Callback

This signature was generated using 5 samples from 2 applications.

:nodoc:#
def self.build(chain, filter, kind, options)
  if filter.is_a?(String)
    raise ArgumentError, <<-MSG.squish
      Passing string to define a callback is not supported. See the `.set_callback`
      documentation to see supported values.
    MSG
  end
  new chain.name, filter, kind, options, chain.config
end