Method: ActiveModel::Type::Registry#lookup
- Defined in:
- activemodel/lib/active_model/type/registry.rb
#lookup(symbol) ⇒ Object
23 24 25 26 27 28 29 30 31 |
# 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 |