module Puppet::Pops::Types::PHashType::ClassModule

Public Instance Methods

==(o) click to toggle source
# File lib/puppet/pops/types/types.rb, line 347
def ==(o)
  self.class        == o.class         &&
  key_type          == o.key_type      &&
  self.element_type == o.element_type  &&
  self.size_type    == o.size_type
end
hash() click to toggle source
# File lib/puppet/pops/types/types.rb, line 343
def hash
  [self.class, key_type, self.element_type, self.size_type].hash
end
is_the_empty_hash?() click to toggle source
# File lib/puppet/pops/types/types.rb, line 354
def is_the_empty_hash?
  size_type.is_a?(PIntegerType) && size_type.from == 0 && size_type.to == 0 && key_type.is_a?(PUndefType) && element_type.is_a?(PUndefType)
end