Class: Precious::Views::Pages
- Defined in:
- lib/gollum/frontend/views/pages.rb
Instance Attribute Summary collapse
-
#ref ⇒ Object
readonly
Returns the value of attribute ref.
-
#results ⇒ Object
readonly
Returns the value of attribute results.
Attributes inherited from Layout
Instance Method Summary collapse
Methods inherited from Layout
Instance Attribute Details
#ref ⇒ Object (readonly)
Returns the value of attribute ref.
4 5 6 |
# File 'lib/gollum/frontend/views/pages.rb', line 4 def ref @ref end |
#results ⇒ Object (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_results ⇒ Object
10 11 12 |
# File 'lib/gollum/frontend/views/pages.rb', line 10 def has_results !@results.empty? end |
#no_results ⇒ Object
14 15 16 |
# File 'lib/gollum/frontend/views/pages.rb', line 14 def no_results @results.empty? end |
#title ⇒ Object
6 7 8 |
# File 'lib/gollum/frontend/views/pages.rb', line 6 def title "All pages in #{@ref}" end |