module ActiveModel::Type

def lookup(*args, **kwargs) # :nodoc:

:nodoc:
def lookup(*args, **kwargs) # :nodoc:
  registry.lookup(*args, **kwargs)
end

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

Add a new type to the registry, allowing it to be get through ActiveModel::Type#lookup
def register(type_name, klass = nil, **options, &block)
  registry.register(type_name, klass, **options, &block)
end