Sha256: 4a7bc2f198596c09101301bd9307986f5d0a2a0f2f07cc85ed63cc7f5a0ab338

Contents?: true

Size: 740 Bytes

Versions: 457

Compression:

Stored size: 740 Bytes

Contents

module Puppet::Pops
module Types
# Implements a standard visitor patter for the Puppet Type system.

#
# 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 {TypeAcceptor#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.
#
module TypeAcceptor
  # @param type [PAnyType] the type that we accept a visit from
  # @param guard [RecursionGuard] the guard against self recursion
  def visit(type, guard)
  end
end

# An acceptor that does nothing
class NoopTypeAcceptor
  include TypeAcceptor

  INSTANCE = NoopTypeAcceptor.new
end
end
end

Version data entries

457 entries across 457 versions & 2 rubygems

Version Path
puppet-7.21.0 lib/puppet/pops/types/type_acceptor.rb
puppet-7.21.0-x86-mingw32 lib/puppet/pops/types/type_acceptor.rb
puppet-7.21.0-x64-mingw32 lib/puppet/pops/types/type_acceptor.rb
puppet-7.21.0-universal-darwin lib/puppet/pops/types/type_acceptor.rb
puppet-7.20.0 lib/puppet/pops/types/type_acceptor.rb
puppet-7.20.0-x86-mingw32 lib/puppet/pops/types/type_acceptor.rb
puppet-7.20.0-x64-mingw32 lib/puppet/pops/types/type_acceptor.rb
puppet-7.20.0-universal-darwin lib/puppet/pops/types/type_acceptor.rb
puppet-7.19.0 lib/puppet/pops/types/type_acceptor.rb
puppet-7.19.0-x86-mingw32 lib/puppet/pops/types/type_acceptor.rb
puppet-7.19.0-x64-mingw32 lib/puppet/pops/types/type_acceptor.rb
puppet-7.19.0-universal-darwin lib/puppet/pops/types/type_acceptor.rb
puppet-7.18.0 lib/puppet/pops/types/type_acceptor.rb
puppet-7.18.0-x86-mingw32 lib/puppet/pops/types/type_acceptor.rb
puppet-7.18.0-x64-mingw32 lib/puppet/pops/types/type_acceptor.rb
puppet-6.28.0 lib/puppet/pops/types/type_acceptor.rb
puppet-7.18.0-universal-darwin lib/puppet/pops/types/type_acceptor.rb
puppet-6.28.0-x86-mingw32 lib/puppet/pops/types/type_acceptor.rb
puppet-6.28.0-x64-mingw32 lib/puppet/pops/types/type_acceptor.rb
puppet-6.28.0-universal-darwin lib/puppet/pops/types/type_acceptor.rb