method
lookup
v8.1.1 -
Show latest stable
- Class:
ActiveModel::Type::Registry
lookup(symbol, ...)public
No documentation available.
# File activemodel/lib/active_model/type/registry.rb, line 23
def lookup(symbol, ...)
registration = registrations[symbol]
if registration
registration.call(symbol, ...)
else
raise ArgumentError, "Unknown type #{symbol.inspect}"
end
end