Class: Veye::Pagination::PaginationPretty
- Inherits:
-
Object
- Object
- Veye::Pagination::PaginationPretty
- Defined in:
- lib/veye/pagination/pagination_pretty.rb
Instance Method Summary collapse
Instance Method Details
#after ⇒ Object
8 |
# File 'lib/veye/pagination/pagination_pretty.rb', line 8 def after; end |
#before ⇒ Object
7 |
# File 'lib/veye/pagination/pagination_pretty.rb', line 7 def before; end |
#format(paging) ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/veye/pagination/pagination_pretty.rb', line 10 def format(paging) printf("\t%15s - %s\n", "Current page".color(:green), "#{paging['current_page']}".bright) puts "\t-------------------------" printf("\t%-15s: %s\n", "Per page", paging['per_page']) printf("\t%-15s: %s\n", "Total pages", paging['total_pages']) printf("\t%-15s: %s\n", "Total entries", paging['total_entries']) end |