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
3430 def initialize
3431   @other_type_detected = false
3432 end

Public Instance Methods

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