Sha256: f443a2d1265919d456d94879e1ecf07abb8689e716170e98537a92caa4ba9a86

Contents?: true

Size: 719 Bytes

Versions: 6

Compression:

Stored size: 719 Bytes

Contents

# frozen_string_literal: true

# Called to return parameter tags.
# @return [Array<YARD::Tag>] Returns the parameter tags if the object should have parameters.
def param
  tag(:param) if
    object.type == :method ||
    object.type == :puppet_class ||
    object.type == :puppet_data_type ||
    object.type == :puppet_defined_type ||
    object.type == :puppet_function ||
    object.type == :puppet_task ||
    object.type == :puppet_plan
end

# Renders the overload section.
# @return [String] Returns the rendered section.
def overload
  erb(object.type == :puppet_function ? :puppet_overload : :overload)
end

# Renders the enum section.
# @return [String] Returns the rendered section.
def enum
  erb(:enum)
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
puppet-strings-4.1.3 lib/puppet-strings/yard/templates/default/tags/setup.rb
puppet-strings-4.1.2 lib/puppet-strings/yard/templates/default/tags/setup.rb
puppet-strings-4.1.1 lib/puppet-strings/yard/templates/default/tags/setup.rb
puppet-strings-4.1.0 lib/puppet-strings/yard/templates/default/tags/setup.rb
puppet-strings-4.0.0 lib/puppet-strings/yard/templates/default/tags/setup.rb
puppet-strings-4.0.0.rc.1 lib/puppet-strings/yard/templates/default/tags/setup.rb