module ActiveModel::Type

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

# sig/active_model/type.rbs

module ActiveModel::Type
  def lookup: (*unused *, **unused **, ) -> ActiveModel::Type::Integer
  def register: (Symbol type_name, ?Class klass, ) -> Proc
end

def default_value # :nodoc:

:nodoc:
def default_value # :nodoc:
  @default_value ||= Value.new
end

def lookup(...) # :nodoc:

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

def lookup: (*unused *, **unused **, ) -> ActiveModel::Type::Integer

This signature was generated using 4 samples from 1 application.

:nodoc:
def lookup(...) # :nodoc:
  registry.lookup(...)
end

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