class Dry::Types::PrimitiveInferrer

@api public
PrimitiveInferrer returns the list of classes matching a type.

def [](type)

Other tags:
    Api: - private

Returns:
  • (Array[Class]) -
def [](type)
  self.class.fetch_or_store(type) do
    Array(compiler.visit(type.to_ast)).freeze
  end
end

def initialize

Other tags:
    Api: - private
def initialize
  @compiler = Compiler.new
end