Sha256: 1dd771a48e10a2908ddc1a6fcfad92f8b9249a6f26509c5011d1bc1c5101baf2

Contents?: true

Size: 401 Bytes

Versions: 6

Compression:

Stored size: 401 Bytes

Contents

# frozen_string_literal: true

include T('default/layout/html')

def layout
  @nav_url = url_for_list((defined?(@file) && @file) ? 'file' : 'class')

  @path =
    if !object || object.is_a?(String)
      nil
    elsif defined?(@file) && @file
      @file.path
    elsif !object.is_a?(YARD::CodeObjects::NamespaceObject)
      object.parent.path
    else
      object.path
    end

  erb(:layout)
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
facterdb-3.4.0 doc/templates/facterdb/layout/html/setup.rb
facterdb-3.3.0 doc/templates/facterdb/layout/html/setup.rb
facterdb-3.2.0 doc/templates/facterdb/layout/html/setup.rb
facterdb-3.1.0 doc/templates/facterdb/layout/html/setup.rb
facterdb-3.0.0 doc/templates/facterdb/layout/html/setup.rb
facterdb-2.1.0 doc/templates/facterdb/layout/html/setup.rb