Class: NeatPages::Helpers::Status

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

#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



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