Class: Dry::Schema::PrimitiveInferrer Private

Inherits:
Types::PrimitiveInferrer
  • Object
show all
Defined in:
lib/dry/schema/primitive_inferrer.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Constant Summary collapse

Compiler =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

::Class.new(superclass::Compiler) do
  # @api private
  def visit_intersection(node)
    left, right = node
    [visit(left), visit(right)].flatten(1)
  end
end

Instance Method Summary collapse

Constructor Details

#initializePrimitiveInferrer

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of PrimitiveInferrer.



15
16
17
18
19
# File 'lib/dry/schema/primitive_inferrer.rb', line 15

def initialize
  super

  @compiler = Compiler.new
end