Module: Puppet::Pops::Types::PHashType::ClassModule
- Defined in:
- lib/puppet/pops/types/types.rb
Instance Method Summary collapse
Instance Method Details
#==(o) ⇒ Object
347 348 349 350 351 352 |
# 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 ⇒ Object
343 344 345 |
# 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? ⇒ Boolean
354 355 356 |
# 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 |