Module: Puppet::Pops::Types::PStructType::ClassModule
- Defined in:
- lib/puppet/pops/types/types.rb
Instance Method Summary collapse
Instance Method Details
#==(o) ⇒ Object
266 267 268 |
# File 'lib/puppet/pops/types/types.rb', line 266 def ==(o) self.class == o.class && hashed_elements == o.hashed_elements end |
#clear_hashed_elements ⇒ Object
258 259 260 |
# File 'lib/puppet/pops/types/types.rb', line 258 def clear_hashed_elements @_hashed = nil end |
#hash ⇒ Object
262 263 264 |
# File 'lib/puppet/pops/types/types.rb', line 262 def hash [self.class, Set.new(elements)].hash end |
#hashed_elements_derived ⇒ Object
253 254 255 256 |
# File 'lib/puppet/pops/types/types.rb', line 253 def hashed_elements_derived @_hashed ||= elements.reduce({}) {|memo, e| memo[e.name] = e; memo } @_hashed end |