Class: NeatPages::Helpers::Navigation

Inherits:
Builder
  • Object
show all
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

#pagination

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

#generateObject



17
18
19
20
21
22
23
# File 'lib/neat_pages/helpers/navigation.rb', line 17

def generate
  return '' if not paginated?

  reset_builder

  navigation_standard
end