Module: Puppet::Pops::Types::PAnyType::ClassModule
- Defined in:
- lib/puppet/pops/types/types.rb
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?
37 38 39 |
# File 'lib/puppet/pops/types/types.rb', line 37 def ==(o) self.class == o.class end |
#copy ⇒ Object
Produce a deep copy of the type
29 30 31 |
# File 'lib/puppet/pops/types/types.rb', line 29 def copy Marshal.load(Marshal.dump(self)) end |
#hash ⇒ Object
33 34 35 |
# File 'lib/puppet/pops/types/types.rb', line 33 def hash self.class.hash end |
#to_s ⇒ Object
43 44 45 |
# File 'lib/puppet/pops/types/types.rb', line 43 def to_s Puppet::Pops::Types::TypeCalculator.string(self) end |