Class: NeatPages::Helpers::Status
- Defined in:
- lib/neat_pages/helpers/status.rb
Overview
************************************************************************************* Status take care of generating the html code that show the results position and the total results.
Output Example
30 to 40 / 300 *************************************************************************************
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
14 15 16 17 18 19 20 |
# File 'lib/neat_pages/helpers/status.rb', line 14 def generate return '' if empty? or out_of_bound? from, to = get_from_to_data return build_status from, to end |