facets 2.5.1 → 2.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. data/CHANGES +113 -13
  2. data/MANIFEST +23 -19
  3. data/RELEASE +22 -22
  4. data/VERSION +1 -1
  5. data/doc/{archive → changelogs}/CHANGELOG-0.10.30 +0 -0
  6. data/doc/{archive → changelogs}/CHANGELOG-1.8.54 +0 -0
  7. data/doc/{archive → changelogs}/CHANGELOG-2.4.5 +0 -0
  8. data/doc/log/basic_stats/index.html +4 -4
  9. data/doc/rdoc/core/classes/Array.html +148 -148
  10. data/doc/rdoc/core/classes/Binding.html +45 -45
  11. data/doc/rdoc/core/classes/Class.html +38 -38
  12. data/doc/rdoc/core/classes/Comparable.html +26 -26
  13. data/doc/rdoc/core/classes/Enumerable.html +224 -139
  14. data/doc/rdoc/core/classes/Enumerable/Enumerator.html +126 -13
  15. data/doc/rdoc/core/classes/Enumerator.html +123 -13
  16. data/doc/rdoc/core/classes/Exception.html +8 -8
  17. data/doc/rdoc/core/classes/File.html +58 -58
  18. data/doc/rdoc/core/classes/FileTest.html +4 -4
  19. data/doc/rdoc/core/classes/Float.html +8 -8
  20. data/doc/rdoc/core/classes/Functor.html +12 -12
  21. data/doc/rdoc/core/classes/Hash.html +289 -266
  22. data/doc/rdoc/core/classes/Indexable.html +110 -110
  23. data/doc/rdoc/core/classes/Integer.html +2 -2
  24. data/doc/rdoc/core/classes/Kernel.html +329 -329
  25. data/doc/rdoc/core/classes/Lazy/Promise.html +1 -1
  26. data/doc/rdoc/core/classes/MatchData.html +15 -15
  27. data/doc/rdoc/core/classes/Module.html +161 -161
  28. data/doc/rdoc/core/classes/NilClass.html +23 -23
  29. data/doc/rdoc/core/classes/Numeric.html +27 -27
  30. data/doc/rdoc/core/classes/Object.html +8 -8
  31. data/doc/rdoc/core/classes/ObjectSpace.html +5 -5
  32. data/doc/rdoc/core/classes/Proc.html +22 -22
  33. data/doc/rdoc/core/classes/Regexp.html +1 -1
  34. data/doc/rdoc/core/classes/Stackable.html +31 -31
  35. data/doc/rdoc/core/classes/String.html +270 -270
  36. data/doc/rdoc/core/classes/Symbol.html +1 -1
  37. data/doc/rdoc/core/classes/TrueClass.html +8 -8
  38. data/doc/rdoc/core/classes/UnboundMethod.html +12 -12
  39. data/doc/rdoc/core/created.rid +1 -1
  40. data/doc/rdoc/core/files/lib/core/facets/hash/dearray_values_rb.html +92 -0
  41. data/doc/rdoc/core/files/lib/core/facets/to_hash_rb.html +2 -1
  42. data/doc/rdoc/core/fr_file_index.html +1 -0
  43. data/doc/rdoc/core/fr_method_index.html +401 -385
  44. data/doc/{archive → release-notes}/RELEASE-2.0.5 +0 -0
  45. data/doc/{archive → release-notes}/RELEASE-2.1.0 +0 -0
  46. data/doc/{archive → release-notes}/RELEASE-2.1.1 +0 -0
  47. data/doc/{archive → release-notes}/RELEASE-2.1.2 +0 -0
  48. data/doc/{archive → release-notes}/RELEASE-2.1.3 +0 -0
  49. data/doc/{archive → release-notes}/RELEASE-2.2.0 +0 -0
  50. data/doc/{archive → release-notes}/RELEASE-2.2.1 +0 -0
  51. data/doc/{archive → release-notes}/RELEASE-2.3.0 +0 -0
  52. data/doc/{archive → release-notes}/RELEASE-2.4.0 +0 -0
  53. data/doc/{archive → release-notes}/RELEASE-2.4.1 +0 -0
  54. data/doc/{archive → release-notes}/RELEASE-2.4.2 +0 -0
  55. data/doc/{archive → release-notes}/RELEASE-2.4.3 +0 -0
  56. data/doc/{archive → release-notes}/RELEASE-2.4.4 +0 -0
  57. data/doc/{archive → release-notes}/RELEASE-2.4.5 +0 -0
  58. data/doc/{archive → release-notes}/RELEASE-2.5.0 +0 -0
  59. data/lib/core/facets/hash/dearray_values.rb +46 -0
  60. data/lib/core/facets/to_hash.rb +109 -74
  61. data/task/setup.rake +17 -9
  62. data/test/core/hash/test_dearray_values.rb +19 -0
  63. data/test/core/test_to_hash.rb +116 -24
  64. metadata +26 -21
data/CHANGES CHANGED
@@ -1,33 +1,133 @@
1
- == 2.5.1 / 2009-03-05
1
+ == 2.5.2 / 2009-04-07
2
2
 
3
- * Additions
3
+ * 9 Other Enhancements
4
4
 
