module ActiveModel::Type

def register(type_name, klass = nil, &block)

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

def register: (Symbol type_name, ?Class klass, ) -> Proc

This signature was generated using 1 sample from 1 application.

symbol by {attribute}[rdoc-ref:Attributes::ClassMethods#attribute].
Add a new type to the registry, allowing it to be referenced as a
def register(type_name, klass = nil, &block)
  registry.register(type_name, klass, &block)
end