class Puppet::Pops::Types::PTypeAliasType::AssertOtherTypeAcceptor

Acceptor used when checking for self recursion and that a type contains something other than aliases or type references

@api private

Public Class Methods

new() click to toggle source
     # File lib/puppet/pops/types/types.rb
3429 def initialize
3430   @other_type_detected = false
3431 end

Public Instance Methods

other_type_detected?() click to toggle source
     # File lib/puppet/pops/types/types.rb
3439 def other_type_detected?
3440   @other_type_detected
3441 end
visit(type, _) click to toggle source
     # File lib/puppet/pops/types/types.rb
3433 def visit(type, _)
3434   unless type.is_a?(PTypeAliasType) || type.is_a?(PVariantType)
3435     @other_type_detected = true
3436   end
3437 end