Module: Puppet::Pops::Types::PHashType::ClassModule
- Defined in:
- lib/puppet/pops/types/types.rb
Instance Method Summary collapse
Instance Method Details
#==(o) ⇒ Object
356 357 358 359 360 361 |
# File 'lib/puppet/pops/types/types.rb', line 356 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 ⇒ Object
352 353 354 |
# File 'lib/puppet/pops/types/types.rb', line 352 def hash [self.class, key_type, self.element_type, self.size_type].hash end |
#is_the_empty_hash? ⇒ Boolean
363 364 365 |
# File 'lib/puppet/pops/types/types.rb', line 363 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 |