class ActiveRecord::Type::AdapterSpecificRegistry
def register(type_name, klass = nil, **options, &block)
Experimental RBS support (using type sampling data from the type_fusion
project).
def register: (Symbol type_name, ?Class klass, **Hash options, ) -> untyped
This signature was generated using 1 sample from 1 application.
def register(type_name, klass = nil, **options, &block) unless block_given? block = proc { |_, *args| klass.new(*args) } block.ruby2_keywords if block.respond_to?(:ruby2_keywords) end registrations << Registration.new(type_name, block, **options) end