Module: Puppet::Pops::Types::PAbstractType::ClassModule
- Defined in:
- lib/puppet/pops/types/types.rb
Overview
Instance Method Summary collapse
- #==(o) ⇒ Object (also: #eql?)
-
#copy ⇒ Object
Produce a deep copy of the type.
- #hash ⇒ Object
- #to_s ⇒ Object
Instance Method Details
#==(o) ⇒ Object Also known as: eql?
34 35 36 |
# File 'lib/puppet/pops/types/types.rb', line 34 def ==(o) self.class == o.class end |
#copy ⇒ Object
Produce a deep copy of the type
26 27 28 |
# File 'lib/puppet/pops/types/types.rb', line 26 def copy Marshal.load(Marshal.dump(self)) end |
#hash ⇒ Object
30 31 32 |
# File 'lib/puppet/pops/types/types.rb', line 30 def hash self.class.hash end |
#to_s ⇒ Object
40 41 42 |
# File 'lib/puppet/pops/types/types.rb', line 40 def to_s Puppet::Pops::Types::TypeCalculator.string(self) end |