module Puppet::Pops::Types::PuppetObject
Marker module for implementations that are mapped to Object types @api public
Public Instance Methods
_pcore_all_contents(path, &block)
click to toggle source
# File lib/puppet/pops/types/puppet_object.rb 26 def _pcore_all_contents(path, &block) 27 end
_pcore_contents()
click to toggle source
# File lib/puppet/pops/types/puppet_object.rb 29 def _pcore_contents 30 end
_pcore_init_hash()
click to toggle source
# File lib/puppet/pops/types/puppet_object.rb 32 def _pcore_init_hash 33 {} 34 end
_pcore_type()
click to toggle source
Returns the Puppet Type for this instance. The implementing class must add the {#_pcore_type} as a class method.
@return [PObjectType] the type
# File lib/puppet/pops/types/puppet_object.rb 12 def _pcore_type 13 t = self.class._pcore_type 14 if t.parameterized? 15 unless instance_variable_defined?(:@_cached_ptype) 16 # Create a parameterized type based on the values of this instance that 17 # contains a parameter value for each type parameter that matches an 18 # attribute by name and type of value 19 @_cached_ptype = PObjectTypeExtension.create_from_instance(t, self) 20 end 21 t = @_cached_ptype 22 end 23 t 24 end
to_s()
click to toggle source
# File lib/puppet/pops/types/puppet_object.rb 36 def to_s 37 TypeFormatter.string(self) 38 end