Sha256: 99afc4d1a5b67a8edbef35dc8a90ef57ba4fe4255782ec0dc1e0698a86401444

Contents?: true

Size: 701 Bytes

Versions: 8

Compression:

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

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
puppet-strings-3.0.1 lib/puppet-strings/yard/templates/default/tags/setup.rb
puppet-strings-3.0.0 lib/puppet-strings/yard/templates/default/tags/setup.rb
puppet-strings-2.9.0 lib/puppet-strings/yard/templates/default/tags/setup.rb
puppet-strings-2.8.0 lib/puppet-strings/yard/templates/default/tags/setup.rb
puppet-strings-2.7.0 lib/puppet-strings/yard/templates/default/tags/setup.rb
puppet-strings-2.6.0 lib/puppet-strings/yard/templates/default/tags/setup.rb
puppet-strings-2.5.0 lib/puppet-strings/yard/templates/default/tags/setup.rb
puppet-strings-2.4.0 lib/puppet-strings/yard/templates/default/tags/setup.rb