lib/puppet/pops/types/p_type_set_type.rb
def resolve_name_authority(init_hash, loader)
    name_auth = @name_authority
    if name_auth.nil?
      name_auth = init_hash[KEY_NAME_AUTHORITY]
      name_auth = loader.name_authority if name_auth.nil? && loader.is_a?(TypeSetLoader)
      if name_auth.nil?
        name = @name || init_hash[KEY_NAME]
        raise ArgumentError, "No 'name_authority' is declared in TypeSet '#{name}' and it cannot be inferred"
      end
    end
    name_auth
  end
# A Loader that makes the types known to the TypeSet visible
#
# @api private
A Loader that makes the types known to the TypeSet visible
A Loader that makes the types known to the TypeSet visible
def resolve_name_authority(init_hash, loader)
    name_auth = @name_authority
    if name_auth.nil?
      name_auth = init_hash[KEY_NAME_AUTHORITY]
      name_auth = loader.name_authority if name_auth.nil? && loader.is_a?(TypeSetLoader)
      if name_auth.nil?
        name = @name || init_hash[KEY_NAME]
        raise ArgumentError, "No 'name_authority' is declared in TypeSet '#{name}' and it cannot be inferred"
      end
    end
    name_auth
  end
def resolve_name_authority ( init_hash , loader ) name_auth = @name_authority if name_auth . nil? name_auth = init_hash [ KEY_NAME_AUTHORITY ] name_auth = loader . name_authority if name_auth . nil? && loader . is_a? ( TypeSetLoader ) if name_auth . nil? name = @name || init_hash [ KEY_NAME ] raise ArgumentError , "No 'name_authority' is declared in TypeSet '#{name}' and it cannot be inferred" end end name_auth end
A Loader that makes the types known to the TypeSet visible
A Loader that makes the types known to the TypeSet visible
init_hash
loader
api
None