Categories: None [Edit]

range_slice

https://rubygems.org/gems/range_slice
== SYNOPSIS: (1..1000).slice(300) # => [1..300, 301..600, 601..900, 901..1000] require 'active_support' (7.days.ago..Time.now).slice(24.hours) # => [thu apr 10 17:48:08 -0700 2008..fri apr 11 17:48:07 -0700 2008, fri apr 11 17:48:08 -0700 2008..sat apr 12 17:48:07 -0700 2008, sat apr 12 17:48:08 -0700 2008..sun apr 13 17:48:07 -0700 2008, sun apr 13 17:48:08 -0700 2008..mon apr 14 17:48:07 -0700 2008, mon apr 14 17:48:08 -0700 2008..tue apr 15 17:48:07 -0700 2008, tue apr 15 17:48:08 -0700 2008..wed apr 16 17:48:07 -0700 2008, wed apr 16 17:48:08 -0700 2008..thu apr 17 17:48:07 -0700 2008, thu apr 17 17:48:08 -0700 2008..thu apr 17 17:48:08 -0700 2008] == INSTALL: * sudo gem install range_slice == LICENSE:

Total

Ranking: 126,403 of 183,477
Downloads: 4,557

Daily

Ranking: 41,916 of 183,470
Downloads: 1

Depended by

RankDownloadsName

Depends on

RankDownloadsName
2,1048,604,438hoe

Owners

#GravatarHandle
1iconbluetrust