Class: NeatPages::Helpers::Navigation
- Defined in:
- lib/neat_pages/helpers/navigation.rb
Overview
************************************************************************************* Navigation take care of generating the html code for the pagination navigation.
Output Example
< Previous | 1 | 2 | 3 | Next > *************************************************************************************
Instance Attribute Summary
Attributes inherited from Builder
Instance Method Summary collapse
Methods inherited from Builder
#b, #initialize, #li, #path_to, #reset_builder, #t
Constructor Details
This class inherits a constructor from NeatPages::Helpers::Builder
Instance Method Details
#generate ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/neat_pages/helpers/navigation.rb', line 17 def generate return '' if not paginated? reset_builder end |