class Dry::Schema::PrimitiveInferrer

@api private
type can handle.
for inferring a list of possible primitives that a given
PrimitiveInferrer is used internally by ‘Macros::Filled`

def [](type)

Other tags:
    Api: - private

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

def initialize

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