facets 2.4.2 → 2.4.3
Sign up to get free protection for your applications and to get access to all the features.
- data/AUTHORS +1 -1
- data/CHANGES +25 -5
- data/MANIFEST +67 -34
- data/METADATA +2 -2
- data/NEWS +54 -46
- data/doc/news/NEWS-2.4.0 +52 -0
- data/doc/rdoc/core/classes/Array.html +198 -198
- data/doc/rdoc/core/classes/Binding.html +86 -192
- data/doc/rdoc/core/classes/Class.html +136 -136
- data/doc/rdoc/core/classes/Comparable.html +45 -45
- data/doc/rdoc/core/classes/Dir.html +64 -64
- data/doc/rdoc/core/classes/Enumerable.html +287 -281
- data/doc/rdoc/core/classes/Exception.html +16 -16
- data/doc/rdoc/core/classes/FalseClass.html +8 -8
- data/doc/rdoc/core/classes/File.html +100 -100
- data/doc/rdoc/core/classes/FileTest.html +8 -8
- data/doc/rdoc/core/classes/Float.html +32 -32
- data/doc/rdoc/core/classes/Friend.html +8 -8
- data/doc/rdoc/core/classes/Functor.html +12 -12
- data/doc/rdoc/core/classes/Hash.html +439 -847
- data/doc/rdoc/{more → core}/classes/Indexable.html +115 -115
- data/doc/rdoc/core/classes/InstanceVariables.html +88 -88
- data/doc/rdoc/core/classes/Integer.html +142 -142
- data/doc/rdoc/core/classes/Kernel.html +602 -600
- data/doc/rdoc/core/classes/Lazy/Promise.html +1 -1
- data/doc/rdoc/core/classes/MatchData.html +30 -30
- data/doc/rdoc/core/classes/Module.html +379 -327
- data/doc/rdoc/core/classes/NilClass.html +32 -32
- data/doc/rdoc/core/classes/Numeric.html +46 -46
- data/doc/rdoc/core/classes/Object.html +4 -4
- data/doc/rdoc/core/classes/Proc.html +46 -134
- data/doc/rdoc/core/classes/Range.html +60 -60
- data/doc/rdoc/core/classes/Regexp.html +28 -28
- data/doc/rdoc/{more → core}/classes/Stackable.html +38 -38
- data/doc/rdoc/core/classes/String.html +844 -504
- data/doc/rdoc/core/classes/Symbol.html +62 -62
- data/doc/rdoc/core/classes/Time.html +112 -112
- data/doc/rdoc/core/classes/TrueClass.html +8 -8
- data/doc/rdoc/core/classes/UnboundMethod.html +22 -22
- data/doc/rdoc/core/created.rid +1 -1
- data/doc/rdoc/core/files/lib/core/facets/array_rb.html +4 -1
- data/doc/rdoc/core/files/lib/core/facets/binding_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/boolean_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/class/methodize_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/class/pathize_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/class_rb.html +5 -1
- data/doc/rdoc/core/files/lib/core/facets/dir_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/{class/to_methodname_rb.html → enumerable/commonality_rb.html} +4 -4
- data/doc/rdoc/core/files/lib/core/facets/enumerable/entropy_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/{class/to_pathname_rb.html → enumerable/frequency_rb.html} +4 -4
- data/doc/rdoc/core/files/lib/core/facets/enumerable/probability_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable_rb.html +6 -2
- data/doc/rdoc/core/files/lib/core/facets/file_rb.html +2 -1
- data/doc/rdoc/core/files/lib/core/facets/hash_rb.html +7 -1
- data/doc/rdoc/{more/files/lib/more → core/files/lib/core}/facets/indexable_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/require_all_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/require_local_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel_rb.html +15 -2
- data/doc/rdoc/core/files/lib/core/facets/module/integrate_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/module/methodize_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/module/module_load_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/pathize_rb.html +5 -1
- data/doc/rdoc/core/files/lib/core/facets/module/redefine_method_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module/redirect_method_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module/rename_method_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module/revise_rb.html +8 -1
- data/doc/rdoc/core/files/lib/core/facets/module/wrap_method_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module_rb.html +8 -5
- data/doc/rdoc/core/files/lib/core/facets/numeric_rb.html +2 -1
- data/doc/rdoc/core/files/lib/core/facets/proc_rb.html +3 -5
- data/doc/rdoc/{more/files/lib/more → core/files/lib/core}/facets/stackable_rb.html +3 -4
- data/doc/rdoc/core/files/lib/core/facets/string/each_word_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/{module/clone_rb.html → string/methodize_rb.html} +4 -4
- data/doc/rdoc/core/files/lib/core/facets/{kernel/load_rb.html → string/pathize_rb.html} +4 -4
- data/doc/rdoc/core/files/lib/core/facets/string/word_wrap_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/words_rb.html +1 -5
- data/doc/rdoc/core/files/lib/core/facets/string_rb.html +8 -3
- data/doc/rdoc/core/files/lib/core/facets/symbol_rb.html +2 -1
- data/doc/rdoc/core/fr_class_index.html +2 -3
- data/doc/rdoc/core/fr_file_index.html +36 -16
- data/doc/rdoc/core/fr_method_index.html +778 -784
- data/doc/rdoc/lore/created.rid +1 -1
- data/doc/rdoc/more/classes/ANSICode.html +66 -66
- data/doc/rdoc/more/classes/Advisable.html +37 -37
- data/doc/rdoc/more/classes/Advisable/Method.html +20 -20
- data/doc/rdoc/more/classes/Archive/Tar/Minitar.html +27 -27
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Input.html +28 -28
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Output.html +19 -19
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Reader.html +31 -31
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Writer.html +33 -33
- data/doc/rdoc/more/classes/Association.html +28 -28
- data/doc/rdoc/more/classes/Association/Kernel.html +8 -8
- data/doc/rdoc/more/classes/Autoarray.html +12 -12
- data/doc/rdoc/more/classes/BBCode.html +34 -34
- data/doc/rdoc/more/classes/BaseX.html +16 -16
- data/doc/rdoc/more/classes/BiCrypt.html +67 -67
- data/doc/rdoc/more/classes/BigDuration.html +30 -30
- data/doc/rdoc/more/classes/BinReadable.html +85 -85
- data/doc/rdoc/more/classes/BinReadable/ByteOrder.html +25 -25
- data/doc/rdoc/more/classes/Binding.html +201 -0
- data/doc/rdoc/more/classes/Buildable.html +4 -4
- data/doc/rdoc/more/classes/BuildingBlock.html +32 -32
- data/doc/rdoc/more/classes/CLI.html +108 -0
- data/doc/rdoc/more/classes/CLI/Arguments.html +76 -76
- data/doc/rdoc/more/classes/CLI/Command.html +22 -22
- data/doc/rdoc/more/classes/CLI/NoCommandError.html +4 -4
- data/doc/rdoc/more/classes/CLI/NoOptionError.html +4 -4
- data/doc/rdoc/more/classes/CacheDecorator.html +21 -21
- data/doc/rdoc/more/classes/Capsule.html +41 -41
- data/doc/rdoc/more/classes/Chain.html +17 -17
- data/doc/rdoc/more/classes/Cloneable.html +4 -4
- data/doc/rdoc/more/classes/ConsoleUtils.html +18 -18
- data/doc/rdoc/more/classes/Coroutine.html +28 -28
- data/doc/rdoc/more/classes/Crypt.html +16 -16
- data/doc/rdoc/more/classes/CssFilter.html +45 -45
- data/doc/rdoc/more/classes/CssTree.html +8 -8
- data/doc/rdoc/more/classes/Dictionary.html +228 -228
- data/doc/rdoc/more/classes/DictionaryMatcher.html +38 -38
- data/doc/rdoc/more/classes/DictionaryMatcher/MatchData.html +4 -4
- data/doc/rdoc/more/classes/Downloader.html +56 -56
- data/doc/rdoc/more/classes/Duration.html +68 -68
- data/doc/rdoc/more/classes/Enumerable.html +44 -44
- data/doc/rdoc/more/classes/Enumerable/Elementor.html +16 -16
- data/doc/rdoc/more/classes/Enumerable/Enumerator.html +4 -4
- data/doc/rdoc/more/classes/EnumerablePass.html +15 -15
- data/doc/rdoc/more/classes/Equatable.html +16 -16
- data/doc/rdoc/more/classes/EventHook.html +8 -8
- data/doc/rdoc/more/classes/Expirable.html +17 -17
- data/doc/rdoc/more/classes/FileList.html +125 -125
- data/doc/rdoc/more/classes/FileShell.html +147 -147
- data/doc/rdoc/more/classes/Fileable.html +14 -14
- data/doc/rdoc/more/classes/Fileable/DSL.html +41 -41
- data/doc/rdoc/more/classes/Hash.html +306 -14
- data/doc/rdoc/more/classes/Hash2Xml.html +4 -4
- data/doc/rdoc/more/classes/HtmlFilter.html +9 -9
- data/doc/rdoc/more/classes/IORedirect.html +19 -19
- data/doc/rdoc/more/classes/InfinityClass.html +36 -36
- data/doc/rdoc/more/classes/InfinityClass/Numeric.html +23 -23
- data/doc/rdoc/more/classes/Ini.html +37 -37
- data/doc/rdoc/more/classes/Instantiable.html +9 -9
- data/doc/rdoc/more/classes/Instantise.html +8 -8
- data/doc/rdoc/more/classes/Interval.html +187 -187
- data/doc/rdoc/more/classes/It.html +12 -12
- data/doc/rdoc/more/classes/Kernel.html +77 -77
- data/doc/rdoc/more/classes/LRUCache.html +38 -38
- data/doc/rdoc/more/classes/LinkedList.html +68 -68
- data/doc/rdoc/more/classes/LinkedList/Node.html +4 -4
- data/doc/rdoc/{core → more}/classes/MissingArgument.html +1 -2
- data/doc/rdoc/more/classes/Module.html +171 -171
- data/doc/rdoc/more/classes/Multiton.html +12 -12
- data/doc/rdoc/more/classes/Multiton/MetaMethods.html +28 -28
- data/doc/rdoc/more/classes/Net/SMTP.html +19 -19
- data/doc/rdoc/more/classes/NullClass.html +24 -24
- data/doc/rdoc/more/classes/ObjectReflection.html +12 -12
- data/doc/rdoc/more/classes/OpEsc.html +5 -5
- data/doc/rdoc/more/classes/OpenCascade.html +4 -4
- data/doc/rdoc/more/classes/OpenCollection.html +8 -8
- data/doc/rdoc/more/classes/OpenHash.html +9 -9
- data/doc/rdoc/more/classes/OpenObject.html +95 -95
- data/doc/rdoc/more/classes/PQueue.html +84 -84
- data/doc/rdoc/more/classes/Paramix.html +11 -11
- data/doc/rdoc/more/classes/Paramix/Delegator.html +16 -16
- data/doc/rdoc/more/classes/PathList.html +8 -8
- data/doc/rdoc/more/classes/PathList/Finder.html +8 -8
- data/doc/rdoc/more/classes/Platform.html +46 -46
- data/doc/rdoc/more/classes/Pool.html +18 -18
- data/doc/rdoc/more/classes/Proc.html +48 -4
- data/doc/rdoc/more/classes/ProgressBar.html +52 -52
- data/doc/rdoc/more/classes/Prototype.html +28 -28
- data/doc/rdoc/more/classes/RWDelegator.html +16 -16
- data/doc/rdoc/more/classes/Random.html +9 -9
- data/doc/rdoc/more/classes/Random/Array.html +37 -37
- data/doc/rdoc/more/classes/Random/Hash.html +52 -52
- data/doc/rdoc/more/classes/Random/Object.html +4 -4
- data/doc/rdoc/more/classes/Random/String.html +34 -34
- data/doc/rdoc/more/classes/Random/String/Self.html +9 -9
- data/doc/rdoc/more/classes/Recorder.html +16 -16
- data/doc/rdoc/more/classes/Reference.html +19 -19
- data/doc/rdoc/more/classes/Registerable.html +13 -13
- data/doc/rdoc/more/classes/Semaphore.html +36 -36
- data/doc/rdoc/more/classes/Settings.html +28 -28
- data/doc/rdoc/more/classes/Settings/Setting.html +13 -13
- data/doc/rdoc/more/classes/Settings/SettingCollection.html +4 -4
- data/doc/rdoc/more/classes/SimpleStringIO.html +8 -8
- data/doc/rdoc/more/classes/Snapshot.html +16 -16
- data/doc/rdoc/more/classes/Snapshot/ValueHolder.html +12 -12
- data/doc/rdoc/more/classes/String/Style.html +113 -113
- data/doc/rdoc/{core → more}/classes/String/Words.html +78 -78
- data/doc/rdoc/more/classes/Struct.html +8 -8
- data/doc/rdoc/more/classes/SyncArray.html +4 -4
- data/doc/rdoc/more/classes/SyncHash.html +4 -4
- data/doc/rdoc/more/classes/SyncHash/Delegator.html +28 -28
- data/doc/rdoc/more/classes/SyncHash/Inheritor.html +28 -28
- data/doc/rdoc/more/classes/System.html +253 -253
- data/doc/rdoc/more/classes/Timer.html +48 -48
- data/doc/rdoc/more/classes/Timer/Dummy.html +9 -9
- data/doc/rdoc/more/classes/TracePoint.html +64 -62
- data/doc/rdoc/more/classes/Tuple.html +170 -170
- data/doc/rdoc/more/classes/TypeCast/Class.html +4 -4
- data/doc/rdoc/more/classes/TypeCast/Object.html +4 -4
- data/doc/rdoc/more/classes/Uninheritable.html +6 -6
- data/doc/rdoc/more/classes/UploadUtils.html +49 -49
- data/doc/rdoc/more/classes/VersionNumber.html +53 -53
- data/doc/rdoc/more/classes/Weekdays.html +28 -28
- data/doc/rdoc/more/classes/XOXO.html +9 -9
- data/doc/rdoc/more/classes/ZipUtils.html +58 -58
- data/doc/rdoc/more/classes/ZipUtils/DryRun.html +28 -28
- data/doc/rdoc/more/classes/ZipUtils/NoWrite.html +28 -28
- data/doc/rdoc/more/classes/ZipUtils/Verbose.html +28 -28
- data/doc/rdoc/more/created.rid +1 -1
- data/doc/rdoc/more/files/lib/more/facets/ansicode_rb.html +1 -1
- data/doc/rdoc/{core/files/lib/core → more/files/lib/more}/facets/binding/opvars_rb.html +2 -2
- data/doc/rdoc/{core/files/lib/core → more/files/lib/more}/facets/hash/stringify_keys_rb.html +2 -2
- data/doc/rdoc/{core/files/lib/core → more/files/lib/more}/facets/hash/symbolize_keys_rb.html +2 -2
- data/doc/rdoc/{core/files/lib/core/facets/proc → more/files/lib/more/facets}/partial_rb.html +8 -7
- data/doc/rdoc/more/files/lib/more/facets/snapshot_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/string/words_rb.html +96 -0
- data/doc/rdoc/more/files/lib/more/facets/tracepoint_rb.html +13 -8
- data/doc/rdoc/more/fr_class_index.html +4 -2
- data/doc/rdoc/more/fr_file_index.html +9 -2
- data/doc/rdoc/more/fr_method_index.html +1013 -1009
- data/doc/ri/CLI/cdesc-CLI.yaml +7 -2
- data/doc/ri/Enumerable/probability-i.yaml +1 -1
- data/doc/ri/Module/append_features-i.yaml +4 -3
- data/doc/ri/Module/cdesc-Module.yaml +4 -3
- data/doc/ri/Module/methodize-i.yaml +14 -0
- data/doc/ri/Module/redefine_method-i.yaml +1 -1
- data/doc/ri/Module/redirect_method-i.yaml +3 -1
- data/doc/ri/Module/rename_method-i.yaml +1 -1
- data/doc/ri/created.rid +1 -1
- data/lib/core/facets/array.rb +3 -0
- data/lib/core/facets/binding.rb +0 -1
- data/lib/core/facets/class.rb +4 -4
- data/lib/core/facets/class/{to_methodname.rb → methodize.rb} +5 -2
- data/lib/core/facets/class/pathize.rb +14 -0
- data/lib/core/facets/enumerable.rb +5 -2
- data/lib/core/facets/enumerable/commonality.rb +33 -0
- data/lib/core/facets/enumerable/entropy.rb +37 -0
- data/lib/core/facets/enumerable/frequency.rb +18 -0
- data/lib/core/facets/enumerable/probability.rb +1 -98
- data/lib/core/facets/file.rb +1 -1
- data/lib/core/facets/hash.rb +6 -0
- data/lib/{more → core}/facets/indexable.rb +0 -0
- data/lib/core/facets/kernel.rb +15 -1
- data/lib/core/facets/kernel/require_all.rb +21 -0
- data/lib/core/facets/kernel/{load.rb → require_local.rb} +6 -23
- data/lib/core/facets/module.rb +7 -3
- data/lib/core/facets/module/integrate.rb +2 -0
- data/lib/core/facets/module/methodize.rb +14 -0
- data/lib/core/facets/module/pathize.rb +10 -7
- data/lib/core/facets/module/redefine_method.rb +35 -0
- data/lib/core/facets/module/redirect_method.rb +45 -0
- data/lib/core/facets/module/rename_method.rb +20 -0
- data/lib/core/facets/module/revise.rb +7 -113
- data/lib/core/facets/module/wrap_method.rb +28 -0
- data/lib/core/facets/numeric.rb +1 -1
- data/lib/core/facets/proc.rb +2 -3
- data/lib/{more → core}/facets/stackable.rb +0 -0
- data/lib/core/facets/string.rb +8 -6
- data/lib/core/facets/string/each_word.rb +13 -0
- data/lib/core/facets/string/methodize.rb +12 -0
- data/lib/core/facets/string/pathize.rb +12 -0
- data/lib/core/facets/string/word_wrap.rb +34 -0
- data/lib/core/facets/string/words.rb +6 -167
- data/lib/core/facets/symbol.rb +1 -0
- data/lib/more/facets/ansicode.rb +4 -4
- data/lib/{core → more}/facets/binding/opvars.rb +0 -0
- data/lib/{core → more}/facets/hash/stringify_keys.rb +0 -0
- data/lib/{core → more}/facets/hash/symbolize_keys.rb +5 -6
- data/lib/{core/facets/proc → more/facets}/partial.rb +0 -0
- data/lib/more/facets/string/words.rb +173 -0
- data/test/core/dir/test_multiglob.rb +1 -0
- data/test/core/dir/test_recurse.rb +1 -0
- data/test/core/enumerable/test_commonality.rb +15 -0
- data/test/core/enumerable/test_entropy.rb +15 -0
- data/test/core/enumerable/test_frequency.rb +11 -0
- data/test/core/enumerable/test_probability.rb +1 -34
- data/test/core/string/test_each_word.rb +14 -0
- data/test/core/string/test_fold.rb +1 -1
- data/test/core/string/test_word_wrap.rb +35 -0
- data/test/core/string/test_words.rb +12 -61
- data/test/more/test_command.rb +7 -9
- data/test/more/test_paramix.rb +4 -1
- data/test/{core/proc → more}/test_partial.rb +1 -1
- metadata +75 -38
- data/doc/rdoc/core/classes/Module/CloneExtensions.html +0 -287
- data/doc/ri/Module/CloneExtensions/cdesc-CloneExtensions.yaml +0 -20
- data/doc/ri/Module/CloneExtensions/clone_removing-i.yaml +0 -14
- data/doc/ri/Module/CloneExtensions/clone_renaming-i.yaml +0 -14
- data/doc/ri/Module/CloneExtensions/clone_using-i.yaml +0 -14
- data/lib/core/facets/class/to_pathname.rb +0 -12
- data/lib/core/facets/module/clone.rb +0 -57
- data/test/core/module/test_clone.rb +0 -45
@@ -83,7 +83,7 @@ reciever.
|
|
83
83
|
</p>
|
84
84
|
<p>
|
85
85
|
The most common example is <a
|
86
|
-
href="Random/Array.html#
|
86
|
+
href="Random/Array.html#M000768">Array#shuffle</a>, which simply
|
87
87
|
randmomizes the order of an array‘s elements.
|
88
88
|
</p>
|
89
89
|
<pre>
|
@@ -98,8 +98,8 @@ The other methods do similar things for their respective classes.
|
|
98
98
|
|
99
99
|
<div class="sectiontitle">Methods</div>
|
100
100
|
<ul>
|
101
|
-
<li><a href="#
|
102
|
-
<li><a href="#
|
101
|
+
<li><a href="#M000748">append_features</a></li>
|
102
|
+
<li><a href="#M000747">number</a></li>
|
103
103
|
</ul>
|
104
104
|
|
105
105
|
|
@@ -116,11 +116,11 @@ Module <a href="Random/String.html" class="link">Random::String</a><br />
|
|
116
116
|
<div class="sectiontitle">Public Class methods</div>
|
117
117
|
<div class="method">
|
118
118
|
<div class="title">
|
119
|
-
<a name="
|
119
|
+
<a name="M000748"></a><b>append_features</b>(mod)
|
120
120
|
</div>
|
121
121
|
<div class="sourcecode">
|
122
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
123
|
-
<div id="
|
122
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000748_source')" id="l_M000748_source">show source</a> ]</p>
|
123
|
+
<div id="M000748_source" class="dyn-source">
|
124
124
|
<pre>
|
125
125
|
<span class="ruby-comment cmt"># File lib/more/facets/random.rb, line 63</span>
|
126
126
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">append_features</span>(<span class="ruby-identifier">mod</span>)
|
@@ -142,11 +142,11 @@ Module <a href="Random/String.html" class="link">Random::String</a><br />
|
|
142
142
|
</div>
|
143
143
|
<div class="method">
|
144
144
|
<div class="title">
|
145
|
-
<a name="
|
145
|
+
<a name="M000747"></a><b>number</b>(*args)
|
146
146
|
</div>
|
147
147
|
<div class="sourcecode">
|
148
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
149
|
-
<div id="
|
148
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000747_source')" id="l_M000747_source">show source</a> ]</p>
|
149
|
+
<div id="M000747_source" class="dyn-source">
|
150
150
|
<pre>
|
151
151
|
<span class="ruby-comment cmt"># File lib/more/facets/random.rb, line 57</span>
|
152
152
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">number</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
@@ -74,14 +74,14 @@
|
|
74
74
|
|
75
75
|
<div class="sectiontitle">Methods</div>
|
76
76
|
<ul>
|
77
|
-
<li><a href="#
|
78
|
-
<li><a href="#
|
79
|
-
<li><a href="#
|
80
|
-
<li><a href="#
|
81
|
-
<li><a href="#
|
82
|
-
<li><a href="#
|
83
|
-
<li><a href="#
|
84
|
-
<li><a href="#
|
77
|
+
<li><a href="#M000762">at_rand</a></li>
|
78
|
+
<li><a href="#M000763">at_rand!</a></li>
|
79
|
+
<li><a href="#M000764">pick</a></li>
|
80
|
+
<li><a href="#M000765">pick!</a></li>
|
81
|
+
<li><a href="#M000766">rand_index</a></li>
|
82
|
+
<li><a href="#M000767">rand_subset</a></li>
|
83
|
+
<li><a href="#M000768">shuffle</a></li>
|
84
|
+
<li><a href="#M000769">shuffle!</a></li>
|
85
85
|
</ul>
|
86
86
|
|
87
87
|
|
@@ -92,7 +92,7 @@
|
|
92
92
|
<div class="sectiontitle">Public Instance methods</div>
|
93
93
|
<div class="method">
|
94
94
|
<div class="title">
|
95
|
-
<a name="
|
95
|
+
<a name="M000762"></a><b>at_rand</b>()
|
96
96
|
</div>
|
97
97
|
<div class="description">
|
98
98
|
<p>
|
@@ -104,8 +104,8 @@ Return a random element of the array.
|
|
104
104
|
</pre>
|
105
105
|
</div>
|
106
106
|
<div class="sourcecode">
|
107
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
108
|
-
<div id="
|
107
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000762_source')" id="l_M000762_source">show source</a> ]</p>
|
108
|
+
<div id="M000762_source" class="dyn-source">
|
109
109
|
<pre>
|
110
110
|
<span class="ruby-comment cmt"># File lib/more/facets/random.rb, line 104</span>
|
111
111
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">at_rand</span>
|
@@ -117,11 +117,11 @@ Return a random element of the array.
|
|
117
117
|
</div>
|
118
118
|
<div class="method">
|
119
119
|
<div class="title">
|
120
|
-
<a name="
|
120
|
+
<a name="M000763"></a><b>at_rand!</b>()
|
121
121
|
</div>
|
122
122
|
<div class="description">
|
123
123
|
<p>
|
124
|
-
Same as <a href="Array.html#
|
124
|
+
Same as <a href="Array.html#M000762">at_rand</a>, but acts in place
|
125
125
|
removing a random element from the array.
|
126
126
|
</p>
|
127
127
|
<pre>
|
@@ -131,8 +131,8 @@ removing a random element from the array.
|
|
131
131
|
</pre>
|
132
132
|
</div>
|
133
133
|
<div class="sourcecode">
|
134
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
135
|
-
<div id="
|
134
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000763_source')" id="l_M000763_source">show source</a> ]</p>
|
135
|
+
<div id="M000763_source" class="dyn-source">
|
136
136
|
<pre>
|
137
137
|
<span class="ruby-comment cmt"># File lib/more/facets/random.rb, line 115</span>
|
138
138
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">at_rand!</span>
|
@@ -144,17 +144,17 @@ removing a random element from the array.
|
|
144
144
|
</div>
|
145
145
|
<div class="method">
|
146
146
|
<div class="title">
|
147
|
-
<a name="
|
147
|
+
<a name="M000764"></a><b>pick</b>(n=nil)
|
148
148
|
</div>
|
149
149
|
<div class="description">
|
150
150
|
<p>
|
151
|
-
Similar to <a href="Array.html#
|
151
|
+
Similar to <a href="Array.html#M000762">at_rand</a>, but will return an
|
152
152
|
array of randomly picked exclusive elements if given a number.
|
153
153
|
</p>
|
154
154
|
</div>
|
155
155
|
<div class="sourcecode">
|
156
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
157
|
-
<div id="
|
156
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000764_source')" id="l_M000764_source">show source</a> ]</p>
|
157
|
+
<div id="M000764_source" class="dyn-source">
|
158
158
|
<pre>
|
159
159
|
<span class="ruby-comment cmt"># File lib/more/facets/random.rb, line 121</span>
|
160
160
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pick</span>(<span class="ruby-identifier">n</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -171,17 +171,17 @@ array of randomly picked exclusive elements if given a number.
|
|
171
171
|
</div>
|
172
172
|
<div class="method">
|
173
173
|
<div class="title">
|
174
|
-
<a name="
|
174
|
+
<a name="M000765"></a><b>pick!</b>(n=nil)
|
175
175
|
</div>
|
176
176
|
<div class="description">
|
177
177
|
<p>
|
178
|
-
Similar to <a href="Array.html#
|
178
|
+
Similar to <a href="Array.html#M000762">at_rand</a>!, but given a number
|
179
179
|
will return an array of exclusive elements.
|
180
180
|
</p>
|
181
181
|
</div>
|
182
182
|
<div class="sourcecode">
|
183
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
184
|
-
<div id="
|
183
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000765_source')" id="l_M000765_source">show source</a> ]</p>
|
184
|
+
<div id="M000765_source" class="dyn-source">
|
185
185
|
<pre>
|
186
186
|
<span class="ruby-comment cmt"># File lib/more/facets/random.rb, line 132</span>
|
187
187
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pick!</span>(<span class="ruby-identifier">n</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -205,7 +205,7 @@ will return an array of exclusive elements.
|
|
205
205
|
</div>
|
206
206
|
<div class="method">
|
207
207
|
<div class="title">
|
208
|
-
<a name="
|
208
|
+
<a name="M000766"></a><b>rand_index</b>()
|
209
209
|
</div>
|
210
210
|
<div class="description">
|
211
211
|
<p>
|
@@ -213,8 +213,8 @@ will return an array of exclusive elements.
|
|
213
213
|
</p>
|
214
214
|
</div>
|
215
215
|
<div class="sourcecode">
|
216
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
217
|
-
<div id="
|
216
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000766_source')" id="l_M000766_source">show source</a> ]</p>
|
217
|
+
<div id="M000766_source" class="dyn-source">
|
218
218
|
<pre>
|
219
219
|
<span class="ruby-comment cmt"># File lib/more/facets/random.rb, line 150</span>
|
220
220
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rand_index</span>
|
@@ -226,7 +226,7 @@ will return an array of exclusive elements.
|
|
226
226
|
</div>
|
227
227
|
<div class="method">
|
228
228
|
<div class="title">
|
229
|
-
<a name="
|
229
|
+
<a name="M000767"></a><b>rand_subset</b>( number=nil, exclusive=true )
|
230
230
|
</div>
|
231
231
|
<div class="description">
|
232
232
|
<p>
|
@@ -253,8 +253,8 @@ values are returned.
|
|
253
253
|
</pre>
|
254
254
|
</div>
|
255
255
|
<div class="sourcecode">
|
256
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
257
|
-
<div id="
|
256
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000767_source')" id="l_M000767_source">show source</a> ]</p>
|
257
|
+
<div id="M000767_source" class="dyn-source">
|
258
258
|
<pre>
|
259
259
|
<span class="ruby-comment cmt"># File lib/more/facets/random.rb, line 172</span>
|
260
260
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rand_subset</span>( <span class="ruby-identifier">number</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">exclusive</span>=<span class="ruby-keyword kw">true</span> )
|
@@ -271,7 +271,7 @@ values are returned.
|
|
271
271
|
</div>
|
272
272
|
<div class="method">
|
273
273
|
<div class="title">
|
274
|
-
<a name="
|
274
|
+
<a name="M000768"></a><b>shuffle</b>()
|
275
275
|
</div>
|
276
276
|
<div class="description">
|
277
277
|
<p>
|
@@ -282,8 +282,8 @@ Randomize the order of an array.
|
|
282
282
|
</pre>
|
283
283
|
</div>
|
284
284
|
<div class="sourcecode">
|
285
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
286
|
-
<div id="
|
285
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000768_source')" id="l_M000768_source">show source</a> ]</p>
|
286
|
+
<div id="M000768_source" class="dyn-source">
|
287
287
|
<pre>
|
288
288
|
<span class="ruby-comment cmt"># File lib/more/facets/random.rb, line 185</span>
|
289
289
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">shuffle</span>
|
@@ -296,13 +296,13 @@ Randomize the order of an array.
|
|
296
296
|
</div>
|
297
297
|
<div class="method">
|
298
298
|
<div class="title">
|
299
|
-
<a name="
|
299
|
+
<a name="M000769"></a><b>shuffle!</b>()
|
300
300
|
</div>
|
301
301
|
<div class="description">
|
302
302
|
<p>
|
303
|
-
As with <a href="Array.html#
|
303
|
+
As with <a href="Array.html#M000768">shuffle</a> but modifies the array in
|
304
304
|
place. The algorithm used here is known as a Fisher-Yates <a
|
305
|
-
href="Array.html#
|
305
|
+
href="Array.html#M000768">shuffle</a>.
|
306
306
|
</p>
|
307
307
|
<pre>
|
308
308
|
a = [1,2,3,4]
|
@@ -314,8 +314,8 @@ CREDIT Niel Spring
|
|
314
314
|
</p>
|
315
315
|
</div>
|
316
316
|
<div class="sourcecode">
|
317
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
318
|
-
<div id="
|
317
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000769_source')" id="l_M000769_source">show source</a> ]</p>
|
318
|
+
<div id="M000769_source" class="dyn-source">
|
319
319
|
<pre>
|
320
320
|
<span class="ruby-comment cmt"># File lib/more/facets/random.rb, line 199</span>
|
321
321
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">shuffle!</span>
|
@@ -74,19 +74,19 @@
|
|
74
74
|
|
75
75
|
<div class="sectiontitle">Methods</div>
|
76
76
|
<ul>
|
77
|
-
<li><a href="#
|
78
|
-
<li><a href="#
|
79
|
-
<li><a href="#
|
80
|
-
<li><a href="#
|
81
|
-
<li><a href="#
|
82
|
-
<li><a href="#
|
83
|
-
<li><a href="#
|
84
|
-
<li><a href="#
|
85
|
-
<li><a href="#
|
86
|
-
<li><a href="#
|
87
|
-
<li><a href="#
|
88
|
-
<li><a href="#
|
89
|
-
<li><a href="#
|
77
|
+
<li><a href="#M000758">at_rand</a></li>
|
78
|
+
<li><a href="#M000759">at_rand!</a></li>
|
79
|
+
<li><a href="#M000757">pick</a></li>
|
80
|
+
<li><a href="#M000751">pick_key</a></li>
|
81
|
+
<li><a href="#M000754">pick_pair</a></li>
|
82
|
+
<li><a href="#M000749">rand_key</a></li>
|
83
|
+
<li><a href="#M000750">rand_key!</a></li>
|
84
|
+
<li><a href="#M000752">rand_pair</a></li>
|
85
|
+
<li><a href="#M000753">rand_pair!</a></li>
|
86
|
+
<li><a href="#M000755">rand_value</a></li>
|
87
|
+
<li><a href="#M000756">rand_value!</a></li>
|
88
|
+
<li><a href="#M000760">shuffle</a></li>
|
89
|
+
<li><a href="#M000761">shuffle!</a></li>
|
90
90
|
</ul>
|
91
91
|
|
92
92
|
|
@@ -97,57 +97,57 @@
|
|
97
97
|
<div class="sectiontitle">Public Instance methods</div>
|
98
98
|
<div class="method">
|
99
99
|
<div class="title">
|
100
|
-
<a name="
|
100
|
+
<a name="M000758"></a><b>at_rand</b>()
|
101
101
|
</div>
|
102
102
|
<div class="description">
|
103
103
|
<p>
|
104
|
-
Alias for <a href="Hash.html#
|
104
|
+
Alias for <a href="Hash.html#M000755">rand_value</a>
|
105
105
|
</p>
|
106
106
|
</div>
|
107
107
|
</div>
|
108
108
|
<div class="method">
|
109
109
|
<div class="title">
|
110
|
-
<a name="
|
110
|
+
<a name="M000759"></a><b>at_rand!</b>()
|
111
111
|
</div>
|
112
112
|
<div class="description">
|
113
113
|
<p>
|
114
|
-
Alias for <a href="Hash.html#
|
114
|
+
Alias for <a href="Hash.html#M000755">rand_value</a>!
|
115
115
|
</p>
|
116
116
|
</div>
|
117
117
|
</div>
|
118
118
|
<div class="method">
|
119
119
|
<div class="title">
|
120
|
-
<a name="
|
120
|
+
<a name="M000757"></a><b>pick</b>()
|
121
121
|
</div>
|
122
122
|
<div class="description">
|
123
123
|
<p>
|
124
|
-
Alias for <a href="Hash.html#
|
124
|
+
Alias for <a href="Hash.html#M000755">rand_value</a>!
|
125
125
|
</p>
|
126
126
|
</div>
|
127
127
|
</div>
|
128
128
|
<div class="method">
|
129
129
|
<div class="title">
|
130
|
-
<a name="
|
130
|
+
<a name="M000751"></a><b>pick_key</b>()
|
131
131
|
</div>
|
132
132
|
<div class="description">
|
133
133
|
<p>
|
134
|
-
Alias for <a href="Hash.html#
|
134
|
+
Alias for <a href="Hash.html#M000749">rand_key</a>!
|
135
135
|
</p>
|
136
136
|
</div>
|
137
137
|
</div>
|
138
138
|
<div class="method">
|
139
139
|
<div class="title">
|
140
|
-
<a name="
|
140
|
+
<a name="M000754"></a><b>pick_pair</b>()
|
141
141
|
</div>
|
142
142
|
<div class="description">
|
143
143
|
<p>
|
144
|
-
Alias for <a href="Hash.html#
|
144
|
+
Alias for <a href="Hash.html#M000752">rand_pair</a>!
|
145
145
|
</p>
|
146
146
|
</div>
|
147
147
|
</div>
|
148
148
|
<div class="method">
|
149
149
|
<div class="title">
|
150
|
-
<a name="
|
150
|
+
<a name="M000749"></a><b>rand_key</b>()
|
151
151
|
</div>
|
152
152
|
<div class="description">
|
153
153
|
<p>
|
@@ -158,8 +158,8 @@ Returns a random key.
|
|
158
158
|
</pre>
|
159
159
|
</div>
|
160
160
|
<div class="sourcecode">
|
161
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
162
|
-
<div id="
|
161
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000749_source')" id="l_M000749_source">show source</a> ]</p>
|
162
|
+
<div id="M000749_source" class="dyn-source">
|
163
163
|
<pre>
|
164
164
|
<span class="ruby-comment cmt"># File lib/more/facets/random.rb, line 221</span>
|
165
165
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rand_key</span>
|
@@ -171,7 +171,7 @@ Returns a random key.
|
|
171
171
|
</div>
|
172
172
|
<div class="method">
|
173
173
|
<div class="title">
|
174
|
-
<a name="
|
174
|
+
<a name="M000750"></a><b>rand_key!</b>()
|
175
175
|
</div>
|
176
176
|
<div class="description">
|
177
177
|
<p>
|
@@ -185,11 +185,11 @@ Delete a random key-value pair, returning the key.
|
|
185
185
|
</div>
|
186
186
|
<div class="aka">
|
187
187
|
This method is also aliased as
|
188
|
-
<a href="Hash.html#
|
188
|
+
<a href="Hash.html#M000751">pick_key</a>
|
189
189
|
</div>
|
190
190
|
<div class="sourcecode">
|
191
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
192
|
-
<div id="
|
191
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000750_source')" id="l_M000750_source">show source</a> ]</p>
|
192
|
+
<div id="M000750_source" class="dyn-source">
|
193
193
|
<pre>
|
194
194
|
<span class="ruby-comment cmt"># File lib/more/facets/random.rb, line 231</span>
|
195
195
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rand_key!</span>
|
@@ -203,7 +203,7 @@ Delete a random key-value pair, returning the key.
|
|
203
203
|
</div>
|
204
204
|
<div class="method">
|
205
205
|
<div class="title">
|
206
|
-
<a name="
|
206
|
+
<a name="M000752"></a><b>rand_pair</b>()
|
207
207
|
</div>
|
208
208
|
<div class="description">
|
209
209
|
<p>
|
@@ -214,8 +214,8 @@ Returns a random key-value pair.
|
|
214
214
|
</pre>
|
215
215
|
</div>
|
216
216
|
<div class="sourcecode">
|
217
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
218
|
-
<div id="
|
217
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000752_source')" id="l_M000752_source">show source</a> ]</p>
|
218
|
+
<div id="M000752_source" class="dyn-source">
|
219
219
|
<pre>
|
220
220
|
<span class="ruby-comment cmt"># File lib/more/facets/random.rb, line 243</span>
|
221
221
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rand_pair</span>
|
@@ -228,7 +228,7 @@ Returns a random key-value pair.
|
|
228
228
|
</div>
|
229
229
|
<div class="method">
|
230
230
|
<div class="title">
|
231
|
-
<a name="
|
231
|
+
<a name="M000753"></a><b>rand_pair!</b>()
|
232
232
|
</div>
|
233
233
|
<div class="description">
|
234
234
|
<p>
|
@@ -242,11 +242,11 @@ Deletes a random key-value pair and returns that pair.
|
|
242
242
|
</div>
|
243
243
|
<div class="aka">
|
244
244
|
This method is also aliased as
|
245
|
-
<a href="Hash.html#
|
245
|
+
<a href="Hash.html#M000754">pick_pair</a>
|
246
246
|
</div>
|
247
247
|
<div class="sourcecode">
|
248
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
249
|
-
<div id="
|
248
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000753_source')" id="l_M000753_source">show source</a> ]</p>
|
249
|
+
<div id="M000753_source" class="dyn-source">
|
250
250
|
<pre>
|
251
251
|
<span class="ruby-comment cmt"># File lib/more/facets/random.rb, line 254</span>
|
252
252
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rand_pair!</span>
|
@@ -260,7 +260,7 @@ Deletes a random key-value pair and returns that pair.
|
|
260
260
|
</div>
|
261
261
|
<div class="method">
|
262
262
|
<div class="title">
|
263
|
-
<a name="
|
263
|
+
<a name="M000755"></a><b>rand_value</b>()
|
264
264
|
</div>
|
265
265
|
<div class="description">
|
266
266
|
<p>
|
@@ -273,11 +273,11 @@ Returns a random hash value.
|
|
273
273
|
</div>
|
274
274
|
<div class="aka">
|
275
275
|
This method is also aliased as
|
276
|
-
<a href="Hash.html#
|
276
|
+
<a href="Hash.html#M000758">at_rand</a>
|
277
277
|
</div>
|
278
278
|
<div class="sourcecode">
|
279
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
280
|
-
<div id="
|
279
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000755_source')" id="l_M000755_source">show source</a> ]</p>
|
280
|
+
<div id="M000755_source" class="dyn-source">
|
281
281
|
<pre>
|
282
282
|
<span class="ruby-comment cmt"># File lib/more/facets/random.rb, line 267</span>
|
283
283
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rand_value</span>
|
@@ -289,7 +289,7 @@ Returns a random hash value.
|
|
289
289
|
</div>
|
290
290
|
<div class="method">
|
291
291
|
<div class="title">
|
292
|
-
<a name="
|
292
|
+
<a name="M000756"></a><b>rand_value!</b>()
|
293
293
|
</div>
|
294
294
|
<div class="description">
|
295
295
|
<p>
|
@@ -303,12 +303,12 @@ Deletes a random key-value pair and returns the value.
|
|
303
303
|
</div>
|
304
304
|
<div class="aka">
|
305
305
|
This method is also aliased as
|
306
|
-
<a href="Hash.html#
|
307
|
-
<a href="Hash.html#
|
306
|
+
<a href="Hash.html#M000757">pick</a>
|
307
|
+
<a href="Hash.html#M000759">at_rand!</a>
|
308
308
|
</div>
|
309
309
|
<div class="sourcecode">
|
310
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
311
|
-
<div id="
|
310
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000756_source')" id="l_M000756_source">show source</a> ]</p>
|
311
|
+
<div id="M000756_source" class="dyn-source">
|
312
312
|
<pre>
|
313
313
|
<span class="ruby-comment cmt"># File lib/more/facets/random.rb, line 277</span>
|
314
314
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rand_value!</span>
|
@@ -322,7 +322,7 @@ Deletes a random key-value pair and returns the value.
|
|
322
322
|
</div>
|
323
323
|
<div class="method">
|
324
324
|
<div class="title">
|
325
|
-
<a name="
|
325
|
+
<a name="M000760"></a><b>shuffle</b>()
|
326
326
|
</div>
|
327
327
|
<div class="description">
|
328
328
|
<p>
|
@@ -335,8 +335,8 @@ order.
|
|
335
335
|
</pre>
|
336
336
|
</div>
|
337
337
|
<div class="sourcecode">
|
338
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
339
|
-
<div id="
|
338
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000760_source')" id="l_M000760_source">show source</a> ]</p>
|
339
|
+
<div id="M000760_source" class="dyn-source">
|
340
340
|
<pre>
|
341
341
|
<span class="ruby-comment cmt"># File lib/more/facets/random.rb, line 294</span>
|
342
342
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">shuffle</span>
|
@@ -348,7 +348,7 @@ order.
|
|
348
348
|
</div>
|
349
349
|
<div class="method">
|
350
350
|
<div class="title">
|
351
|
-
<a name="
|
351
|
+
<a name="M000761"></a><b>shuffle!</b>()
|
352
352
|
</div>
|
353
353
|
<div class="description">
|
354
354
|
<p>
|
@@ -361,8 +361,8 @@ Destructive shuffle_hash. Arrange the values in a new random order.
|
|
361
361
|
</pre>
|
362
362
|
</div>
|
363
363
|
<div class="sourcecode">
|
364
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
365
|
-
<div id="
|
364
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000761_source')" id="l_M000761_source">show source</a> ]</p>
|
365
|
+
<div id="M000761_source" class="dyn-source">
|
366
366
|
<pre>
|
367
367
|
<span class="ruby-comment cmt"># File lib/more/facets/random.rb, line 305</span>
|
368
368
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">shuffle!</span>
|