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