Method: Servel::EntryFactory.top

Defined in:
lib/servel/entry_factory.rb

.top(href) ⇒ Object



20
21
22
23
24
25
26
27
28
29
# File 'lib/servel/entry_factory.rb', line 20

def self.top(href)
  Servel::Entry.new(
    ftype: :directory,
    type: "Dir",
    listing_classes: "top directory",
    icon: "🔝",
    href: href,
    name: "Top Directory"
  )
end