Method: Puppet::Pops::Types::TypeCalculator#infer_Resource
- Defined in:
- lib/puppet/pops/types/type_calculator.rb
#infer_Resource(o) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
A Puppet::Parser::Resource, or Puppet::Resource
658 659 660 661 662 663 664 |
# File 'lib/puppet/pops/types/type_calculator.rb', line 658 def infer_Resource(o) # Only Puppet::Resource can have a title that is a symbol :undef, a PResource cannot. # A mapping must be made to empty string. A nil value will result in an error later title = o.title title = '' if :undef == title PTypeType.new(PResourceType.new(o.type.to_s, title)) end |