lib/puppet-strings/yard/code_objects/type.rb
# Represents a resource type parameter.
Represents a resource type parameter.
Represents a resource type parameter .
def parameters
    @parameters ||= []  
    return @parameters if providers.empty?
    return @parameters if @parameters&.any? { |p| p.name == 'provider' }
    provider_param = Parameter.new(
      'provider',
      "The specific backend to use for this `#{self.name.to_s}` resource. You will seldom need " + \
      "to specify this --- Puppet will usually discover the appropriate provider for your platform."
    )
    @parameters ||= []
    @parameters << provider_param
  end
def parameters @parameters ||= [ ] return @parameters if providers . empty? return @parameters if @parameters &. any? { | p | p . name == 'provider' } provider_param = Parameter . new ( 'provider' , "The specific backend to use for this `#{self.name.to_s}` resource. You will seldom need " + "to specify this --- Puppet will usually discover the appropriate provider for your platform." ) @parameters ||= [ ] @parameters << provider_param end
Represents a resource type parameter.
Represents a resource type parameter .
# guard against not filled parameters # just return params if there are no providers # return existing params if we have already added provider