Method: Puppet::Pops::Types::PAnyType#normalize

Defined in:
lib/puppet/pops/types/types.rb

#normalize(guard = nil) ⇒ PAnyType

Normalizes the type. This does not change the characteristics of the type but it will remove duplicates and constructs like NotUndef where T is not assignable from Undef and change Variant where all T are enums into an Enum.

Parameters:

  • guard (RecursionGuard) (defaults to: nil)

    guard against recursion. Only used by internal calls

Returns:

  • (PAnyType)

    The iterable type that this type is assignable to or ‘nil`



208
209
210
# File 'lib/puppet/pops/types/types.rb', line 208

def normalize(guard = nil)
  self
end