Class: Precious::Views::Index

Inherits:
Layout
  • Object
show all
Defined in:
lib/gollum/frontend/views/index.rb

Instance Attribute Summary collapse

Attributes inherited from Layout

#name

Instance Method Summary collapse

Methods inherited from Layout

#base_path, #escaped_name, #rtfm_root

Instance Attribute Details

#rootsObject (readonly)

Returns the value of attribute roots.



6
7
8
# File 'lib/gollum/frontend/views/index.rb', line 6

def roots
  @roots
end

Instance Method Details

#has_rootsObject



12
13
14
# File 'lib/gollum/frontend/views/index.rb', line 12

def has_roots
  !@roots.empty?
end

#no_rootsObject



16
17
18
# File 'lib/gollum/frontend/views/index.rb', line 16

def no_roots
  @roots.empty?
end

#titleObject



8
9
10
# File 'lib/gollum/frontend/views/index.rb', line 8

def title
  "Index"
end