Class: BasePretty
- Inherits:
-
Object
show all
- Defined in:
- lib/veye/views/base_pretty.rb
Direct Known Subclasses
Veye::Github::InfoPretty, Veye::Github::ListPretty, Veye::Github::SearchPretty, Veye::Package::InfoPretty, Veye::Package::ReferencesPretty, Veye::Package::SearchPretty, Veye::Package::VersionsPretty, Veye::Project::DependencyPretty, Veye::Project::InfoPretty, Veye::Project::LicencePretty, Veye::User::FavoritePretty, Veye::User::ProfilePretty
Instance Method Summary
collapse
Instance Method Details
#after(paging = nil, allow_pagination = false) ⇒ Object
6
7
8
9
10
11
12
13
14
|
# File 'lib/veye/views/base_pretty.rb', line 6
def after(paging = nil, = false)
if and paging
printf("\n#-- %s\n", "Pagination information".bright)
printf("\t%-15s: %s\n", "Current page", paging['current_page'])
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
end
|
#before ⇒ Object
5
|
# File 'lib/veye/views/base_pretty.rb', line 5
def before; end
|
15
16
17
|
# File 'lib/veye/views/base_pretty.rb', line 15
def format(results)
raise NotImplementedError
end
|