Class: Precious::Views::Pages

Inherits:
Layout
  • Object
show all
Defined in:
lib/gollum/frontend/views/pages.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

#refObject (readonly)

Returns the value of attribute ref.



4
5
6
# File 'lib/gollum/frontend/views/pages.rb', line 4

def ref
  @ref
end

#resultsObject (readonly)

Returns the value of attribute results.



4
5
6
# File 'lib/gollum/frontend/views/pages.rb', line 4

def results
  @results
end

Instance Method Details

#has_resultsObject



10
11
12
# File 'lib/gollum/frontend/views/pages.rb', line 10

def has_results
  !@results.empty?
end

#no_resultsObject



14
15
16
# File 'lib/gollum/frontend/views/pages.rb', line 14

def no_results 
  @results.empty?
end

#titleObject



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

def title
  "All pages in #{@ref}"
end