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

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

Instance Method Summary collapse

Instance Method Details

#==(o) ⇒ Object



77
78
79
80
# File 'lib/puppet/pops/types/types.rb', line 77

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



73
74
75
# File 'lib/puppet/pops/types/types.rb', line 73

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