diff options
author | KD <kd.engineer@yahoo.co.in> | 2013-11-11 11:46:20 +0530 |
---|---|---|
committer | KD <kd.engineer@yahoo.co.in> | 2013-11-11 11:46:20 +0530 |
commit | 8e5b6e68531206e3173eceb26bc5a722f790db86 (patch) | |
tree | 1abda6c484528d80c37f73e0f7f9132050dca023 | |
parent | 140c0c8881d100b0d0bc2a0bce1227ddfbd9c9bd (diff) | |
download | rails-8e5b6e68531206e3173eceb26bc5a722f790db86.tar.gz rails-8e5b6e68531206e3173eceb26bc5a722f790db86.tar.bz2 rails-8e5b6e68531206e3173eceb26bc5a722f790db86.zip |
Array#in_groups: documentation updated
-rw-r--r-- | activesupport/lib/active_support/core_ext/array/grouping.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/array/grouping.rb b/activesupport/lib/active_support/core_ext/array/grouping.rb index 37f007c751..80bbee97da 100644 --- a/activesupport/lib/active_support/core_ext/array/grouping.rb +++ b/activesupport/lib/active_support/core_ext/array/grouping.rb @@ -53,7 +53,7 @@ class Array # ["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 |