5
- * added Hash#group_by_value (thanks to Erik Veenstra) (#131d6c81a5411fb21f005ae8d2051311b0e3e9c5)
6
- * added String#file (#952399f7d437f26aee3c4e9747a61e76b7e89735)
7
- * added to_h_auto (#d7d5b02a219f850bc4a3b396de67e63cf005df5c)
8
- * overhauled to_hash.rb, now has multiple methods (#5ba2fb2bef735af8afec1b27cf381787baad3a8f)
9
- * added Hash#new_with (Pit Capitan) (#2dca37952e9803e816efc62514e8027fc2e1bf12)
10
- * added module/extend.rb, now can take a block. (#cd6fd7dea22a4ca57712773331ca495d1fb46b86)
11
- * added hook.rb (#928f39446a01278e9587586fb6c684f3e1b1e36f)
5
+ * added Sandor's modifications to to_hash.rb (#c108f90bb5505259b1d4101800c21ef22f5cd8b6)
6
+ * update release files (#94f6037c4194bb8e39beff5bcda6537e841ff7dd)
7
+ * updated #to_h_multi documentation (#f6ea6402d3b4622921b1ec48e0ca78da369b70ef)
8
+ * moved Hash#dearray_values to own file (#5f2037f42fe6b3a215809e6ac5ed148b1342d817)
9
+ * created separate test for Hash#dearray_values (#078b7c80c76646af8399a72959d463f53be809cc)
10
+ * Fix exception reporting in a rake task
11
+ Signed-off-by: trans <transfire@gmail.com> (#c66c1b922122870333848d24cf66dfa290ca68ea)
12
+ * Cleanup rakefile: make sure that it loads without going through setup task each time
13
+ Signed-off-by: trans <transfire@gmail.com> (#3c916f5f0f9309fb3c62ff43de4e156dd6183aa5)
14
+ * Fix a failing test
15
+ Signed-off-by: trans <transfire@gmail.com> (#7735d6f3e604ff3418adacd6830d33ec04ae981c)
16
+ * touch up to paramix (#e6d951d36160ad96853b98ec4db63e2eefde1790)
17
+
18
+
19
+ == 2.5.1 / 2009-03-05
12
20
 
13
- * Enhancements
21
+ * 1 Minor Enhancements
14
22
 
15
23
  * corrected ostruct.rb to test for frozen state on updates (#1170dd9e1fdd552a98a01056547531ac6c9ee9f4)
16
- * split enumerable/collect into map_with_index and compact_map (#a917218ab39cc15fbba6137a9b27911317dc64f2)
24
+
25
+ * 46 Other Enhancements
26
+
27
+ * added stash.rb to more library (#ec3b05c2c6aee5848cb05b462ee5a03e97e9b577)
28
+ * rewrote duration class (as used in RichUnits) (#ec7928dd5b861150481f05788081c325f93967b8)
29
+ * old duration is in work/deprecated for now (#1681e7eef2f80c390e599ab24381e9cf6661f304)
30
+ * removed multiplers.rb from deprecation list (#2ee3fd5a501358789788e8aa8ca58f9fb58e3bcb)
31
+ * removed RichUnits namespace from Duration class (#1311970162359df7bce6f8fbaf1617f7c7c2861a)
32
+ * one last edit of the RELEASE file (#e081163979406af73f7fcf970ecf4998478a363e)
33
+ * separated hash update operator tests (#6ec91c0a981e082e52ae32eae02fec757dd6993a)
34
+ * fixed namespace issure with filter.rb (#32d82e4d94c0b890e58ca387753e9f39f1b34fdb)
35
+ * time/hence.rb, added extra precaution to activesupport clause (#0ef19ed2a2757cf792fe41d90ecb0b21a8cb81ba)
36
+ * added MANIFEST to .gitignore (#f5970062bfb1c7c2209f0d49a908912a334a6213)
37
+ * updated README (#b68ff4af2e860bf61c9f615254e54547ad69b5be)
38
+ * split enumerable/collect into map_with_index and comapct_map (#a917218ab39cc15fbba6137a9b27911317dc64f2)
39
+ * fixed source link in website (#ad7e8fa86e501af52c1674cc74a75d9f1f7e0469)
40
+ * Merge: ad7e8fa... a917218...
41
+ Merge branch 'master' of gitosis@rubyforge.org:facets (#6e245a4203f204b28d04ca8dcc7939af0d5d7a4f)
17
42
  * fixed String#left_align (#743d17d08f81ff1b4eb69d640a993865a8292335)
43
+ * updated AUTHORS (#b16235f98d628690bc70b7b9e7330b8c34f868db)
44
+ * added hook.rb (#928f39446a01278e9587586fb6c684f3e1b1e36f)
18
45
  * improved Array#to_h for 1.9 using flatten(1) (#a9e7f024b2a589c87b1313c4addc5d7e1f5df524)
19
46
  * Dictionary#replace can take regular Hash too (#69d6d8cc132564979e6af774bc252e4320f27d4c)
20
47
  * applied sander's patch to to_hash.rb (#af9283cf87dde154d11f1d6d2a5538c60686eae5)
48
+ * applied sandor's patch to test task (#e167e1ee7ef76f26a2564216b0e27ddaa268329c)
21
49
  * move test_to_hash.rb from more to core (#06d1fce988e2d3f6372fe68897ccb045450dac6d)
50
+ * added suggestion (#355efc3b8bec08e9fa2df7f5fa38350ffc77eaaf)
22
51
  * Doc'd that UnboundMethod#name returns Symbol in 1.9, but String in 1.8 (#88efec19f49fa048d936e93d07ab01b38b94d2c6)
23
52
  * fixed conflict between test_name.rb and test_arguments.rb (#5f33a45aff80f42f1644d46d9bd0746a2ae84b6b)
53
+ * added Hash#group_by_value (thanks to Erik Veenstra) (#131d6c81a5411fb21f005ae8d2051311b0e3e9c5)
24
54
  * fixed Enumreable#split when reciever is empty array (#11bb453a7e9cf98a8dc698e8a8a10cdb81f69050)
25
- * association.rb stores reference when using #new (#4ca00a54bab0850436e769931b3d39e52d1fc9e6)
55
+ * association.rb stores refernce when using #new (#4ca00a54bab0850436e769931b3d39e52d1fc9e6)
56
+ * improvements to website (#5bf7f37c1c72373426b56666952d312035bfe96d)
57
+ * added test for enumerable/split (#599f152f3a0651b0c5aa387f36844e572575066c)
26
58
  * fixed coruption of reciever by Hash#collate (thanks to Tilo Sloboda) (#de5fd8002d5c2452b5dd46051d02d27044506e9b)
27
- * changed Array#product to make it compatible to ruby 19, deleted block parameter (#28170c739f5c033d5172835fa50b81db83fc1e88)
59
+ * changed product to make it compatible to ruby 19, deleted block parameter (#28170c739f5c033d5172835fa50b81db83fc1e88)
28
60
  * ruby19 compatability: return symbols instead of strings (#b8fa8dddb9e4bcd5dedb9e9afcebff9f4cf93f43)
29
61
  * fixed: Array#to_h, h={} was not initialized (#67deaed1b1dff94ccde641917861ec3b1b5ba643)
30
62
  * fixed test of Module#conflict according ruby19 (#fa2229603f423925d10488bfa090a4c7fb138947)
63
+ * updated product.rb (#20022d2a286d374ea23567955db3e53610afda29)
64
+ * Merge: 20022d2... fa22296...
65
+ removed block from Array#product.rb (#2475e71433516c16778172c8b6724189d355acd5)
66
+ * added module/extend.rb, now can take a block. (#cd6fd7dea22a4ca57712773331ca495d1fb46b86)
67
+ * Merge: cd6fd7d... 7c70691...
68
+ Merge commit 'origin/master' (#a5a7976b2890988ee4b850f709c902dad3694b21)
31
69
  * fixed doc on Array#product (#7c70691940766f6f05924dbbb249aff19154e4cc)
70
+ * added Hash#new_with (Pit Capitan) (#2dca37952e9803e816efc62514e8027fc2e1bf12)
71
+ * overhauled to_hash.rb, now has multiple methods (#5ba2fb2bef735af8afec1b27cf381787baad3a8f)
72
+ * added tests for Array#to_h vs Array#to_h_* dispatch
73
+ Signed-off-by: trans <transfire@gmail.com> (#a301757b9394355cd473a5e31565053a61ef84cf)
74
+ * added to_h_auto and fixed return bug (#d7d5b02a219f850bc4a3b396de67e63cf005df5c)
75
+ * added String#file (#952399f7d437f26aee3c4e9747a61e76b7e89735)
32
76
  * fixed: Hash#dearray_singluar_values
77
+ added: tests for Hash#dearray_singluar_values and Hash#dearray_values
78
+ Signed-off-by: trans <transfire@gmail.com> (#938e5cf1d7a1dcecda96a8390b7e484cdcda7a9a)
79
+
80
+
81
+ == 2.5.0 / 2008-11-23
82
+
83
+ * 4 Major Enhancements
84
+
85
+ * memoize.rb, bug had cache working at class-level, fixed to work at instance-level (#f5c3b659591b85ff55d0a82ec65316126b01e210)
86
+ * finalized deprecation of buildable.rb, bytes.rb and times.rb (#e290ea855cceefd0033bb3b7fe2ff23fb6beb29a)
87
+ * Added Brian Candler's Enumerator::Filter (#1f69ed9924af80b71328eec3509f7ccc280435c6)
88
+ * deprecated uploadutils.rb & renamed cachedelegator to memoizer (#fce69653d3b40ad16738bbe366494a587b53cb28)
89
+
90
+ * 37 Other Enhancements
91
+
92
+ * switched to git as of 2.4.4 (#9677fbda269f205ff5ab07eabca70fe419b7b485)
93
+ * aliased Comparable#cap to at_most and separated bound methods into files (#576e36a3e709c1512477084ceab962cde10aafba)
94
+ * fixed outdent test and demo in instance_variables.rb (#d207eadbd9bc43936e63730a9d0a93e6c9c3c45b)
95
+ * deactivated reap test services temporarily (#0495409de664c53293b64d50316b8a1ad59b803c)
96
+ * updated AUTHORS and README (#d793ab0df2fbbe5b3947dadf2ab612a5f0b54253)
97
+ * add string/outdent.rb file (#a4c7cf513d4a37f8230392917f57eb48c4560c45)
98
+ * added lazyenum.rb to work/consider (#26ed9bd74574df80752f243610e77d5b2e19e278)
99
+ * deprecated annotations.rb --use Anise project instead (#ffd083e355ac069aacb7bd6a18d9ab3609f0aec8)
100
+ * updated all CREDIT: comments elminating any indent (#26e439aa7cd825443470071ad28fe3ae00d7041d)
101
+ * binding/caller.rb, fixed require for callstack.rb (#3c8c51271854a308be35118e69f97c85767fade7)
102
+ * fixed some credits (#46a2e5e0cd235b40b6c8dd7ac6f0c1a5d28b3bb3)
103
+ * minor touch up to a few tests (#c15d569c5ff44770291490a06ec280765f0b23ae)
104
+ * moved Hash#symolize_keys to core and removed tagiter.rb (#99a43a648411bb27a5473e2feb049476d2fe8158)
105
+ * renamed DictionaryMatcher to just Matcher (#7170ecfdfd650d7477974c28ed3e7aeeafbe37e8)
106
+ * improved docs for Hash#rekey (#6f8eb8ac265613ca25d1f91f17bb87eeeaa30f17)
107
+ * removed tests of deprecated libraries (#c40eb89ac84eb6968bf3ca5b63255361e401dc3d)
108
+ * removed more/chain.rb; it was expiremental (#21ee88ae808daf4e94c0f918776068f6b93ca00c)
109
+ * fixed missing require in string/tabto and minor doc adjustments (#033bee47b8e77180018fffc9cf937e05f0ef15b0)
110
+ * consoleutils.rb and ziputils.rb, added deprecation warning (#3393df26d085e43e5f23707e9a44744ad12c9a34)
111
+ * removed some old work material (#fe44485a97e582f9d7fb269ed5215358f16bc870)
112
+ * uploadutils.rb, added deprecation warning (#85b8796a2391ab1b3f4b7c24abea51f1d75407f0)
113
+ * added test for filter.rb (#d1b683f891f9b6a536fdf8ee39ff28a1867d1171)
114
+ * Fixed some bugs with Time#ago/Time#hence not changing years correctly when you changed months.
115
+ (For example, Time.utc(2008, 1, 1).ago(12, :months) incorrectly returned 2009-01-01 instead of 2007-01-01.)
116
+ Added a bunch of tests for Time#ago/Time#hence.
117
+ Changed Time#ago/Time#hence to still work if passed negative number. (#6713f9ed3ac045ce7ab26f336b375167f09fbed1)
118
+ * update authors (#805a1e7dd8be36063a7ad580279fd12525a48ae2)
119
+ * Merge: 805a1e7... 6713f9e...
120
+ Merge branch 'master' of gitosis@rubyforge.org:facets (#b6bd3fbeb09aa7c84d503b529ffaf14a2a57188f)
121
+ * adjusted docs for eventhook.rb (#cddd022ba77c910aa6c8c3f4f258f6fbb429f67f)
122
+ * collected notes into doc/guide/notes.rd (#063c61e560c44528b7d194d1dea68a0d1a58dbc0)
123
+ * removed lingering .svn directories (#e22bb8ce1154a6a6c66ee4358a15fc29a62b6c06)
124
+ * deprecated eventhook.rb (#95cab67716ed5132409c8dae0848abbf83036e0e)
125
+ * updated reap service configs (#af975097d1da4029281b761b1d366e1df9616f5a)
126
+ * moved reap service configs (#3f76241ad016088d46fdeee181a07563a6bab2c8)
127
+ * added work/suggestions.txt (#e944f9fbeea538f6fd5492b89c8aadc6ed35cbd2)
128
+ * added sparse_array.rb (was old harray.rb) (#52e277a14a4cf377e2c20a26597ffe62bd35e39d)
129
+ * pathlist, minor spacing adjusment (#f033d39210ccb32bc00d7f321f5d7a9fa2b79ddd)
130
+ * update RELEASE (#2b8754c9e168aac7cdff25be7c846398f3c4a81f)
131
+ * closing in on 2.5 release (#33e0c9f4cb52d418102886e45a2f0ab4ac377241)
132
+ * remove empty config file (#5ab56ddb15bfc03f1495c069ea50e90aa31153b4)
33
133
 
data/MANIFEST CHANGED
@@ -13,9 +13,10 @@ VERSION
13
13
  COPYING
14
14
  doc/guide
15
15
  doc/rdoc
16
+ doc/changelogs
17
+ doc/release-notes
16
18
  doc/README.lore
17
19
  doc/README.core
18
- doc/archive
19
20
  doc/log
20
21
  doc/README.more
21
22
  doc/guide/notes.rd
@@ -292,6 +293,7 @@ doc/rdoc/core/files/lib/core/facets/hash/inverse_rb.html
292
293
  doc/rdoc/core/files/lib/core/facets/hash/op_and_rb.html
293
294
  doc/rdoc/core/files/lib/core/facets/hash/group_by_value_rb.html
294
295
  doc/rdoc/core/files/lib/core/facets/hash/symbolize_keys_rb.html
296
+ doc/rdoc/core/files/lib/core/facets/hash/dearray_values_rb.html
295
297
  doc/rdoc/core/files/lib/core/facets/hash/diff_rb.html
296
298
  doc/rdoc/core/files/lib/core/facets/hash/op_mul_rb.html
297
299
  doc/rdoc/core/files/lib/core/facets/hash/replace_each_rb.html
@@ -798,24 +800,24 @@ doc/rdoc/more/files/lib/more/facets/net/smtp_tls_rb.html
798
800
  doc/rdoc/more/files/lib/more/facets/kernel/meta_rb.html
799
801
  doc/rdoc/more/files/lib/more/facets/string/words_rb.html
800
802
  doc/rdoc/more/files/lib/more/facets/string/mask_rb.html
801
- doc/archive/RELEASE-2.4.3
802
- doc/archive/RELEASE-2.2.0
803
- doc/archive/RELEASE-2.4.2
804
- doc/archive/CHANGELOG-2.4.5
805
- doc/archive/RELEASE-2.4.0
806
- doc/archive/RELEASE-2.3.0
807
- doc/archive/CHANGELOG-1.8.54
808
- doc/archive/RELEASE-2.0.5
809
- doc/archive/RELEASE-2.1.2
810
- doc/archive/CHANGELOG-0.10.30
811
- doc/archive/RELEASE-2.1.0
812
- doc/archive/RELEASE-2.2.1
813
- doc/archive/RELEASE-2.4.4
814
- doc/archive/RELEASE-2.5.0
815
- doc/archive/RELEASE-2.1.1
816
- doc/archive/RELEASE-2.1.3
817
- doc/archive/RELEASE-2.4.5
818
- doc/archive/RELEASE-2.4.1
803
+ doc/changelogs/CHANGELOG-2.4.5
804
+ doc/changelogs/CHANGELOG-1.8.54
805
+ doc/changelogs/CHANGELOG-0.10.30
806
+ doc/release-notes/RELEASE-2.4.3
807
+ doc/release-notes/RELEASE-2.2.0
808
+ doc/release-notes/RELEASE-2.4.2
809
+ doc/release-notes/RELEASE-2.4.0
810
+ doc/release-notes/RELEASE-2.3.0
811
+ doc/release-notes/RELEASE-2.0.5
812
+ doc/release-notes/RELEASE-2.1.2
813
+ doc/release-notes/RELEASE-2.1.0
814
+ doc/release-notes/RELEASE-2.2.1
815
+ doc/release-notes/RELEASE-2.4.4
816
+ doc/release-notes/RELEASE-2.5.0
817
+ doc/release-notes/RELEASE-2.1.1
818
+ doc/release-notes/RELEASE-2.1.3
819
+ doc/release-notes/RELEASE-2.4.5
820
+ doc/release-notes/RELEASE-2.4.1
819
821
  doc/log/basic_stats
820
822
  doc/log/changelog.html
821
823
  doc/log/changelog.txt
@@ -968,6 +970,7 @@ lib/core/facets/file/rewrite.rb
968
970
  lib/core/facets/file/read.rb
969
971
  lib/core/facets/hash/new_with.rb
970
972
  lib/core/facets/hash/zipnew.rb
973
+ lib/core/facets/hash/dearray_values.rb
971
974
  lib/core/facets/hash/update_values.rb
972
975
  lib/core/facets/hash/alias.rb
973
976
  lib/core/facets/hash/update.rb
@@ -1442,6 +1445,7 @@ test/core/hash/test_update_each.rb
1442
1445
  test/core/hash/test_update_values.rb
1443
1446
  test/core/hash/test_autonew.rb
1444
1447
  test/core/hash/test_insert.rb
1448
+ test/core/hash/test_dearray_values.rb
1445
1449
  test/core/hash/test_traverse.rb
1446
1450
  test/core/hash/test_zipnew.rb
1447
1451
  test/core/hash/test_mash.rb
data/RELEASE CHANGED
@@ -1,4 +1,4 @@
1
- Facets 2.5.1 fixes a few bugs, makes some small but nice additions
1
+ Facets 2.5.2 fixes a few bugs, makes some small but nice additions
2
2
  and improves 1.9 compatibility.
3
3
 
4
4
  The most important addition to make note of is Object#extend, which has
@@ -18,32 +18,32 @@ Enjoy!
18
18
 
19
19
  * 7 Additions
20
20
 
21
- * added Hash#group_by_value (thanks to Erik Veenstra) (#131d6c81a5411fb21f005ae8d2051311b0e3e9c5)
22
- * added String#file (#952399f7d437f26aee3c4e9747a61e76b7e89735)
23
- * added Hash#new_with (Pit Capitan) (#2dca37952e9803e816efc62514e8027fc2e1bf12)
24
- * added module/extend.rb, now can take a block. (#cd6fd7dea22a4ca57712773331ca495d1fb46b86)
25
- * added hook.rb (#928f39446a01278e9587586fb6c684f3e1b1e36f)
26
- * added to_h_auto (#d7d5b02a219f850bc4a3b396de67e63cf005df5c)
27
- * overhauled to_hash.rb, now has multiple methods (#5ba2fb2bef735af8afec1b27cf381787baad3a8f)
21
+ * added Hash#group_by_value (thanks to Erik Veenstra)
22
+ * added String#file
23
+ * added Hash#new_with (Pit Capitan)
24
+ * added module/extend.rb, now can take a block.
25
+ * added hook.rb
26
+ * added to_h_auto
27
+ * overhauled to_hash.rb, now has multiple methods
28
28
 
29
29
  * 10 Bug Fixes
30
30
 
31
- * corrected ostruct.rb to test for frozen state on updates (#1170dd9e1fdd552a98a01056547531ac6c9ee9f4)
32
- * fixed String#left_align (#743d17d08f81ff1b4eb69d640a993865a8292335)
33
- * fixed conflict between test_name.rb and test_arguments.rb (#5f33a45aff80f42f1644d46d9bd0746a2ae84b6b)
34
- * fixed Enumreable#split when reciever is empty array (#11bb453a7e9cf98a8dc698e8a8a10cdb81f69050)
35
- * fixed coruption of reciever by Hash#collate (thanks to Tilo Sloboda) (#de5fd8002d5c2452b5dd46051d02d27044506e9b)
36
- * fixed Array#to_h, h={} was not initialized (#67deaed1b1dff94ccde641917861ec3b1b5ba643)
37
- * fixed test of Module#conflict according ruby19 (#fa2229603f423925d10488bfa090a4c7fb138947)
31
+ * corrected ostruct.rb to test for frozen state on updates
32
+ * fixed String#left_align
33
+ * fixed conflict between test_name.rb and test_arguments.rb
34
+ * fixed Enumreable#split when reciever is empty array
35
+ * fixed coruption of reciever by Hash#collate (thanks to Tilo Sloboda)
36
+ * fixed Array#to_h, h={} was not initialized
37
+ * fixed test of Module#conflict according ruby19
38
38
  * fixed Hash#dearray_singluar_values
39
- * association.rb stores reference when using #new (#4ca00a54bab0850436e769931b3d39e52d1fc9e6)
40
- * changed Array#product to make it compatible to ruby 19, deleted block parameter (#28170c739f5c033d5172835fa50b81db83fc1e88)
39
+ * association.rb stores reference when using #new
40
+ * changed Array#product to make it compatible to ruby 19, deleted block parameter
41
41
 
42
42
  * 5 Minor Enhancements
43
43
 
44
- * split enumerable/collect into map_with_index and compact_map (#a917218ab39cc15fbba6137a9b27911317dc64f2)
45
- * improved Array#to_h for 1.9 using flatten(1) (#a9e7f024b2a589c87b1313c4addc5d7e1f5df524)
46
- * Dictionary#replace can take regular Hash too (#69d6d8cc132564979e6af774bc252e4320f27d4c)
47
- * move test_to_hash.rb from more to core (#06d1fce988e2d3f6372fe68897ccb045450dac6d)
48
- * Doc'd that UnboundMethod#name returns Symbol in 1.9, but String in 1.8 (#88efec19f49fa048d936e93d07ab01b38b94d2c6)
44
+ * split enumerable/collect into map_with_index and compact_map
45
+ * improved Array#to_h for 1.9 using flatten(1)
46
+ * Dictionary#replace can take regular Hash too
47
+ * move test_to_hash.rb from more to core
48
+ * Doc'd that UnboundMethod#name returns Symbol in 1.9, but String in 1.8
49
49
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- facets 2.5.1 stable (2009-03-05)
1
+ facets 2.5.2 stable (2009-04-07)
@@ -17,9 +17,9 @@
17
17
  <table class="counts" border="1">
18
18
  <tr><th colspan="9"><h2>Counts</h2></th></tr>
19
19
  <tr><th>TYPE</th><th>Total</th><th>Code</th><th>-%-</th><th>Docs</th><th>-%-</th><th>Blank</th><th>-%-</th><th>Files</th></tr>
20
- <tr><th>Source</th><td>31435</td><td>13060</td><td>41%</td><td>13208</td><td>42%</td><td>4824</td><td>15%</td><td>466</td></tr>
21
- <tr><th>Test</th><td>9178</td><td>6562</td><td>20%</td><td>551</td><td>1%</td><td>2065</td><td>6%</td><td>274</td></tr>
22
- <tr><th>Total</th><td>40613</td><td>19622</td><td>48%</td><td>13759</td><td>33%</td><td>6889</td><td>16%</td><td>740</td></tr>
20
+ <tr><th>Source</th><td>31516</td><td>13107</td><td>41%</td><td>13224</td><td>41%</td><td>4842</td><td>15%</td><td>467</td></tr>
21
+ <tr><th>Test</th><td>9289</td><td>6655</td><td>21%</td><td>551</td><td>1%</td><td>2083</td><td>6%</td><td>275</td></tr>
22
+ <tr><th>Total</th><td>40805</td><td>19762</td><td>48%</td><td>13775</td><td>33%</td><td>6925</td><td>16%</td><td>742</td></tr>
23
23
  </table>
24
24
  <br/>
25
25
  <table class="ratios" border="1">
@@ -32,7 +32,7 @@
32
32
  <tr><th>Total</th><td> 2.4</td><td> 2.4</td><td> 6.5</td><td> 3.4</td><td> 1.0</td></tr>
33
33
  </table>
34
34
  <br/>
35
- <div class="date">Thu Mar 05 17:44:36 -0500 2009</div>
35
+ <div class="date">Tue Apr 07 10:54:16 -0400 2009</div>
36
36
  </div>
37
37
  </body>
38
38
  </html>
@@ -102,35 +102,35 @@ Object
102
102
 
103
103
 
104
104
  <div class="sectiontitle">Methods</div>
105
- <span style="padding-right: 5px;"><a href="#M000083">**</a></span>
106
- <span style="padding-right: 5px;"><a href="#M000098">combination</a></span>
107
- <span style="padding-right: 5px;"><a href="#M000090">conjoin</a></span>
108
- <span style="padding-right: 5px;"><a href="#M000087">delete_unless</a></span>
109
- <span style="padding-right: 5px;"><a href="#M000099">delete_values</a></span>
110
- <span style="padding-right: 5px;"><a href="#M000100">delete_values_at</a></span>
111
- <span style="padding-right: 5px;"><a href="#M000096">index</a></span>
112
- <span style="padding-right: 5px;"><a href="#M000091">merge!</a></span>
113
- <span style="padding-right: 5px;"><a href="#M000086">not_empty?</a></span>
114
- <span style="padding-right: 5px;"><a href="#M000097">only</a></span>
115
- <span style="padding-right: 5px;"><a href="#M000102">pad</a></span>
116
- <span style="padding-right: 5px;"><a href="#M000103">pad!</a></span>
117
- <span style="padding-right: 5px;"><a href="#M000094">permutation</a></span>
118
- <span style="padding-right: 5px;"><a href="#M000082">product</a></span>
119
- <span style="padding-right: 5px;"><a href="#M000084">recursively</a></span>
120
- <span style="padding-right: 5px;"><a href="#M000085">recursively!</a></span>
121
- <span style="padding-right: 5px;"><a href="#M000088">rotate</a></span>
122
- <span style="padding-right: 5px;"><a href="#M000089">rotate!</a></span>
123
- <span style="padding-right: 5px;"><a href="#M000095">select!</a></span>
124
- <span style="padding-right: 5px;"><a href="#M000101">splice</a></span>
125
- <span style="padding-right: 5px;"><a href="#M000081">to_b</a></span>
126
- <span style="padding-right: 5px;"><a href="#M000075">to_h</a></span>
127
- <span style="padding-right: 5px;"><a href="#M000079">to_h_assoc</a></span>
128
- <span style="padding-right: 5px;"><a href="#M000076">to_h_auto</a></span>
129
- <span style="padding-right: 5px;"><a href="#M000078">to_h_flat</a></span>
130
- <span style="padding-right: 5px;"><a href="#M000080">to_h_multi</a></span>
131
- <span style="padding-right: 5px;"><a href="#M000077">to_h_splat</a></span>
132
- <span style="padding-right: 5px;"><a href="#M000092">traverse</a></span>
133
- <span style="padding-right: 5px;"><a href="#M000093">traverse!</a></span>
105
+ <span style="padding-right: 5px;"><a href="#M000144">**</a></span>
106
+ <span style="padding-right: 5px;"><a href="#M000159">combination</a></span>
107
+ <span style="padding-right: 5px;"><a href="#M000151">conjoin</a></span>
108
+ <span style="padding-right: 5px;"><a href="#M000148">delete_unless</a></span>
109
+ <span style="padding-right: 5px;"><a href="#M000160">delete_values</a></span>
110
+ <span style="padding-right: 5px;"><a href="#M000161">delete_values_at</a></span>
111
+ <span style="padding-right: 5px;"><a href="#M000157">index</a></span>
112
+ <span style="padding-right: 5px;"><a href="#M000152">merge!</a></span>
113
+ <span style="padding-right: 5px;"><a href="#M000147">not_empty?</a></span>
114
+ <span style="padding-right: 5px;"><a href="#M000158">only</a></span>
115
+ <span style="padding-right: 5px;"><a href="#M000163">pad</a></span>
116
+ <span style="padding-right: 5px;"><a href="#M000164">pad!</a></span>
117
+ <span style="padding-right: 5px;"><a href="#M000155">permutation</a></span>
118
+ <span style="padding-right: 5px;"><a href="#M000143">product</a></span>
119
+ <span style="padding-right: 5px;"><a href="#M000145">recursively</a></span>
120
+ <span style="padding-right: 5px;"><a href="#M000146">recursively!</a></span>
121
+ <span style="padding-right: 5px;"><a href="#M000149">rotate</a></span>
122
+ <span style="padding-right: 5px;"><a href="#M000150">rotate!</a></span>
123
+ <span style="padding-right: 5px;"><a href="#M000156">select!</a></span>
124
+ <span style="padding-right: 5px;"><a href="#M000162">splice</a></span>
125
+ <span style="padding-right: 5px;"><a href="#M000142">to_b</a></span>
126
+ <span style="padding-right: 5px;"><a href="#M000136">to_h</a></span>
127
+ <span style="padding-right: 5px;"><a href="#M000140">to_h_assoc</a></span>
128
+ <span style="padding-right: 5px;"><a href="#M000137">to_h_auto</a></span>
129
+ <span style="padding-right: 5px;"><a href="#M000139">to_h_flat</a></span>
130
+ <span style="padding-right: 5px;"><a href="#M000141">to_h_multi</a></span>
131
+ <span style="padding-right: 5px;"><a href="#M000138">to_h_splat</a></span>
132
+ <span style="padding-right: 5px;"><a href="#M000153">traverse</a></span>
133
+ <span style="padding-right: 5px;"><a href="#M000154">traverse!</a></span>
134
134
 
135
135
  <div class="sectiontitle">Included Modules</div>
136
136
  <ul>
@@ -145,22 +145,22 @@ Object
145
145
  <div class="sectiontitle">Public Instance methods</div>
146
146
  <div class="method">
147
147
  <div class="title">
148
- <a name="M000083"></a><b>**</b>(*enums)
148
+ <a name="M000144"></a><b>**</b>(*enums)
149
149
  </div>
150
150
  <div class="description">
151
151
  <p>
152
- Alias for <a href="Array.html#M000082">product</a>
152
+ Alias for <a href="Array.html#M000143">product</a>
153
153
  </p>
154
154
  </div>
155
155
  </div>
156
156
  <div class="method">
157
157
  <div class="title">
158
- <a name="M000098"></a><b>combination</b>(k=2) {|s.values_at(*idx)| ...}
158
+ <a name="M000159"></a><b>combination</b>(k=2) {|s.values_at(*idx)| ...}
159
159
  </div>
160
160
  <div class="description">
161
161
  <p>
162
162
  Yields the block to each unique <a
163
- href="Array.html#M000098">combination</a> of <em>n</em> elements.
163
+ href="Array.html#M000159">combination</a> of <em>n</em> elements.
164
164
  </p>
165
165
  <pre>
166
166
  a = %w|a b c d|
@@ -180,8 +180,8 @@ CREDIT: Florian Gross
180
180
  </p>
181
181
  </div>
182
182
  <div class="sourcecode">
183
- <p class="source-link">[ <a href="javascript:toggleSource('M000098_source')" id="l_M000098_source">+</a> ]</p>
184
- <div id="M000098_source" class="dyn-source">
183
+ <p class="source-link">[ <a href="javascript:toggleSource('M000159_source')" id="l_M000159_source">+</a> ]</p>
184
+ <div id="M000159_source" class="dyn-source">
185
185
  <pre>
186
186
  <span class="ruby-comment cmt"># File lib/core/facets/array/combination.rb, line 21</span>
187
187
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">combination</span>(<span class="ruby-identifier">k</span>=<span class="ruby-value">2</span>)
@@ -208,7 +208,7 @@ CREDIT: Florian Gross
208
208
  </div>
209
209
  <div class="method">
210
210
  <div class="title">
211
- <a name="M000090"></a><b>conjoin</b>(*args) {|i, *slice(i,2)| ...}
211
+ <a name="M000151"></a><b>conjoin</b>(*args) {|i, *slice(i,2)| ...}
212
212
  </div>
213
213
  <div class="description">
214
214
  <p>
@@ -244,8 +244,8 @@ CREDIT: Trans
244
244
  </p>
245
245
  </div>
246
246
  <div class="sourcecode">
247
- <p class="source-link">[ <a href="javascript:toggleSource('M000090_source')" id="l_M000090_source">+</a> ]</p>
248
- <div id="M000090_source" class="dyn-source">
247
+ <p class="source-link">[ <a href="javascript:toggleSource('M000151_source')" id="l_M000151_source">+</a> ]</p>
248
+ <div id="M000151_source" class="dyn-source">
249
249
  <pre>
250
250
  <span class="ruby-comment cmt"># File lib/core/facets/array/conjoin.rb, line 30</span>
251
251
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">conjoin</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
@@ -280,7 +280,7 @@ CREDIT: Trans
280
280
  </div>
281
281
  <div class="method">
282
282
  <div class="title">
283
- <a name="M000087"></a><b>delete_unless</b>(&amp;block)
283
+ <a name="M000148"></a><b>delete_unless</b>(&amp;block)
284
284
  </div>
285
285
  <div class="description">
286
286
  <p>
@@ -295,8 +295,8 @@ CREDIT: Daniel Schierbeck
295
295
  </p>
296
296
  </div>
297
297
  <div class="sourcecode">
298
- <p class="source-link">[ <a href="javascript:toggleSource('M000087_source')" id="l_M000087_source">+</a> ]</p>
299
- <div id="M000087_source" class="dyn-source">
298
+ <p class="source-link">[ <a href="javascript:toggleSource('M000148_source')" id="l_M000148_source">+</a> ]</p>
299
+ <div id="M000148_source" class="dyn-source">
300
300
  <pre>
301
301
  <span class="ruby-comment cmt"># File lib/core/facets/array/delete_unless.rb, line 10</span>
302
302
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete_unless</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
@@ -308,7 +308,7 @@ CREDIT: Daniel Schierbeck
308
308
  </div>
309
309
  <div class="method">
310
310
  <div class="title">
311
- <a name="M000099"></a><b>delete_values</b>(*values)
311
+ <a name="M000160"></a><b>delete_values</b>(*values)
312
312
  </div>
313
313
  <div class="description">
314
314
  <p>
@@ -324,8 +324,8 @@ CREDIT: Trans
324
324
  </p>
325
325
  </div>
326
326
  <div class="sourcecode">
327
- <p class="source-link">[ <a href="javascript:toggleSource('M000099_source')" id="l_M000099_source">+</a> ]</p>
328
- <div id="M000099_source" class="dyn-source">
327
+ <p class="source-link">[ <a href="javascript:toggleSource('M000160_source')" id="l_M000160_source">+</a> ]</p>
328
+ <div id="M000160_source" class="dyn-source">
329
329
  <pre>
330
330
  <span class="ruby-comment cmt"># File lib/core/facets/array/delete_values.rb, line 11</span>
331
331
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete_values</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">values</span>)
@@ -339,12 +339,12 @@ CREDIT: Trans
339
339
  </div>
340
340
  <div class="method">
341
341
  <div class="title">
342
- <a name="M000100"></a><b>delete_values_at</b>(*selectors)
342
+ <a name="M000161"></a><b>delete_values_at</b>(*selectors)
343
343
  </div>
344
344
  <div class="description">
345
345
  <p>
346
346
  Delete multiple values from array given indexes or <a
347
- href="Array.html#M000096">index</a> range.
347
+ href="Array.html#M000157">index</a> range.
348
348
  </p>
349
349
  <pre>
350
350
  a = [1,2,3,4]
@@ -362,8 +362,8 @@ CREDIT: Trans
362
362
  </p>
363
363
  </div>
364
364
  <div class="sourcecode">
365
- <p class="source-link">[ <a href="javascript:toggleSource('M000100_source')" id="l_M000100_source">+</a> ]</p>
366
- <div id="M000100_source" class="dyn-source">
365
+ <p class="source-link">[ <a href="javascript:toggleSource('M000161_source')" id="l_M000161_source">+</a> ]</p>
366
+ <div id="M000161_source" class="dyn-source">
367
367
  <pre>
368
368
  <span class="ruby-comment cmt"># File lib/core/facets/array/delete_values.rb, line 32</span>
369
369
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete_values_at</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">selectors</span>)
@@ -388,19 +388,19 @@ CREDIT: Trans
388
388
  </div>
389
389
  <div class="method">
390
390
  <div class="title">
391
- <a name="M000096"></a><b>index</b>(obj=nil, &amp;block)
391
+ <a name="M000157"></a><b>index</b>(obj=nil, &amp;block)
392
392
  </div>
393
393
  <div class="description">
394
394
  <p>
395
- Allows <a href="Array.html#M000096">index</a> to accept a block.
395
+ Allows <a href="Array.html#M000157">index</a> to accept a block.
396
396
  </p>
397
397
  <p>
398
398
  OVERRIDE! This is one of the bery few core overrides in Facets.
399
399
  </p>
400
400
  </div>
401
401
  <div class="sourcecode">
402
- <p class="source-link">[ <a href="javascript:toggleSource('M000096_source')" id="l_M000096_source">+</a> ]</p>
403
- <div id="M000096_source" class="dyn-source">
402
+ <p class="source-link">[ <a href="javascript:toggleSource('M000157_source')" id="l_M000157_source">+</a> ]</p>
403
+ <div id="M000157_source" class="dyn-source">
404
404
  <pre>
405
405
  <span class="ruby-comment cmt"># File lib/core/facets/array/index.rb, line 12</span>
406
406
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">index</span>(<span class="ruby-identifier">obj</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
@@ -416,7 +416,7 @@ OVERRIDE! This is one of the bery few core overrides in Facets.
416
416
  </div>
417
417
  <div class="method">
418
418
  <div class="title">
419
- <a name="M000091"></a><b>merge!</b>( other )
419
+ <a name="M000152"></a><b>merge!</b>( other )
420
420
  </div>
421
421
  <div class="description">
422
422
  <p>
@@ -432,8 +432,8 @@ CREDIT: Trans
432
432
  </p>
433
433
  </div>
434
434
  <div class="sourcecode">
435
- <p class="source-link">[ <a href="javascript:toggleSource('M000091_source')" id="l_M000091_source">+</a> ]</p>
436
- <div id="M000091_source" class="dyn-source">
435
+ <p class="source-link">[ <a href="javascript:toggleSource('M000152_source')" id="l_M000152_source">+</a> ]</p>
436
+ <div id="M000152_source" class="dyn-source">
437
437
  <pre>
438
438
  <span class="ruby-comment cmt"># File lib/core/facets/array/merge.rb, line 11</span>
439
439
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">merge!</span>( <span class="ruby-identifier">other</span> )
@@ -445,7 +445,7 @@ CREDIT: Trans
445
445
  </div>
446
446
  <div class="method">
447
447
  <div class="title">
448
- <a name="M000086"></a><b>not_empty?</b>()
448
+ <a name="M000147"></a><b>not_empty?</b>()
449
449
  </div>
450
450
  <div class="description">
451
451
  <p>
@@ -457,8 +457,8 @@ Not empty?
457
457
  </pre>
458
458
  </div>
459
459
  <div class="sourcecode">
460
- <p class="source-link">[ <a href="javascript:toggleSource('M000086_source')" id="l_M000086_source">+</a> ]</p>
461
- <div id="M000086_source" class="dyn-source">
460
+ <p class="source-link">[ <a href="javascript:toggleSource('M000147_source')" id="l_M000147_source">+</a> ]</p>
461
+ <div id="M000147_source" class="dyn-source">
462
462
  <pre>
463
463
  <span class="ruby-comment cmt"># File lib/core/facets/array/not_empty.rb, line 8</span>
464
464
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">not_empty?</span>
@@ -470,11 +470,11 @@ Not empty?
470
470
  </div>
471
471
  <div class="method">
472
472
  <div class="title">
473
- <a name="M000097"></a><b>only</b>()
473
+ <a name="M000158"></a><b>only</b>()
474
474
  </div>
475
475
  <div class="description">
476
476
  <p>
477
- Returns the <em><a href="Array.html#M000097">only</a></em> element in the
477
+ Returns the <em><a href="Array.html#M000158">only</a></em> element in the
478
478
  array. Raises an IndexError if the array&#8216;s size is not 1.
479
479
  </p>
480
480
  <pre>
@@ -487,8 +487,8 @@ CREDIT: Gavin Sinclair, Noah Gibbs
487
487
  </p>
488
488
  </div>
489
489
  <div class="sourcecode">
490
- <p class="source-link">[ <a href="javascript:toggleSource('M000097_source')" id="l_M000097_source">+</a> ]</p>
491
- <div id="M000097_source" class="dyn-source">
490
+ <p class="source-link">[ <a href="javascript:toggleSource('M000158_source')" id="l_M000158_source">+</a> ]</p>
491
+ <div id="M000158_source" class="dyn-source">
492
492
  <pre>
493
493
  <span class="ruby-comment cmt"># File lib/core/facets/array/only.rb, line 12</span>
494
494
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">only</span>
@@ -503,7 +503,7 @@ CREDIT: Gavin Sinclair, Noah Gibbs
503
503
  </div>
504
504
  <div class="method">
505
505
  <div class="title">
506
- <a name="M000102"></a><b>pad</b>(len, val=nil)
506
+ <a name="M000163"></a><b>pad</b>(len, val=nil)
507
507
  </div>
508
508
  <div class="description">
509
509
  <p>
@@ -524,8 +524,8 @@ CREDIT: Richard Laugesen
524
524
  </p>
525
525
  </div>
526
526
  <div class="sourcecode">
527
- <p class="source-link">[ <a href="javascript:toggleSource('M000102_source')" id="l_M000102_source">+</a> ]</p>
528
- <div id="M000102_source" class="dyn-source">
527
+ <p class="source-link">[ <a href="javascript:toggleSource('M000163_source')" id="l_M000163_source">+</a> ]</p>
528
+ <div id="M000163_source" class="dyn-source">
529
529
  <pre>
530
530
  <span class="ruby-comment cmt"># File lib/core/facets/array/pad.rb, line 14</span>
531
531
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pad</span>(<span class="ruby-identifier">len</span>, <span class="ruby-identifier">val</span>=<span class="ruby-keyword kw">nil</span>)
@@ -542,11 +542,11 @@ CREDIT: Richard Laugesen
542
542
  </div>
543
543
  <div class="method">
544
544
  <div class="title">
545
- <a name="M000103"></a><b>pad!</b>(len, val=nil)
545
+ <a name="M000164"></a><b>pad!</b>(len, val=nil)
546
546
  </div>
547
547
  <div class="description">
548
548
  <p>
549
- Like <a href="Array.html#M000102">pad</a> but changes the array in place.
549
+ Like <a href="Array.html#M000163">pad</a> but changes the array in place.
550
550
  </p>
551
551
  <pre>
552
552
  a = [0,1,2]
@@ -558,8 +558,8 @@ CREDIT: Richard Laugesen
558
558
  </p>
559
559
  </div>
560
560
  <div class="sourcecode">
561
- <p class="source-link">[ <a href="javascript:toggleSource('M000103_source')" id="l_M000103_source">+</a> ]</p>
562
- <div id="M000103_source" class="dyn-source">
561
+ <p class="source-link">[ <a href="javascript:toggleSource('M000164_source')" id="l_M000164_source">+</a> ]</p>
562
+ <div id="M000164_source" class="dyn-source">
563
563
  <pre>
564
564
  <span class="ruby-comment cmt"># File lib/core/facets/array/pad.rb, line 31</span>
565
565
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pad!</span>(<span class="ruby-identifier">len</span>, <span class="ruby-identifier">val</span>=<span class="ruby-keyword kw">nil</span>)
@@ -576,12 +576,12 @@ CREDIT: Richard Laugesen
576
576
  </div>
577
577
  <div class="method">
578
578
  <div class="title">
579
- <a name="M000094"></a><b>permutation</b>(n=size) {|[]| ...}
579
+ <a name="M000155"></a><b>permutation</b>(n=size) {|[]| ...}
580
580
  </div>
581
581
  <div class="description">
582
582
  <p>
583
583
  Permutation provids the possible orders of an enumerable. Each is indexed
584
- by a <a href="Array.html#M000094">permutation</a> number. The maximum
584
+ by a <a href="Array.html#M000155">permutation</a> number. The maximum
585
585
  number of arrangements is the factorial of the size of the array.
586
586
  </p>
587
587
  <p>
@@ -589,8 +589,8 @@ CREDIT: Shin-ichiro Hara
589
589
  </p>
590
590
  </div>
591
591
  <div class="sourcecode">
592
- <p class="source-link">[ <a href="javascript:toggleSource('M000094_source')" id="l_M000094_source">+</a> ]</p>
593
- <div id="M000094_source" class="dyn-source">
592
+ <p class="source-link">[ <a href="javascript:toggleSource('M000155_source')" id="l_M000155_source">+</a> ]</p>
593
+ <div id="M000155_source" class="dyn-source">
594
594
  <pre>
595
595
  <span class="ruby-comment cmt"># File lib/core/facets/array/permutation.rb, line 11</span>
596
596
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">permutation</span>(<span class="ruby-identifier">n</span>=<span class="ruby-identifier">size</span>)
@@ -614,11 +614,11 @@ CREDIT: Shin-ichiro Hara
614
614
  </div>
615
615
  <div class="method">
616
616
  <div class="title">
617
- <a name="M000082"></a><b>product</b>(*enums)
617
+ <a name="M000143"></a><b>product</b>(*enums)
618
618
  </div>
619
619
  <div class="description">
620
620
  <p>
621
- Provides the cartesian <a href="Array.html#M000082">product</a> of two or
621
+ Provides the cartesian <a href="Array.html#M000143">product</a> of two or
622
622
  more arrays.
623
623
  </p>
624
624
  <pre>
@@ -632,11 +632,11 @@ CREDIT: Thomas Hafner
632
632
  </div>
633
633
  <div class="aka">
634
634
  This method is also aliased as
635
- <a href="Array.html#M000083">**</a>
635
+ <a href="Array.html#M000144">**</a>
636
636
  </div>
637
637
  <div class="sourcecode">
638
- <p class="source-link">[ <a href="javascript:toggleSource('M000082_source')" id="l_M000082_source">+</a> ]</p>
639
- <div id="M000082_source" class="dyn-source">
638
+ <p class="source-link">[ <a href="javascript:toggleSource('M000143_source')" id="l_M000143_source">+</a> ]</p>
639
+ <div id="M000143_source" class="dyn-source">
640
640
  <pre>
641
641
  <span class="ruby-comment cmt"># File lib/core/facets/array/product.rb, line 13</span>
642
642
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">product</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">enums</span>)
@@ -659,11 +659,11 @@ CREDIT: Thomas Hafner
659
659
  </div>
660
660
  <div class="method">
661
661
  <div class="title">
662
- <a name="M000084"></a><b>recursively</b>() {|a| ...}
662
+ <a name="M000145"></a><b>recursively</b>() {|a| ...}
663
663
  </div>
664
664
  <div class="description">
665
665
  <p>
666
- Apply a block to hash, and <a href="Array.html#M000084">recursively</a>
666
+ Apply a block to hash, and <a href="Array.html#M000145">recursively</a>
667
667
  apply that block to each subhash.
668
668
  </p>
669
669
  <pre>
@@ -676,8 +676,8 @@ TODO: Can this be generalized in Enumerbale?
676
676
  </p>
677
677
  </div>
678
678
  <div class="sourcecode">
679
- <p class="source-link">[ <a href="javascript:toggleSource('M000084_source')" id="l_M000084_source">+</a> ]</p>
680
- <div id="M000084_source" class="dyn-source">
679
+ <p class="source-link">[ <a href="javascript:toggleSource('M000145_source')" id="l_M000145_source">+</a> ]</p>
680
+ <div id="M000145_source" class="dyn-source">
681
681
  <pre>
682
682
  <span class="ruby-comment cmt"># File lib/core/facets/array/recursively.rb, line 12</span>
683
683
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recursively</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
@@ -697,16 +697,16 @@ TODO: Can this be generalized in Enumerbale?
697
697
  </div>
698
698
  <div class="method">
699
699
  <div class="title">
700
- <a name="M000085"></a><b>recursively!</b>(&amp;block)
700
+ <a name="M000146"></a><b>recursively!</b>(&amp;block)
701
701
  </div>
702
702
  <div class="description">
703
703
  <p>
704
- In place form of <a href="Array.html#M000084">recursively</a>.
704
+ In place form of <a href="Array.html#M000145">recursively</a>.
705
705
  </p>
706
706
  </div>
707
707
  <div class="sourcecode">
708
- <p class="source-link">[ <a href="javascript:toggleSource('M000085_source')" id="l_M000085_source">+</a> ]</p>
709
- <div id="M000085_source" class="dyn-source">
708
+ <p class="source-link">[ <a href="javascript:toggleSource('M000146_source')" id="l_M000146_source">+</a> ]</p>
709
+ <div id="M000146_source" class="dyn-source">
710
710
  <pre>
711
711
  <span class="ruby-comment cmt"># File lib/core/facets/array/recursively.rb, line 26</span>
712
712
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recursively!</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
@@ -718,7 +718,7 @@ In place form of <a href="Array.html#M000084">recursively</a>.
718
718
  </div>
719
719
  <div class="method">
720
720
  <div class="title">
721
- <a name="M000088"></a><b>rotate</b>(n=1)
721
+ <a name="M000149"></a><b>rotate</b>(n=1)
722
722
  </div>
723
723
  <div class="description">
724
724
  <p>
@@ -741,8 +741,8 @@ CREDIT: Florian Gross, Thomas Sawyer
741
741
  </p>
742
742
  </div>
743
743
  <div class="sourcecode">
744
- <p class="source-link">[ <a href="javascript:toggleSource('M000088_source')" id="l_M000088_source">+</a> ]</p>
745
- <div id="M000088_source" class="dyn-source">
744
+ <p class="source-link">[ <a href="javascript:toggleSource('M000149_source')" id="l_M000149_source">+</a> ]</p>
745
+ <div id="M000149_source" class="dyn-source">
746
746
  <pre>
747
747
  <span class="ruby-comment cmt"># File lib/core/facets/array/rotate.rb, line 16</span>
748
748
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rotate</span>(<span class="ruby-identifier">n</span>=<span class="ruby-value">1</span>)
@@ -754,11 +754,11 @@ CREDIT: Florian Gross, Thomas Sawyer
754
754
  </div>
755
755
  <div class="method">
756
756
  <div class="title">
757
- <a name="M000089"></a><b>rotate!</b>(n=1)
757
+ <a name="M000150"></a><b>rotate!</b>(n=1)
758
758
  </div>
759
759
  <div class="description">
760
760
  <p>
761
- Same as <a href="Array.html#M000088">rotate</a>, but acts in place.
761
+ Same as <a href="Array.html#M000149">rotate</a>, but acts in place.
762
762
  </p>
763
763
  <pre>
764
764
  a = [1,2,3]
@@ -770,8 +770,8 @@ CREDIT: Florian Gross, Thomas Sawyer
770
770
  </p>
771
771
  </div>
772
772
  <div class="sourcecode">
773
- <p class="source-link">[ <a href="javascript:toggleSource('M000089_source')" id="l_M000089_source">+</a> ]</p>
774
- <div id="M000089_source" class="dyn-source">
773
+ <p class="source-link">[ <a href="javascript:toggleSource('M000150_source')" id="l_M000150_source">+</a> ]</p>
774
+ <div id="M000150_source" class="dyn-source">
775
775
  <pre>
776
776
  <span class="ruby-comment cmt"># File lib/core/facets/array/rotate.rb, line 28</span>
777
777
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rotate!</span>(<span class="ruby-identifier">n</span>=<span class="ruby-value">1</span>)
@@ -790,7 +790,7 @@ CREDIT: Florian Gross, Thomas Sawyer
790
790
  </div>
791
791
  <div class="method">
792
792
  <div class="title">
793
- <a name="M000095"></a><b>select!</b>( {|| ...}
793
+ <a name="M000156"></a><b>select!</b>( {|| ...}
794
794
  </div>
795
795
  <div class="description">
796
796
  <p>
@@ -806,8 +806,8 @@ CREDIT: Gavin Sinclair
806
806
  </p>
807
807
  </div>
808
808
  <div class="sourcecode">
809
- <p class="source-link">[ <a href="javascript:toggleSource('M000095_source')" id="l_M000095_source">+</a> ]</p>
810
- <div id="M000095_source" class="dyn-source">
809
+ <p class="source-link">[ <a href="javascript:toggleSource('M000156_source')" id="l_M000156_source">+</a> ]</p>
810
+ <div id="M000156_source" class="dyn-source">
811
811
  <pre>
812
812
  <span class="ruby-comment cmt"># File lib/core/facets/array/select.rb, line 11</span>
813
813
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">select!</span> <span class="ruby-comment cmt"># :yield:</span>
@@ -819,11 +819,11 @@ CREDIT: Gavin Sinclair
819
819
  </div>
820
820
  <div class="method">
821
821
  <div class="title">
822
- <a name="M000101"></a><b>splice</b>(*args)
822
+ <a name="M000162"></a><b>splice</b>(*args)
823
823
  </div>
824
824
  <div class="description">
825
825
  <p>
826
- Splice acts a <a href="Array.html#M000098">combination</a> of slice! and
826
+ Splice acts a <a href="Array.html#M000159">combination</a> of slice! and
827
827
  store. If two arguments are given it calls store. If a single argument is
828
828
  give it calls slice!.
829
829
  </p>
@@ -841,8 +841,8 @@ CREDIT: Trans
841
841
  </p>
842
842
  </div>
843
843
  <div class="sourcecode">
844
- <p class="source-link">[ <a href="javascript:toggleSource('M000101_source')" id="l_M000101_source">+</a> ]</p>
845
- <div id="M000101_source" class="dyn-source">
844
+ <p class="source-link">[ <a href="javascript:toggleSource('M000162_source')" id="l_M000162_source">+</a> ]</p>
845
+ <div id="M000162_source" class="dyn-source">
846
846
  <pre>
847
847
  <span class="ruby-comment cmt"># File lib/core/facets/array/splice.rb, line 17</span>
848
848
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">splice</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
@@ -858,7 +858,7 @@ CREDIT: Trans
858
858
  </div>
859
859
  <div class="method">
860
860
  <div class="title">
861
- <a name="M000081"></a><b>to_b</b>()
861
+ <a name="M000142"></a><b>to_b</b>()
862
862
  </div>
863
863
  <div class="description">
864
864
  <p>
@@ -866,8 +866,8 @@ Boolean conversion for not empty?
866
866
  </p>
867
867
  </div>
868
868
  <div class="sourcecode">
869
- <p class="source-link">[ <a href="javascript:toggleSource('M000081_source')" id="l_M000081_source">+</a> ]</p>
870
- <div id="M000081_source" class="dyn-source">
869
+ <p class="source-link">[ <a href="javascript:toggleSource('M000142_source')" id="l_M000142_source">+</a> ]</p>
870
+ <div id="M000142_source" class="dyn-source">
871
871
  <pre>
872
872
  <span class="ruby-comment cmt"># File lib/core/facets/boolean.rb, line 60</span>
873
873
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_b</span>
@@ -879,28 +879,28 @@ Boolean conversion for not empty?
879
879
  </div>
880
880
  <div class="method">
881
881
  <div class="title">
882
- <a name="M000075"></a><b>to_h</b>(mode=nil)
882
+ <a name="M000136"></a><b>to_h</b>(mode=nil)
883
883
  </div>
884
884
  <div class="description">
885
885
  <p>
886
886
  Converts an array into a hash. Converting an array into a hash is not a
887
887
  one-to-one conversion, for this reason <a
888
- href="Array.html#M000075">to_h</a> examines at the array being converted
888
+ href="Array.html#M000136">to_h</a> examines at the array being converted
889
889
  and then dispatches the conversion to the most sutiable specialized
890
890
  function. There are three possiblities for this.
891
891
  </p>
892
892
  <p>
893
893
  If the array is a collection of perfect pairs, like that which Hash#to_a
894
894
  generates, then conversion is handled by <a
895
- href="Array.html#M000078">to_h_flat</a>.
895
+ href="Array.html#M000139">to_h_flat</a>.
896
896
  </p>
897
897
  <pre>
898
898
  a = [ [:a,1], [:b,2] ]
899
899
  a.to_h #=&gt; { :a=&gt;1, :b=&gt;2 }
900
900
  </pre>
901
901
  <p>
902
- If the array contains <a href="Array.html#M000097">only</a> arrays, but are
903
- not perfect pairs, then <a href="Array.html#M000080">to_h_multi</a> is
902
+ If the array contains <a href="Array.html#M000158">only</a> arrays, but are
903
+ not perfect pairs, then <a href="Array.html#M000141">to_h_multi</a> is
904
904
  called.
905
905
  </p>
906
906
  <pre>
@@ -909,7 +909,7 @@ called.
909
909
  </pre>
910
910
  <p>
911
911
  If the array contians objects other then arrays then the <a
912
- href="Array.html#M000077">to_h_splat</a> method is called.
912
+ href="Array.html#M000138">to_h_splat</a> method is called.
913
913
  </p>
914
914
  <pre>
915
915
  a = [ [:a,1,2], 2, :b, [:c,3], 9 ]
@@ -936,10 +936,10 @@ CREDIT: Robert Klemme CREDIT: Trans
936
936
  </p>
937
937
  </div>
938
938
  <div class="sourcecode">
939
- <p class="source-link">[ <a href="javascript:toggleSource('M000075_source')" id="l_M000075_source">+</a> ]</p>
940
- <div id="M000075_source" class="dyn-source">
939
+ <p class="source-link">[ <a href="javascript:toggleSource('M000136_source')" id="l_M000136_source">+</a> ]</p>
940
+ <div id="M000136_source" class="dyn-source">
941
941
  <pre>
942
- <span class="ruby-comment cmt"># File lib/core/facets/to_hash.rb, line 98</span>
942
+ <span class="ruby-comment cmt"># File lib/core/facets/to_hash.rb, line 53</span>
943
943
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_h</span>(<span class="ruby-identifier">mode</span>=<span class="ruby-keyword kw">nil</span>)
944
944
  <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">mode</span>
945
945
  <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:splat</span>
@@ -960,7 +960,7 @@ CREDIT: Robert Klemme CREDIT: Trans
960
960
  </div>
961
961
  <div class="method">
962
962
  <div class="title">
963
- <a name="M000079"></a><b>to_h_assoc</b>()
963
+ <a name="M000140"></a><b>to_h_assoc</b>()
964
964
  </div>
965
965
  <div class="description">
966
966
  <p>
@@ -972,7 +972,7 @@ follows:
972
972
  a.to_h #=&gt; { :a=&gt;[1,2], :b=&gt;[2], :c=&gt;[], :d=&gt;[] }
973
973
  </pre>
974
974
  <p>
975
- If the fist entry of any subelements are the same, then the value will be
975
+ If the first entry of any subelements are the same, then the value will be
976
976
  set to the last occuring value.
977
977
  </p>
978
978
  <pre>
@@ -981,10 +981,10 @@ set to the last occuring value.
981
981
  </pre>
982
982
  </div>
983
983
  <div class="sourcecode">
984
- <p class="source-link">[ <a href="javascript:toggleSource('M000079_source')" id="l_M000079_source">+</a> ]</p>
985
- <div id="M000079_source" class="dyn-source">
984
+ <p class="source-link">[ <a href="javascript:toggleSource('M000140_source')" id="l_M000140_source">+</a> ]</p>
985
+ <div id="M000140_source" class="dyn-source">
986
986
  <pre>
987
- <span class="ruby-comment cmt"># File lib/core/facets/to_hash.rb, line 202</span>
987
+ <span class="ruby-comment cmt"># File lib/core/facets/to_hash.rb, line 157</span>
988
988
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_h_assoc</span>
989
989
  <span class="ruby-identifier">h</span> = {}
990
990
  <span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-operator">*</span><span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
@@ -998,28 +998,28 @@ set to the last occuring value.
998
998
  </div>
999
999
  <div class="method">
1000
1000
  <div class="title">
1001
- <a name="M000076"></a><b>to_h_auto</b>()
1001
+ <a name="M000137"></a><b>to_h_auto</b>()
1002
1002
  </div>
1003
1003
  <div class="description">
1004
1004
  <p>
1005
1005
  Converts an array into a hash. Converting an array into a hash is not a
1006
1006
  one-to-one conversion, for this reason <a
1007
- href="Array.html#M000075">to_h</a> examines at the array being converted
1007
+ href="Array.html#M000136">to_h</a> examines at the array being converted
1008
1008
  and then dispatches the conversion to the most sutiable specialized
1009
1009
  function. There are three possiblities for this.
1010
1010
  </p>
1011
1011
  <p>
1012
1012
  If the array is a collection of perfect pairs, like that which Hash#to_a
1013
1013
  generates, then conversion is handled by <a
1014
- href="Array.html#M000078">to_h_flat</a>.
1014
+ href="Array.html#M000139">to_h_flat</a>.
1015
1015
  </p>
1016
1016
  <pre>
1017
1017
  a = [ [:a,1], [:b,2] ]
1018
1018
  a.to_h #=&gt; { :a=&gt;1, :b=&gt;2 }
1019
1019
  </pre>
1020
1020
  <p>
1021
- If the array contains <a href="Array.html#M000097">only</a> arrays, but are
1022
- not perfect pairs, then <a href="Array.html#M000080">to_h_multi</a> is
1021
+ If the array contains <a href="Array.html#M000158">only</a> arrays, but are
1022
+ not perfect pairs, then <a href="Array.html#M000141">to_h_multi</a> is
1023
1023
  called.
1024
1024
  </p>
1025
1025
  <pre>
@@ -1028,7 +1028,7 @@ called.
1028
1028
  </pre>
1029
1029
  <p>
1030
1030
  If the array contians objects other then arrays then the <a
1031
- href="Array.html#M000077">to_h_splat</a> method is called.
1031
+ href="Array.html#M000138">to_h_splat</a> method is called.
1032
1032
  </p>
1033
1033
  <pre>
1034
1034
  a = [ [:a,1,2], 2, :b, [:c,3], 9 ]
@@ -1036,10 +1036,10 @@ href="Array.html#M000077">to_h_splat</a> method is called.
1036
1036
  </pre>
1037
1037
  </div>
1038
1038
  <div class="sourcecode">
1039
- <p class="source-link">[ <a href="javascript:toggleSource('M000076_source')" id="l_M000076_source">+</a> ]</p>
1040
- <div id="M000076_source" class="dyn-source">
1039
+ <p class="source-link">[ <a href="javascript:toggleSource('M000137_source')" id="l_M000137_source">+</a> ]</p>
1040
+ <div id="M000137_source" class="dyn-source">
1041
1041
  <pre>
1042
- <span class="ruby-comment cmt"># File lib/core/facets/to_hash.rb, line 138</span>
1042
+ <span class="ruby-comment cmt"># File lib/core/facets/to_hash.rb, line 93</span>
1043
1043
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_h_auto</span>
1044
1044
  <span class="ruby-identifier">pairs</span> = <span class="ruby-keyword kw">true</span>
1045
1045
  <span class="ruby-identifier">mixed</span> = <span class="ruby-keyword kw">false</span>
@@ -1067,12 +1067,12 @@ href="Array.html#M000077">to_h_splat</a> method is called.
1067
1067
  </div>
1068
1068
  <div class="method">
1069
1069
  <div class="title">
1070
- <a name="M000078"></a><b>to_h_flat</b>()
1070
+ <a name="M000139"></a><b>to_h_flat</b>()
1071
1071
  </div>
1072
1072
  <div class="description">
1073
1073
  <p>
1074
1074
  This is equivalent to <a href="http://*array.flatten">Hash</a>, but it will
1075
- <a href="Array.html#M000102">pad</a> the array with a <tt>nil</tt> object
1075
+ <a href="Array.html#M000163">pad</a> the array with a <tt>nil</tt> object
1076
1076
  if there are not an even number of elements.
1077
1077
  </p>
1078
1078
  <pre>
@@ -1081,10 +1081,10 @@ if there are not an even number of elements.
1081
1081
  </pre>
1082
1082
  </div>
1083
1083
  <div class="sourcecode">
1084
- <p class="source-link">[ <a href="javascript:toggleSource('M000078_source')" id="l_M000078_source">+</a> ]</p>
1085
- <div id="M000078_source" class="dyn-source">
1084
+ <p class="source-link">[ <a href="javascript:toggleSource('M000139_source')" id="l_M000139_source">+</a> ]</p>
1085
+ <div id="M000139_source" class="dyn-source">
1086
1086
  <pre>
1087
- <span class="ruby-comment cmt"># File lib/core/facets/to_hash.rb, line 180</span>
1087
+ <span class="ruby-comment cmt"># File lib/core/facets/to_hash.rb, line 135</span>
1088
1088
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_h_flat</span>
1089
1089
  <span class="ruby-identifier">a</span> = <span class="ruby-identifier">flatten</span>
1090
1090
  <span class="ruby-identifier">a</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-keyword kw">nil</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">a</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">%</span> <span class="ruby-value">2</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span>
@@ -1096,7 +1096,7 @@ if there are not an even number of elements.
1096
1096
  </div>
1097
1097
  <div class="method">
1098
1098
  <div class="title">
1099
- <a name="M000080"></a><b>to_h_multi</b>()
1099
+ <a name="M000141"></a><b>to_h_multi</b>()
1100
1100
  </div>
1101
1101
  <div class="description">
1102
1102
  <p>
@@ -1108,19 +1108,19 @@ follows:
1108
1108
  a.to_h #=&gt; { :a=&gt;[1,2], :b=&gt;[2], :c=&gt;[], :d=&gt;[] }
1109
1109
  </pre>
1110
1110
  <p>
1111
- If the fist entry of the subelements is the same, then the values will be
1111
+ If the first entry of the subelements is the same, then the values will be
1112
1112
  merged using concat.
1113
1113
  </p>
1114
1114
  <pre>
1115
1115
  a = [ [:a,1,2], [:a,3], [:a,4], [:a], :a ]
1116
- a.to_h_multi #=&gt; { :a=&gt;[1,2,3,4,nil,nil] }
1116
+ a.to_h_multi #=&gt; { :a=&gt;[1,2,3,4] }
1117
1117
  </pre>
1118
1118
  </div>
1119
1119
  <div class="sourcecode">
1120
- <p class="source-link">[ <a href="javascript:toggleSource('M000080_source')" id="l_M000080_source">+</a> ]</p>
1121
- <div id="M000080_source" class="dyn-source">
1120
+ <p class="source-link">[ <a href="javascript:toggleSource('M000141_source')" id="l_M000141_source">+</a> ]</p>
1121
+ <div id="M000141_source" class="dyn-source">
1122
1122
  <pre>
1123
- <span class="ruby-comment cmt"># File lib/core/facets/to_hash.rb, line 222</span>
1123
+ <span class="ruby-comment cmt"># File lib/core/facets/to_hash.rb, line 177</span>
1124
1124
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_h_multi</span>
1125
1125
  <span class="ruby-identifier">h</span> = {}
1126
1126
  <span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-operator">*</span><span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
@@ -1135,12 +1135,12 @@ merged using concat.
1135
1135
  </div>
1136
1136
  <div class="method">
1137
1137
  <div class="title">
1138
- <a name="M000077"></a><b>to_h_splat</b>()
1138
+ <a name="M000138"></a><b>to_h_splat</b>()
1139
1139
  </div>
1140
1140
  <div class="description">
1141
1141
  <p>
1142
1142
  This is equivalent to <a href="Hash.html">Hash</a>[*array], but it will <a
1143
- href="Array.html#M000102">pad</a> the array with a <tt>nil</tt> object if
1143
+ href="Array.html#M000163">pad</a> the array with a <tt>nil</tt> object if
1144
1144
  there are not an even number of elements.
1145
1145
  </p>
1146
1146
  <pre>
@@ -1149,10 +1149,10 @@ there are not an even number of elements.
1149
1149
  </pre>
1150
1150
  </div>
1151
1151
  <div class="sourcecode">
1152
- <p class="source-link">[ <a href="javascript:toggleSource('M000077_source')" id="l_M000077_source">+</a> ]</p>
1153
- <div id="M000077_source" class="dyn-source">
1152
+ <p class="source-link">[ <a href="javascript:toggleSource('M000138_source')" id="l_M000138_source">+</a> ]</p>
1153
+ <div id="M000138_source" class="dyn-source">
1154
1154
  <pre>
1155
- <span class="ruby-comment cmt"># File lib/core/facets/to_hash.rb, line 167</span>
1155
+ <span class="ruby-comment cmt"># File lib/core/facets/to_hash.rb, line 122</span>
1156
1156
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_h_splat</span>
1157
1157
  <span class="ruby-identifier">a</span> = <span class="ruby-identifier">dup</span>
1158
1158
  <span class="ruby-identifier">a</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-keyword kw">nil</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">a</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">%</span> <span class="ruby-value">2</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span>
@@ -1164,11 +1164,11 @@ there are not an even number of elements.
1164
1164
  </div>
1165
1165
  <div class="method">
1166
1166
  <div class="title">
1167
- <a name="M000092"></a><b>traverse</b>() {|item| ...}
1167
+ <a name="M000153"></a><b>traverse</b>() {|item| ...}
1168
1168
  </div>
1169
1169
  <div class="sourcecode">
1170
- <p class="source-link">[ <a href="javascript:toggleSource('M000092_source')" id="l_M000092_source">+</a> ]</p>
1171
- <div id="M000092_source" class="dyn-source">
1170
+ <p class="source-link">[ <a href="javascript:toggleSource('M000153_source')" id="l_M000153_source">+</a> ]</p>
1171
+ <div id="M000153_source" class="dyn-source">
1172
1172
  <pre>
1173
1173
  <span class="ruby-comment cmt"># File lib/core/facets/array/traverse.rb, line 5</span>
1174
1174
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">traverse</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
@@ -1186,11 +1186,11 @@ there are not an even number of elements.
1186
1186
  </div>
1187
1187
  <div class="method">
1188
1188
  <div class="title">
1189
- <a name="M000093"></a><b>traverse!</b>(&amp;block)
1189
+ <a name="M000154"></a><b>traverse!</b>(&amp;block)
1190
1190
  </div>
1191
1191
  <div class="sourcecode">
1192
- <p class="source-link">[ <a href="javascript:toggleSource('M000093_source')" id="l_M000093_source">+</a> ]</p>
1193
- <div id="M000093_source" class="dyn-source">
1192
+ <p class="source-link">[ <a href="javascript:toggleSource('M000154_source')" id="l_M000154_source">+</a> ]</p>
1193
+ <div id="M000154_source" class="dyn-source">
1194
1194
  <pre>
1195
1195
  <span class="ruby-comment cmt"># File lib/core/facets/array/traverse.rb, line 17</span>
1196
1196
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">traverse!</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)