Module: Puppet::Pops::Types::PAnyType::ClassModule

Defined in:
lib/puppet/pops/types/types.rb

Instance Method Summary collapse

Instance Method Details

#==(o) ⇒ Object Also known as: eql?



33
34
35
# File 'lib/puppet/pops/types/types.rb', line 33

def ==(o)
  self.class == o.class
end

#copyObject

Produce a deep copy of the type



25
26
27
# File 'lib/puppet/pops/types/types.rb', line 25

def copy
  Marshal.load(Marshal.dump(self))
end

#hashObject



29
30
31
# File 'lib/puppet/pops/types/types.rb', line 29

def hash
  self.class.hash
end

#to_sObject



39
40
41
# File 'lib/puppet/pops/types/types.rb', line 39

def to_s
  Puppet::Pops::Types::TypeCalculator.string(self)
end