range_slice 0.1.0
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:
Gemfile:
=
instalar:
=
Versiones:
- 0.1.0 April 17, 2008* (8,5 KB)
dependencias de Runtime (1):
hoe
>= 1.5.1