Initial commit of Paginator #19

Closed
wants to merge 3 commits into
from

Conversation

Projects
None yet
2 participants
@tivac

tivac commented Jan 6, 2012

Contains Paginator-Base, a UI-less paginator that provides the core logic & Paginator, a currently mostly worthless UI layer on top of Paginator-Base. Assuming these pass muster we'll see about making Paginator more useful.

Would love to get any and all feedback on API decisions, source decisions, hairstyle decisions, you get the idea.

tivac added some commits Jan 6, 2012

Initial commit of paginator source
Contains Paginator-Base, a UI-less paginator that provides the core logic & Paginator, a currently mostly worthless UI layer on top of Paginator-Base. Assuming these pass muster we'll see about making Paginator more useful.
Updates to reflect ls_n's feedback
Paginator Base -> Paginator Core
Initial pass at Infinity support
Stubbed out .first & .last
Updated tests to ensure more consistent output
Various other clean-up bits
Support for .first & .last
New private method, _max()
Handle Infinity case more succinctly throughout

@lsmith lsmith closed this Apr 13, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment