openstreetmap-website
https://github.com/openstreetmap/openstreetmap-website
Ruby
The Rails application that powers OpenStreetMap
ActionController::Pagination::Paginator::Page#<=>
Compares two Page objects and returns -1 if the left-hand page comes before the right-hand page, 0 if the pages are equal, and 1 if the left-hand page comes after the right-hand page. Raises ArgumentError if the pages do not belong to the same Paginator object.
Edit
git clone [email protected]:openstreetmap/openstreetmap-website.git
cd openstreetmap-website
open lib/classic_pagination/pagination.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-ActionController--Pagination--Paginator--Page-----for-pr
# Commit to gitgit add lib/classic_pagination/pagination.rbgit commit -m "better docs for ActionController::Pagination::Paginator::Page#<=>"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-ActionController--Pagination--Paginator--Page-----for-pr
hub pull-request
# Celebrate!