Sha256: c283fd507bf8bf21d4c28d1b27b594a3fcd66fdd500ed51624d2d69c370e092f

Contents?: true

Size: 377 Bytes

Versions: 6

Compression:

Stored size: 377 Bytes

Contents

# frozen_string_literal: true

# Initializes the template.
# @return [void]
def init
  sections :header, :box_info, :summary, :overview, :note, :todo, :deprecated, T('tags'), :method_details_list, [T('method_details')], :source
end

def method_listing
  sort_listing(object.functions)
end

def sort_listing(list)
  list.sort_by { |o| [o.scope.to_s, o.name.to_s.downcase] }
end

Version data entries

6 entries across 6 versions & 1 rubygems

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