Sha256: d7b5ff48375ac23fd9bba66a3665e2732454bd3bd72b7ab1f281f56071084ea6

Contents?: true

Size: 557 Bytes

Versions: 3

Compression:

Stored size: 557 Bytes

Contents

# 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_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(if object.type == :puppet_function then :puppet_overload else :overload end)
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
puppet-strings-2.2.0 lib/puppet-strings/yard/templates/default/tags/setup.rb
puppet-strings-2.1.0 lib/puppet-strings/yard/templates/default/tags/setup.rb
puppet-strings-2.0.0 lib/puppet-strings/yard/templates/default/tags/setup.rb