Method: Puppet::Pops::Types::PTypeSetType::TypeSetLoader#find

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

#find(typed_name) ⇒ 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.



30
31
32
33
34
35
36
# File 'lib/puppet/pops/types/p_type_set_type.rb', line 30

def find(typed_name)
  if typed_name.type == :type && typed_name.name_authority == @type_set.name_authority
    type = @type_set[typed_name.name]
    return set_entry(typed_name, type) unless type.nil?
  end
  nil
end