Module: Puppet::Pops::Types::PVariantType::ClassModule

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

Instance Method Summary collapse

Instance Method Details

#==(o) ⇒ Object



97
98
99
100
# File 'lib/puppet/pops/types/types.rb', line 97

def ==(o)
  (self.class == o.class && Set.new(types) == Set.new(o.types)) ||
    (o.class == PDataType && self == Puppet::Pops::Types::TypeCalculator.data_variant())
end

#hashObject



93
94
95
# File 'lib/puppet/pops/types/types.rb', line 93

def hash
  [self.class, Set.new(self.types)].hash
end