Permalink
Browse files

Array#in_groups: documentation updated

  • Loading branch information...
1 parent 140c0c8 commit 8e5b6e68531206e3173eceb26bc5a722f790db86 @kuldeepaggarwal kuldeepaggarwal committed Nov 11, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/core_ext/array/grouping.rb
@@ -53,7 +53,7 @@ def in_groups_of(number, fill_with = nil)
# ["4", "5"]
# ["6", "7"]
def in_groups(number, fill_with = nil)
- # size / number gives minor group size;
+ # size.div number gives minor group size;
# size % number gives how many objects need extra accommodation;
# each group hold either division or division + 1 items.
division = size.div number

0 comments on commit 8e5b6e6

Please sign in to comment.