method

lookup

rails latest stable - Class: ActiveModel::Type::Registry
lookup(symbol, *args)
public

No documentation available.

# File activemodel/lib/active_model/type/registry.rb, line 23
      def lookup(symbol, *args)
        registration = registrations[symbol]

        if registration
          registration.call(symbol, *args)
        else
          raise ArgumentError, "Unknown type #{symbol.inspect}"
        end
      end