Sha256: e41b02954b4c64ae98bdace47d7d503ce70d2fc50928b30bd7dfcb2d856d1535

Contents?: true

Size: 487 Bytes

Versions: 6

Compression:

Stored size: 487 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
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

6 entries across 6 versions & 1 rubygems

Version Path
puppet-strings-1.2.1 lib/puppet-strings/yard/templates/default/tags/setup.rb
puppet-strings-1.2.0 lib/puppet-strings/yard/templates/default/tags/setup.rb
puppet-strings-1.1.1 lib/puppet-strings/yard/templates/default/tags/setup.rb
puppet-strings-1.1.0 lib/puppet-strings/yard/templates/default/tags/setup.rb
puppet-strings-1.0.0 lib/puppet-strings/yard/templates/default/tags/setup.rb
puppet-strings-0.99.0 lib/puppet-strings/yard/templates/default/tags/setup.rb