Sha256: 2b4e1a9372afcd7ca0afef1b9b01d5ac8bce7cbffc849c1dccb543e68ef942e0
Contents?: true
Size: 164 Bytes
Versions: 2
Compression:
Stored size: 164 Bytes
Contents
class Array; def in_groups(num_groups) return [] if num_groups == 0 slice_size = (self.size/Float(num_groups)).ceil self.each_slice(slice_size).to_a end; end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pokeplot-0.2.1beta | lib/pokeplot/helpers/array.rb |
pokeplot-0.2.0beta | lib/pokeplot/helpers/array.rb |