rethink method parameters: options to new(), data to ranges()
authorMischa POSLAWSKY <perl@shiar.org>
Sun, 15 Nov 2009 04:10:42 +0000 (05:10 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Sun, 15 Nov 2009 05:06:04 +0000 (06:06 +0100)
commitb9c565b77b8ac8f8856c6af118a1e1af5b917c24
treea018ea3da089df914befdf9da8fd87568bd7a2fe
parente288145c227aef0ecfed7c26e135ca2bbd77c040
rethink method parameters: options to new(), data to ranges()

With normal usage, calling multiple ranges for the same data seems unlikely.
More useful would be to reuse the same options for different lists, so make
that the object variable.

Tests are a clear exception because the same input is reused often.
Doesn't suffer too much though, as options can now be kept instead.
lib/List/Index.pm
t/10-ranges.t
t/25-apply.t