Module: Puppet::Pops::Types::TypeAcceptor

Included in:
NoopTypeAcceptor, Puppet::Pops::Types::TypeMismatchDescriber::UnresolvedTypeFinder
Defined in:
lib/puppet/pops/types/type_acceptor.rb

Overview

An instance of this module is passed as an argument to the PAnyType#accept method of a Type instance. That type will then use the #visit callback on the acceptor and then pass the acceptor to the ‘accept` method of all contained type instances so that the it gets a visit from each one recursively.

Instance Method Summary collapse

Instance Method Details

#visit(type, guard) ⇒ Object

Parameters:

  • type (PAnyType)

    the type that we accept a visit from

  • quard (RecursionGuard)

    the guard against self recursion



14
15
# File 'lib/puppet/pops/types/type_acceptor.rb', line 14

def visit(type, guard)
end