Module: Puppet::Pops::Types::PStructType::ClassModule
- Defined in:
- lib/puppet/pops/types/types.rb
Instance Method Summary collapse
Instance Method Details
#==(o) ⇒ Object
248 249 250 |
# File 'lib/puppet/pops/types/types.rb', line 248 def ==(o) self.class == o.class && hashed_elements == o.hashed_elements end |
#clear_hashed_elements ⇒ Object
240 241 242 |
# File 'lib/puppet/pops/types/types.rb', line 240 def clear_hashed_elements @_hashed = nil end |
#hash ⇒ Object
244 245 246 |
# File 'lib/puppet/pops/types/types.rb', line 244 def hash [self.class, Set.new(elements)].hash end |
#hashed_elements_derived ⇒ Object
235 236 237 238 |
# File 'lib/puppet/pops/types/types.rb', line 235 def hashed_elements_derived @_hashed ||= elements.reduce({}) {|memo, e| memo[e.name] = e.type; memo } @_hashed end |