class Dry::Types::PrimitiveInferrer
@api public
PrimitiveInferrer returns the list of classes matching a type.
def [](type)
- 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
- Api: - private
def initialize @compiler = Compiler.new end