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
@@ -75,8 +75,8 @@
|
|
75
75
|
|
76
76
|
<div class="sectiontitle">Methods</div>
|
77
77
|
<ul>
|
78
|
-
<li><a href="#
|
79
|
-
<li><a href="#
|
78
|
+
<li><a href="#M000596">root?</a></li>
|
79
|
+
<li><a href="#M000597">root?</a></li>
|
80
80
|
</ul>
|
81
81
|
|
82
82
|
|
@@ -87,7 +87,7 @@
|
|
87
87
|
<div class="sectiontitle">Public Instance methods</div>
|
88
88
|
<div class="method">
|
89
89
|
<div class="title">
|
90
|
-
<a name="
|
90
|
+
<a name="M000596"></a><b>root?</b>(dir=nil)
|
91
91
|
</div>
|
92
92
|
<div class="description">
|
93
93
|
<p>
|
@@ -98,8 +98,8 @@ Is the specified directory the root directory?
|
|
98
98
|
</pre>
|
99
99
|
</div>
|
100
100
|
<div class="sourcecode">
|
101
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
102
|
-
<div id="
|
101
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000596_source')" id="l_M000596_source">show source</a> ]</p>
|
102
|
+
<div id="M000596_source" class="dyn-source">
|
103
103
|
<pre>
|
104
104
|
<span class="ruby-comment cmt"># File lib/core/facets/filetest/root.rb, line 9</span>
|
105
105
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">root?</span>(<span class="ruby-identifier">dir</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -114,7 +114,7 @@ Is the specified directory the root directory?
|
|
114
114
|
</div>
|
115
115
|
<div class="method">
|
116
116
|
<div class="title">
|
117
|
-
<a name="
|
117
|
+
<a name="M000597"></a><b>root?</b>(dir=nil)
|
118
118
|
</div>
|
119
119
|
<div class="description">
|
120
120
|
<p>
|
@@ -125,8 +125,8 @@ Is the specified directory the root directory?
|
|
125
125
|
</pre>
|
126
126
|
</div>
|
127
127
|
<div class="sourcecode">
|
128
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
129
|
-
<div id="
|
128
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000597_source')" id="l_M000597_source">show source</a> ]</p>
|
129
|
+
<div id="M000597_source" class="dyn-source">
|
130
130
|
<pre>
|
131
131
|
<span class="ruby-comment cmt"># File lib/core/facets/filetest/root.rb, line 9</span>
|
132
132
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">root?</span>(<span class="ruby-identifier">dir</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -89,14 +89,14 @@ require ‘facets/numeric/round‘
|
|
89
89
|
|
90
90
|
<div class="sectiontitle">Methods</div>
|
91
91
|
<ul>
|
92
|
-
<li><a href="#
|
93
|
-
<li><a href="#
|
94
|
-
<li><a href="#
|
95
|
-
<li><a href="#
|
96
|
-
<li><a href="#
|
97
|
-
<li><a href="#
|
98
|
-
<li><a href="#
|
99
|
-
<li><a href="#
|
92
|
+
<li><a href="#M000369">round_at</a></li>
|
93
|
+
<li><a href="#M000375">round_at</a></li>
|
94
|
+
<li><a href="#M000371">round_at</a></li>
|
95
|
+
<li><a href="#M000373">round_at</a></li>
|
96
|
+
<li><a href="#M000372">round_to</a></li>
|
97
|
+
<li><a href="#M000374">round_to</a></li>
|
98
|
+
<li><a href="#M000370">round_to</a></li>
|
99
|
+
<li><a href="#M000376">round_to</a></li>
|
100
100
|
</ul>
|
101
101
|
|
102
102
|
|
@@ -107,11 +107,11 @@ require ‘facets/numeric/round‘
|
|
107
107
|
<div class="sectiontitle">Public Instance methods</div>
|
108
108
|
<div class="method">
|
109
109
|
<div class="title">
|
110
|
-
<a name="
|
110
|
+
<a name="M000369"></a><b>round_at</b>( d )
|
111
111
|
</div>
|
112
112
|
<div class="sourcecode">
|
113
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
114
|
-
<div id="
|
113
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000369_source')" id="l_M000369_source">show source</a> ]</p>
|
114
|
+
<div id="M000369_source" class="dyn-source">
|
115
115
|
<pre>
|
116
116
|
<span class="ruby-comment cmt"># File lib/core/facets/numeric/round.rb, line 41</span>
|
117
117
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">round_at</span>( <span class="ruby-identifier">d</span> ) <span class="ruby-comment cmt">#d=0</span>
|
@@ -123,7 +123,7 @@ require ‘facets/numeric/round‘
|
|
123
123
|
</div>
|
124
124
|
<div class="method">
|
125
125
|
<div class="title">
|
126
|
-
<a name="
|
126
|
+
<a name="M000375"></a><b>round_at</b>( d )
|
127
127
|
</div>
|
128
128
|
<div class="description">
|
129
129
|
<p>
|
@@ -139,8 +139,8 @@ Rounds to the given decimal position.
|
|
139
139
|
</pre>
|
140
140
|
</div>
|
141
141
|
<div class="sourcecode">
|
142
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
143
|
-
<div id="
|
142
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000375_source')" id="l_M000375_source">show source</a> ]</p>
|
143
|
+
<div id="M000375_source" class="dyn-source">
|
144
144
|
<pre>
|
145
145
|
<span class="ruby-comment cmt"># File lib/core/facets/float/round.rb, line 17</span>
|
146
146
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">round_at</span>( <span class="ruby-identifier">d</span> ) <span class="ruby-comment cmt">#d=0</span>
|
@@ -152,11 +152,11 @@ Rounds to the given decimal position.
|
|
152
152
|
</div>
|
153
153
|
<div class="method">
|
154
154
|
<div class="title">
|
155
|
-
<a name="
|
155
|
+
<a name="M000371"></a><b>round_at</b>( d )
|
156
156
|
</div>
|
157
157
|
<div class="sourcecode">
|
158
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
159
|
-
<div id="
|
158
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000371_source')" id="l_M000371_source">show source</a> ]</p>
|
159
|
+
<div id="M000371_source" class="dyn-source">
|
160
160
|
<pre>
|
161
161
|
<span class="ruby-comment cmt"># File lib/core/facets/numeric/round.rb, line 41</span>
|
162
162
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">round_at</span>( <span class="ruby-identifier">d</span> ) <span class="ruby-comment cmt">#d=0</span>
|
@@ -168,7 +168,7 @@ Rounds to the given decimal position.
|
|
168
168
|
</div>
|
169
169
|
<div class="method">
|
170
170
|
<div class="title">
|
171
|
-
<a name="
|
171
|
+
<a name="M000373"></a><b>round_at</b>( d )
|
172
172
|
</div>
|
173
173
|
<div class="description">
|
174
174
|
<p>
|
@@ -184,8 +184,8 @@ Rounds to the given decimal position.
|
|
184
184
|
</pre>
|
185
185
|
</div>
|
186
186
|
<div class="sourcecode">
|
187
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
188
|
-
<div id="
|
187
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000373_source')" id="l_M000373_source">show source</a> ]</p>
|
188
|
+
<div id="M000373_source" class="dyn-source">
|
189
189
|
<pre>
|
190
190
|
<span class="ruby-comment cmt"># File lib/core/facets/float/round.rb, line 17</span>
|
191
191
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">round_at</span>( <span class="ruby-identifier">d</span> ) <span class="ruby-comment cmt">#d=0</span>
|
@@ -197,11 +197,11 @@ Rounds to the given decimal position.
|
|
197
197
|
</div>
|
198
198
|
<div class="method">
|
199
199
|
<div class="title">
|
200
|
-
<a name="
|
200
|
+
<a name="M000372"></a><b>round_to</b>( n )
|
201
201
|
</div>
|
202
202
|
<div class="sourcecode">
|
203
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
204
|
-
<div id="
|
203
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000372_source')" id="l_M000372_source">show source</a> ]</p>
|
204
|
+
<div id="M000372_source" class="dyn-source">
|
205
205
|
<pre>
|
206
206
|
<span class="ruby-comment cmt"># File lib/core/facets/numeric/round.rb, line 45</span>
|
207
207
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">round_to</span>( <span class="ruby-identifier">n</span> ) <span class="ruby-comment cmt">#n=1</span>
|
@@ -214,7 +214,7 @@ Rounds to the given decimal position.
|
|
214
214
|
</div>
|
215
215
|
<div class="method">
|
216
216
|
<div class="title">
|
217
|
-
<a name="
|
217
|
+
<a name="M000374"></a><b>round_to</b>( n )
|
218
218
|
</div>
|
219
219
|
<div class="description">
|
220
220
|
<p>
|
@@ -230,8 +230,8 @@ Rounds to the nearest _n_th degree.
|
|
230
230
|
</pre>
|
231
231
|
</div>
|
232
232
|
<div class="sourcecode">
|
233
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
234
|
-
<div id="
|
233
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000374_source')" id="l_M000374_source">show source</a> ]</p>
|
234
|
+
<div id="M000374_source" class="dyn-source">
|
235
235
|
<pre>
|
236
236
|
<span class="ruby-comment cmt"># File lib/core/facets/float/round.rb, line 30</span>
|
237
237
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">round_to</span>( <span class="ruby-identifier">n</span> ) <span class="ruby-comment cmt">#n=1</span>
|
@@ -244,11 +244,11 @@ Rounds to the nearest _n_th degree.
|
|
244
244
|
</div>
|
245
245
|
<div class="method">
|
246
246
|
<div class="title">
|
247
|
-
<a name="
|
247
|
+
<a name="M000370"></a><b>round_to</b>( n )
|
248
248
|
</div>
|
249
249
|
<div class="sourcecode">
|
250
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
251
|
-
<div id="
|
250
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000370_source')" id="l_M000370_source">show source</a> ]</p>
|
251
|
+
<div id="M000370_source" class="dyn-source">
|
252
252
|
<pre>
|
253
253
|
<span class="ruby-comment cmt"># File lib/core/facets/numeric/round.rb, line 45</span>
|
254
254
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">round_to</span>( <span class="ruby-identifier">n</span> ) <span class="ruby-comment cmt">#n=1</span>
|
@@ -261,7 +261,7 @@ Rounds to the nearest _n_th degree.
|
|
261
261
|
</div>
|
262
262
|
<div class="method">
|
263
263
|
<div class="title">
|
264
|
-
<a name="
|
264
|
+
<a name="M000376"></a><b>round_to</b>( n )
|
265
265
|
</div>
|
266
266
|
<div class="description">
|
267
267
|
<p>
|
@@ -277,8 +277,8 @@ Rounds to the nearest _n_th degree.
|
|
277
277
|
</pre>
|
278
278
|
</div>
|
279
279
|
<div class="sourcecode">
|
280
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
281
|
-
<div id="
|
280
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000376_source')" id="l_M000376_source">show source</a> ]</p>
|
281
|
+
<div id="M000376_source" class="dyn-source">
|
282
282
|
<pre>
|
283
283
|
<span class="ruby-comment cmt"># File lib/core/facets/float/round.rb, line 30</span>
|
284
284
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">round_to</span>( <span class="ruby-identifier">n</span> ) <span class="ruby-comment cmt">#n=1</span>
|
@@ -83,8 +83,8 @@ Object
|
|
83
83
|
|
84
84
|
<div class="sectiontitle">Methods</div>
|
85
85
|
<ul>
|
86
|
-
<li><a href="#
|
87
|
-
<li><a href="#
|
86
|
+
<li><a href="#M000015">new</a></li>
|
87
|
+
<li><a href="#M000016">new</a></li>
|
88
88
|
</ul>
|
89
89
|
|
90
90
|
|
@@ -140,11 +140,11 @@ Object
|
|
140
140
|
<div class="sectiontitle">Public Class methods</div>
|
141
141
|
<div class="method">
|
142
142
|
<div class="title">
|
143
|
-
<a name="
|
143
|
+
<a name="M000015"></a><b>new</b>(name, age, phone)
|
144
144
|
</div>
|
145
145
|
<div class="sourcecode">
|
146
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
147
|
-
<div id="
|
146
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000015_source')" id="l_M000015_source">show source</a> ]</p>
|
147
|
+
<div id="M000015_source" class="dyn-source">
|
148
148
|
<pre>
|
149
149
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_variables.rb, line 89</span>
|
150
150
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">age</span>, <span class="ruby-identifier">phone</span>)
|
@@ -156,11 +156,11 @@ Object
|
|
156
156
|
</div>
|
157
157
|
<div class="method">
|
158
158
|
<div class="title">
|
159
|
-
<a name="
|
159
|
+
<a name="M000016"></a><b>new</b>(name, age, phone)
|
160
160
|
</div>
|
161
161
|
<div class="sourcecode">
|
162
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
163
|
-
<div id="
|
162
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000016_source')" id="l_M000016_source">show source</a> ]</p>
|
163
|
+
<div id="M000016_source" class="dyn-source">
|
164
164
|
<pre>
|
165
165
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_variables.rb, line 89</span>
|
166
166
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">age</span>, <span class="ruby-identifier">phone</span>)
|
@@ -100,9 +100,9 @@ accorrding to the operation applied to it.
|
|
100
100
|
|
101
101
|
<div class="sectiontitle">Methods</div>
|
102
102
|
<ul>
|
103
|
-
<li><a href="#
|
104
|
-
<li><a href="#
|
105
|
-
<li><a href="#
|
103
|
+
<li><a href="#M000400">method_missing</a></li>
|
104
|
+
<li><a href="#M000398">new</a></li>
|
105
|
+
<li><a href="#M000399">to_proc</a></li>
|
106
106
|
</ul>
|
107
107
|
|
108
108
|
|
@@ -113,11 +113,11 @@ accorrding to the operation applied to it.
|
|
113
113
|
<div class="sectiontitle">Public Class methods</div>
|
114
114
|
<div class="method">
|
115
115
|
<div class="title">
|
116
|
-
<a name="
|
116
|
+
<a name="M000398"></a><b>new</b>(&function)
|
117
117
|
</div>
|
118
118
|
<div class="sourcecode">
|
119
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
120
|
-
<div id="
|
119
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000398_source')" id="l_M000398_source">show source</a> ]</p>
|
120
|
+
<div id="M000398_source" class="dyn-source">
|
121
121
|
<pre>
|
122
122
|
<span class="ruby-comment cmt"># File lib/core/facets/functor.rb, line 63</span>
|
123
123
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">function</span>)
|
@@ -130,7 +130,7 @@ accorrding to the operation applied to it.
|
|
130
130
|
<div class="sectiontitle">Public Instance methods</div>
|
131
131
|
<div class="method">
|
132
132
|
<div class="title">
|
133
|
-
<a name="
|
133
|
+
<a name="M000400"></a><b>method_missing</b>(op, *args, &blk)
|
134
134
|
</div>
|
135
135
|
<div class="description">
|
136
136
|
<p>
|
@@ -138,8 +138,8 @@ Any action against the functor is processesd by the function.
|
|
138
138
|
</p>
|
139
139
|
</div>
|
140
140
|
<div class="sourcecode">
|
141
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
142
|
-
<div id="
|
141
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000400_source')" id="l_M000400_source">show source</a> ]</p>
|
142
|
+
<div id="M000400_source" class="dyn-source">
|
143
143
|
<pre>
|
144
144
|
<span class="ruby-comment cmt"># File lib/core/facets/functor.rb, line 72</span>
|
145
145
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">method_missing</span>(<span class="ruby-identifier">op</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
@@ -151,11 +151,11 @@ Any action against the functor is processesd by the function.
|
|
151
151
|
</div>
|
152
152
|
<div class="method">
|
153
153
|
<div class="title">
|
154
|
-
<a name="
|
154
|
+
<a name="M000399"></a><b>to_proc</b>()
|
155
155
|
</div>
|
156
156
|
<div class="sourcecode">
|
157
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
158
|
-
<div id="
|
157
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000399_source')" id="l_M000399_source">show source</a> ]</p>
|
158
|
+
<div id="M000399_source" class="dyn-source">
|
159
159
|
<pre>
|
160
160
|
<span class="ruby-comment cmt"># File lib/core/facets/functor.rb, line 67</span>
|
161
161
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_proc</span>
|
@@ -79,7 +79,6 @@
|
|
79
79
|
<a href="../files/lib/core/facets/hash/weave_rb.html">lib/core/facets/hash/weave.rb</a>
|
80
80
|
<a href="../files/lib/core/facets/hash/swap_rb.html">lib/core/facets/hash/swap.rb</a>
|
81
81
|
<a href="../files/lib/core/facets/hash/to_struct_rb.html">lib/core/facets/hash/to_struct.rb</a>
|
82
|
-
<a href="../files/lib/core/facets/hash/symbolize_keys_rb.html">lib/core/facets/hash/symbolize_keys.rb</a>
|
83
82
|
<a href="../files/lib/core/facets/hash/join_rb.html">lib/core/facets/hash/join.rb</a>
|
84
83
|
<a href="../files/lib/core/facets/hash/slice_rb.html">lib/core/facets/hash/slice.rb</a>
|
85
84
|
<a href="../files/lib/core/facets/hash/rekey_rb.html">lib/core/facets/hash/rekey.rb</a>
|
@@ -106,7 +105,6 @@
|
|
106
105
|
<a href="../files/lib/core/facets/hash/weave_rb.html">lib/core/facets/hash/weave.rb</a>
|
107
106
|
<a href="../files/lib/core/facets/hash/swap_rb.html">lib/core/facets/hash/swap.rb</a>
|
108
107
|
<a href="../files/lib/core/facets/hash/to_struct_rb.html">lib/core/facets/hash/to_struct.rb</a>
|
109
|
-
<a href="../files/lib/core/facets/hash/symbolize_keys_rb.html">lib/core/facets/hash/symbolize_keys.rb</a>
|
110
108
|
<a href="../files/lib/core/facets/hash/join_rb.html">lib/core/facets/hash/join.rb</a>
|
111
109
|
<a href="../files/lib/core/facets/hash/slice_rb.html">lib/core/facets/hash/slice.rb</a>
|
112
110
|
<a href="../files/lib/core/facets/hash/rekey_rb.html">lib/core/facets/hash/rekey.rb</a>
|
@@ -137,125 +135,109 @@ Object
|
|
137
135
|
|
138
136
|
<div class="sectiontitle">Methods</div>
|
139
137
|
<ul>
|
140
|
-
<li><a href="#
|
141
|
-
<li><a href="#
|
142
|
-
<li><a href="#
|
143
|
-
<li><a href="#
|
144
|
-
<li><a href="#
|
145
|
-
<li><a href="#
|
146
|
-
<li><a href="#
|
147
|
-
<li><a href="#
|
148
|
-
<li><a href="#
|
149
|
-
<li><a href="#
|
150
|
-
<li><a href="#
|
151
|
-
<li><a href="#
|
152
|
-
<li><a href="#
|
153
|
-
<li><a href="#
|
154
|
-
<li><a href="#
|
155
|
-
<li><a href="#
|
156
|
-
<li><a href="#
|
157
|
-
<li><a href="#
|
158
|
-
<li><a href="#
|
159
|
-
<li><a href="#
|
160
|
-
<li><a href="#
|
161
|
-
<li><a href="#
|
162
|
-
<li><a href="#
|
163
|
-
<li><a href="#
|
164
|
-
<li><a href="#
|
165
|
-
<li><a href="#
|
166
|
-
<li><a href="#
|
167
|
-
<li><a href="#
|
168
|
-
<li><a href="#
|
169
|
-
<li><a href="#
|
170
|
-
<li><a href="#
|
171
|
-
<li><a href="#
|
172
|
-
<li><a href="#
|
173
|
-
<li><a href="#
|
174
|
-
<li><a href="#
|
175
|
-
<li><a href="#
|
176
|
-
<li><a href="#
|
177
|
-
<li><a href="#
|
178
|
-
<li><a href="#
|
179
|
-
<li><a href="#
|
180
|
-
<li><a href="#
|
181
|
-
<li><a href="#
|
182
|
-
<li><a href="#
|
183
|
-
<li><a href="#
|
184
|
-
<li><a href="#
|
185
|
-
<li><a href="#
|
186
|
-
<li><a href="#
|
187
|
-
<li><a href="#
|
188
|
-
<li><a href="#
|
189
|
-
<li><a href="#
|
190
|
-
<li><a href="#
|
191
|
-
<li><a href="#
|
192
|
-
<li><a href="#
|
193
|
-
<li><a href="#
|
194
|
-
<li><a href="#
|
195
|
-
<li><a href="#
|
196
|
-
<li><a href="#
|
197
|
-
<li><a href="#
|
198
|
-
<li><a href="#
|
199
|
-
<li><a href="#
|
200
|
-
<li><a href="#
|
201
|
-
<li><a href="#
|
202
|
-
<li><a href="#
|
203
|
-
<li><a href="#
|
204
|
-
<li><a href="#
|
205
|
-
<li><a href="#
|
206
|
-
<li><a href="#
|
207
|
-
<li><a href="#
|
208
|
-
<li><a href="#
|
209
|
-
<li><a href="#
|
210
|
-
<li><a href="#
|
211
|
-
<li><a href="#
|
212
|
-
<li><a href="#
|
213
|
-
<li><a href="#
|
214
|
-
<li><a href="#
|
215
|
-
<li><a href="#
|
216
|
-
<li><a href="#
|
217
|
-
<li><a href="#
|
218
|
-
<li><a href="#
|
219
|
-
<li><a href="#
|
220
|
-
<li><a href="#
|
221
|
-
<li><a href="#
|
222
|
-
<li><a href="#
|
223
|
-
<li><a href="#
|
224
|
-
<li><a href="#
|
225
|
-
<li><a href="#
|
226
|
-
<li><a href="#
|
227
|
-
<li><a href="#
|
228
|
-
<li><a href="#
|
229
|
-
<li><a href="#
|
230
|
-
<li><a href="#
|
231
|
-
<li><a href="#
|
232
|
-
<li><a href="#
|
233
|
-
<li><a href="#
|
234
|
-
<li><a href="#
|
235
|
-
<li><a href="#
|
236
|
-
<li><a href="#
|
237
|
-
<li><a href="#
|
238
|
-
<li><a href="#
|
239
|
-
<li><a href="#
|
240
|
-
<li><a href="#
|
241
|
-
<li><a href="#
|
242
|
-
<li><a href="#
|
243
|
-
<li><a href="#M000152">traverse</a></li>
|
244
|
-
<li><a href="#M000211">traverse</a></li>
|
245
|
-
<li><a href="#M000212">traverse!</a></li>
|
246
|
-
<li><a href="#M000153">traverse!</a></li>
|
247
|
-
<li><a href="#M000134">update_each</a></li>
|
248
|
-
<li><a href="#M000193">update_each</a></li>
|
249
|
-
<li><a href="#M000135">update_keys</a></li>
|
250
|
-
<li><a href="#M000194">update_keys</a></li>
|
251
|
-
<li><a href="#M000136">update_values</a></li>
|
252
|
-
<li><a href="#M000195">update_values</a></li>
|
253
|
-
<li><a href="#M000233">weave</a></li>
|
254
|
-
<li><a href="#M000174">weave</a></li>
|
255
|
-
<li><a href="#M000198">zipnew</a></li>
|
256
|
-
<li><a href="#M000139">zipnew</a></li>
|
257
|
-
<li><a href="#M000214">|</a></li>
|
258
|
-
<li><a href="#M000155">|</a></li>
|
138
|
+
<li><a href="#M000152">&</a></li>
|
139
|
+
<li><a href="#M000203">&</a></li>
|
140
|
+
<li><a href="#M000156">*</a></li>
|
141
|
+
<li><a href="#M000207">*</a></li>
|
142
|
+
<li><a href="#M000205">+</a></li>
|
143
|
+
<li><a href="#M000154">+</a></li>
|
144
|
+
<li><a href="#M000155">-</a></li>
|
145
|
+
<li><a href="#M000206">-</a></li>
|
146
|
+
<li><a href="#M000182"><<</a></li>
|
147
|
+
<li><a href="#M000131"><<</a></li>
|
148
|
+
<li><a href="#M000130">alias!</a></li>
|
149
|
+
<li><a href="#M000181">alias!</a></li>
|
150
|
+
<li><a href="#M000180">argumentize</a></li>
|
151
|
+
<li><a href="#M000231">argumentize</a></li>
|
152
|
+
<li><a href="#M000187">autonew</a></li>
|
153
|
+
<li><a href="#M000136">autonew</a></li>
|
154
|
+
<li><a href="#M000167">collate</a></li>
|
155
|
+
<li><a href="#M000218">collate</a></li>
|
156
|
+
<li><a href="#M000168">collate!</a></li>
|
157
|
+
<li><a href="#M000219">collate!</a></li>
|
158
|
+
<li><a href="#M000169">delete_unless</a></li>
|
159
|
+
<li><a href="#M000220">delete_unless</a></li>
|
160
|
+
<li><a href="#M000170">delete_values</a></li>
|
161
|
+
<li><a href="#M000221">delete_values</a></li>
|
162
|
+
<li><a href="#M000222">delete_values_at</a></li>
|
163
|
+
<li><a href="#M000171">delete_values_at</a></li>
|
164
|
+
<li><a href="#M000215">diff</a></li>
|
165
|
+
<li><a href="#M000164">diff</a></li>
|
166
|
+
<li><a href="#M000146">each_with_key</a></li>
|
167
|
+
<li><a href="#M000197">each_with_key</a></li>
|
168
|
+
<li><a href="#M000140">except</a></li>
|
169
|
+
<li><a href="#M000191">except</a></li>
|
170
|
+
<li><a href="#M000192">except!</a></li>
|
171
|
+
<li><a href="#M000141">except!</a></li>
|
172
|
+
<li><a href="#M000166">graph!</a></li>
|
173
|
+
<li><a href="#M000217">graph!</a></li>
|
174
|
+
<li><a href="#M000193">has_keys?</a></li>
|
175
|
+
<li><a href="#M000142">has_keys?</a></li>
|
176
|
+
<li><a href="#M000144">has_only_keys?</a></li>
|
177
|
+
<li><a href="#M000195">has_only_keys?</a></li>
|
178
|
+
<li><a href="#M000162">insert</a></li>
|
179
|
+
<li><a href="#M000213">insert</a></li>
|
180
|
+
<li><a href="#M000157">inverse</a></li>
|
181
|
+
<li><a href="#M000208">inverse</a></li>
|
182
|
+
<li><a href="#M000175">join</a></li>
|
183
|
+
<li><a href="#M000226">join</a></li>
|
184
|
+
<li><a href="#M000194">keys?</a></li>
|
185
|
+
<li><a href="#M000143">keys?</a></li>
|
186
|
+
<li><a href="#M000216">mash!</a></li>
|
187
|
+
<li><a href="#M000165">mash!</a></li>
|
188
|
+
<li><a href="#M000196">only_keys?</a></li>
|
189
|
+
<li><a href="#M000145">only_keys?</a></li>
|
190
|
+
<li><a href="#M000158">recursive_merge</a></li>
|
191
|
+
<li><a href="#M000209">recursive_merge</a></li>
|
192
|
+
<li><a href="#M000210">recursive_merge!</a></li>
|
193
|
+
<li><a href="#M000159">recursive_merge!</a></li>
|
194
|
+
<li><a href="#M000189">recursively</a></li>
|
195
|
+
<li><a href="#M000138">recursively</a></li>
|
196
|
+
<li><a href="#M000190">recursively!</a></li>
|
197
|
+
<li><a href="#M000139">recursively!</a></li>
|
198
|
+
<li><a href="#M000229">rekey</a></li>
|
199
|
+
<li><a href="#M000178">rekey</a></li>
|
200
|
+
<li><a href="#M000230">rekey!</a></li>
|
201
|
+
<li><a href="#M000179">rekey!</a></li>
|
202
|
+
<li><a href="#M000135">replace_each</a></li>
|
203
|
+
<li><a href="#M000186">replace_each</a></li>
|
204
|
+
<li><a href="#M000147">reverse_merge</a></li>
|
205
|
+
<li><a href="#M000198">reverse_merge</a></li>
|
206
|
+
<li><a href="#M000148">reverse_merge!</a></li>
|
207
|
+
<li><a href="#M000199">reverse_merge!</a></li>
|
208
|
+
<li><a href="#M000200">reverse_update</a></li>
|
209
|
+
<li><a href="#M000149">reverse_update</a></li>
|
210
|
+
<li><a href="#M000163">select!</a></li>
|
211
|
+
<li><a href="#M000214">select!</a></li>
|
212
|
+
<li><a href="#M000176">slice</a></li>
|
213
|
+
<li><a href="#M000227">slice</a></li>
|
214
|
+
<li><a href="#M000228">slice!</a></li>
|
215
|
+
<li><a href="#M000177">slice!</a></li>
|
216
|
+
<li><a href="#M000224">swap!</a></li>
|
217
|
+
<li><a href="#M000173">swap!</a></li>
|
218
|
+
<li><a href="#M000129">to_h</a></li>
|
219
|
+
<li><a href="#M000160">to_proc</a></li>
|
220
|
+
<li><a href="#M000211">to_proc</a></li>
|
221
|
+
<li><a href="#M000212">to_proc_with_reponse</a></li>
|
222
|
+
<li><a href="#M000161">to_proc_with_reponse</a></li>
|
223
|
+
<li><a href="#M000174">to_struct</a></li>
|
224
|
+
<li><a href="#M000225">to_struct</a></li>
|
225
|
+
<li><a href="#M000201">traverse</a></li>
|
226
|
+
<li><a href="#M000150">traverse</a></li>
|
227
|
+
<li><a href="#M000151">traverse!</a></li>
|
228
|
+
<li><a href="#M000202">traverse!</a></li>
|
229
|
+
<li><a href="#M000183">update_each</a></li>
|
230
|
+
<li><a href="#M000132">update_each</a></li>
|
231
|
+
<li><a href="#M000133">update_keys</a></li>
|
232
|
+
<li><a href="#M000184">update_keys</a></li>
|
233
|
+
<li><a href="#M000185">update_values</a></li>
|
234
|
+
<li><a href="#M000134">update_values</a></li>
|
235
|
+
<li><a href="#M000223">weave</a></li>
|
236
|
+
<li><a href="#M000172">weave</a></li>
|
237
|
+
<li><a href="#M000137">zipnew</a></li>
|
238
|
+
<li><a href="#M000188">zipnew</a></li>
|
239
|
+
<li><a href="#M000153">|</a></li>
|
240
|
+
<li><a href="#M000204">|</a></li>
|
259
241
|
</ul>
|
260
242
|
|
261
243
|
|
@@ -266,7 +248,7 @@ Object
|
|
266
248
|
<div class="sectiontitle">Public Class methods</div>
|
267
249
|
<div class="method">
|
268
250
|
<div class="title">
|
269
|
-
<a name="
|
251
|
+
<a name="M000187"></a><b>autonew</b>(*args)
|
270
252
|
</div>
|
271
253
|
<div class="description">
|
272
254
|
<p>
|
@@ -290,8 +272,8 @@ CREDIT: Trans CREDIT: Jan Molic
|
|
290
272
|
</p>
|
291
273
|
</div>
|
292
274
|
<div class="sourcecode">
|
293
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
294
|
-
<div id="
|
275
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000187_source')" id="l_M000187_source">show source</a> ]</p>
|
276
|
+
<div id="M000187_source" class="dyn-source">
|
295
277
|
<pre>
|
296
278
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/autonew.rb, line 20</span>
|
297
279
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">autonew</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
@@ -305,7 +287,7 @@ CREDIT: Trans CREDIT: Jan Molic
|
|
305
287
|
</div>
|
306
288
|
<div class="method">
|
307
289
|
<div class="title">
|
308
|
-
<a name="
|
290
|
+
<a name="M000136"></a><b>autonew</b>(*args)
|
309
291
|
</div>
|
310
292
|
<div class="description">
|
311
293
|
<p>
|
@@ -329,8 +311,8 @@ CREDIT: Trans CREDIT: Jan Molic
|
|
329
311
|
</p>
|
330
312
|
</div>
|
331
313
|
<div class="sourcecode">
|
332
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
333
|
-
<div id="
|
314
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000136_source')" id="l_M000136_source">show source</a> ]</p>
|
315
|
+
<div id="M000136_source" class="dyn-source">
|
334
316
|
<pre>
|
335
317
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/autonew.rb, line 20</span>
|
336
318
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">autonew</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
@@ -344,7 +326,7 @@ CREDIT: Trans CREDIT: Jan Molic
|
|
344
326
|
</div>
|
345
327
|
<div class="method">
|
346
328
|
<div class="title">
|
347
|
-
<a name="
|
329
|
+
<a name="M000137"></a><b>zipnew</b>(keys,values)
|
348
330
|
</div>
|
349
331
|
<div class="description">
|
350
332
|
<p>
|
@@ -359,8 +341,8 @@ Creates a new hash from two arrays —a keys array and a values array.
|
|
359
341
|
</pre>
|
360
342
|
</div>
|
361
343
|
<div class="sourcecode">
|
362
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
363
|
-
<div id="
|
344
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000137_source')" id="l_M000137_source">show source</a> ]</p>
|
345
|
+
<div id="M000137_source" class="dyn-source">
|
364
346
|
<pre>
|
365
347
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/autonew.rb, line 35</span>
|
366
348
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">zipnew</span>(<span class="ruby-identifier">keys</span>,<span class="ruby-identifier">values</span>) <span class="ruby-comment cmt"># or some better name</span>
|
@@ -374,7 +356,7 @@ Creates a new hash from two arrays —a keys array and a values array.
|
|
374
356
|
</div>
|
375
357
|
<div class="method">
|
376
358
|
<div class="title">
|
377
|
-
<a name="
|
359
|
+
<a name="M000188"></a><b>zipnew</b>(keys,values)
|
378
360
|
</div>
|
379
361
|
<div class="description">
|
380
362
|
<p>
|
@@ -389,8 +371,8 @@ Creates a new hash from two arrays —a keys array and a values array.
|
|
389
371
|
</pre>
|
390
372
|
</div>
|
391
373
|
<div class="sourcecode">
|
392
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
393
|
-
<div id="
|
374
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000188_source')" id="l_M000188_source">show source</a> ]</p>
|
375
|
+
<div id="M000188_source" class="dyn-source">
|
394
376
|
<pre>
|
395
377
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/autonew.rb, line 35</span>
|
396
378
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">zipnew</span>(<span class="ruby-identifier">keys</span>,<span class="ruby-identifier">values</span>) <span class="ruby-comment cmt"># or some better name</span>
|
@@ -405,7 +387,7 @@ Creates a new hash from two arrays —a keys array and a values array.
|
|
405
387
|
<div class="sectiontitle">Public Instance methods</div>
|
406
388
|
<div class="method">
|
407
389
|
<div class="title">
|
408
|
-
<a name="
|
390
|
+
<a name="M000152"></a><b>&</b>(other)
|
409
391
|
</div>
|
410
392
|
<div class="description">
|
411
393
|
<p>
|
@@ -430,8 +412,8 @@ will return a nil value for a key not in the hash, but #& will not.
|
|
430
412
|
</pre>
|
431
413
|
</div>
|
432
414
|
<div class="sourcecode">
|
433
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
434
|
-
<div id="
|
415
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000152_source')" id="l_M000152_source">show source</a> ]</p>
|
416
|
+
<div id="M000152_source" class="dyn-source">
|
435
417
|
<pre>
|
436
418
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/op.rb, line 19</span>
|
437
419
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">&</span>(<span class="ruby-identifier">other</span>)
|
@@ -452,7 +434,7 @@ will return a nil value for a key not in the hash, but #& will not.
|
|
452
434
|
</div>
|
453
435
|
<div class="method">
|
454
436
|
<div class="title">
|
455
|
-
<a name="
|
437
|
+
<a name="M000203"></a><b>&</b>(other)
|
456
438
|
</div>
|
457
439
|
<div class="description">
|
458
440
|
<p>
|
@@ -477,8 +459,8 @@ will return a nil value for a key not in the hash, but #& will not.
|
|
477
459
|
</pre>
|
478
460
|
</div>
|
479
461
|
<div class="sourcecode">
|
480
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
481
|
-
<div id="
|
462
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000203_source')" id="l_M000203_source">show source</a> ]</p>
|
463
|
+
<div id="M000203_source" class="dyn-source">
|
482
464
|
<pre>
|
483
465
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/op.rb, line 19</span>
|
484
466
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">&</span>(<span class="ruby-identifier">other</span>)
|
@@ -499,7 +481,7 @@ will return a nil value for a key not in the hash, but #& will not.
|
|
499
481
|
</div>
|
500
482
|
<div class="method">
|
501
483
|
<div class="title">
|
502
|
-
<a name="
|
484
|
+
<a name="M000156"></a><b>*</b>(other)
|
503
485
|
</div>
|
504
486
|
<div class="description">
|
505
487
|
<p>
|
@@ -516,8 +498,8 @@ Like merge operator ’+’ but merges in reverse order.
|
|
516
498
|
</pre>
|
517
499
|
</div>
|
518
500
|
<div class="sourcecode">
|
519
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
520
|
-
<div id="
|
501
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000156_source')" id="l_M000156_source">show source</a> ]</p>
|
502
|
+
<div id="M000156_source" class="dyn-source">
|
521
503
|
<pre>
|
522
504
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/op.rb, line 80</span>
|
523
505
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">*</span>(<span class="ruby-identifier">other</span>)
|
@@ -529,7 +511,7 @@ Like merge operator ’+’ but merges in reverse order.
|
|
529
511
|
</div>
|
530
512
|
<div class="method">
|
531
513
|
<div class="title">
|
532
|
-
<a name="
|
514
|
+
<a name="M000207"></a><b>*</b>(other)
|
533
515
|
</div>
|
534
516
|
<div class="description">
|
535
517
|
<p>
|
@@ -546,8 +528,8 @@ Like merge operator ’+’ but merges in reverse order.
|
|
546
528
|
</pre>
|
547
529
|
</div>
|
548
530
|
<div class="sourcecode">
|
549
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
550
|
-
<div id="
|
531
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000207_source')" id="l_M000207_source">show source</a> ]</p>
|
532
|
+
<div id="M000207_source" class="dyn-source">
|
551
533
|
<pre>
|
552
534
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/op.rb, line 80</span>
|
553
535
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">*</span>(<span class="ruby-identifier">other</span>)
|
@@ -559,7 +541,7 @@ Like merge operator ’+’ but merges in reverse order.
|
|
559
541
|
</div>
|
560
542
|
<div class="method">
|
561
543
|
<div class="title">
|
562
|
-
<a name="
|
544
|
+
<a name="M000205"></a><b>+</b>(other)
|
563
545
|
</div>
|
564
546
|
<div class="description">
|
565
547
|
<p>
|
@@ -570,8 +552,8 @@ Operator for merge.
|
|
570
552
|
</pre>
|
571
553
|
</div>
|
572
554
|
<div class="sourcecode">
|
573
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
574
|
-
<div id="
|
555
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000205_source')" id="l_M000205_source">show source</a> ]</p>
|
556
|
+
<div id="M000205_source" class="dyn-source">
|
575
557
|
<pre>
|
576
558
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/op.rb, line 44</span>
|
577
559
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">+</span>(<span class="ruby-identifier">other</span>)
|
@@ -583,7 +565,7 @@ Operator for merge.
|
|
583
565
|
</div>
|
584
566
|
<div class="method">
|
585
567
|
<div class="title">
|
586
|
-
<a name="
|
568
|
+
<a name="M000154"></a><b>+</b>(other)
|
587
569
|
</div>
|
588
570
|
<div class="description">
|
589
571
|
<p>
|
@@ -594,8 +576,8 @@ Operator for merge.
|
|
594
576
|
</pre>
|
595
577
|
</div>
|
596
578
|
<div class="sourcecode">
|
597
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
598
|
-
<div id="
|
579
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000154_source')" id="l_M000154_source">show source</a> ]</p>
|
580
|
+
<div id="M000154_source" class="dyn-source">
|
599
581
|
<pre>
|
600
582
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/op.rb, line 44</span>
|
601
583
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">+</span>(<span class="ruby-identifier">other</span>)
|
@@ -607,7 +589,7 @@ Operator for merge.
|
|
607
589
|
</div>
|
608
590
|
<div class="method">
|
609
591
|
<div class="title">
|
610
|
-
<a name="
|
592
|
+
<a name="M000155"></a><b>-</b>(other)
|
611
593
|
</div>
|
612
594
|
<div class="description">
|
613
595
|
<p>
|
@@ -620,8 +602,8 @@ keys are removed.
|
|
620
602
|
</pre>
|
621
603
|
</div>
|
622
604
|
<div class="sourcecode">
|
623
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
624
|
-
<div id="
|
605
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000155_source')" id="l_M000155_source">show source</a> ]</p>
|
606
|
+
<div id="M000155_source" class="dyn-source">
|
625
607
|
<pre>
|
626
608
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/op.rb, line 54</span>
|
627
609
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">-</span>(<span class="ruby-identifier">other</span>)
|
@@ -645,7 +627,7 @@ keys are removed.
|
|
645
627
|
</div>
|
646
628
|
<div class="method">
|
647
629
|
<div class="title">
|
648
|
-
<a name="
|
630
|
+
<a name="M000206"></a><b>-</b>(other)
|
649
631
|
</div>
|
650
632
|
<div class="description">
|
651
633
|
<p>
|
@@ -658,8 +640,8 @@ keys are removed.
|
|
658
640
|
</pre>
|
659
641
|
</div>
|
660
642
|
<div class="sourcecode">
|
661
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
662
|
-
<div id="
|
643
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000206_source')" id="l_M000206_source">show source</a> ]</p>
|
644
|
+
<div id="M000206_source" class="dyn-source">
|
663
645
|
<pre>
|
664
646
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/op.rb, line 54</span>
|
665
647
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">-</span>(<span class="ruby-identifier">other</span>)
|
@@ -683,7 +665,7 @@ keys are removed.
|
|
683
665
|
</div>
|
684
666
|
<div class="method">
|
685
667
|
<div class="title">
|
686
|
-
<a name="
|
668
|
+
<a name="M000182"></a><b><<</b>(other)
|
687
669
|
</div>
|
688
670
|
<div class="description">
|
689
671
|
<p>
|
@@ -694,8 +676,8 @@ Can be used like update, or passed as two-element [key,value] array.
|
|
694
676
|
</pre>
|
695
677
|
</div>
|
696
678
|
<div class="sourcecode">
|
697
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
698
|
-
<div id="
|
679
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000182_source')" id="l_M000182_source">show source</a> ]</p>
|
680
|
+
<div id="M000182_source" class="dyn-source">
|
699
681
|
<pre>
|
700
682
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/update.rb, line 8</span>
|
701
683
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator"><<</span>(<span class="ruby-identifier">other</span>)
|
@@ -711,7 +693,7 @@ Can be used like update, or passed as two-element [key,value] array.
|
|
711
693
|
</div>
|
712
694
|
<div class="method">
|
713
695
|
<div class="title">
|
714
|
-
<a name="
|
696
|
+
<a name="M000131"></a><b><<</b>(other)
|
715
697
|
</div>
|
716
698
|
<div class="description">
|
717
699
|
<p>
|
@@ -722,8 +704,8 @@ Can be used like update, or passed as two-element [key,value] array.
|
|
722
704
|
</pre>
|
723
705
|
</div>
|
724
706
|
<div class="sourcecode">
|
725
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
726
|
-
<div id="
|
707
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000131_source')" id="l_M000131_source">show source</a> ]</p>
|
708
|
+
<div id="M000131_source" class="dyn-source">
|
727
709
|
<pre>
|
728
710
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/update.rb, line 8</span>
|
729
711
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator"><<</span>(<span class="ruby-identifier">other</span>)
|
@@ -739,7 +721,7 @@ Can be used like update, or passed as two-element [key,value] array.
|
|
739
721
|
</div>
|
740
722
|
<div class="method">
|
741
723
|
<div class="title">
|
742
|
-
<a name="
|
724
|
+
<a name="M000130"></a><b>alias!</b>(newkey, oldkey)
|
743
725
|
</div>
|
744
726
|
<div class="description">
|
745
727
|
<p>
|
@@ -774,8 +756,8 @@ TODO: Rename to aliaskey or something else.
|
|
774
756
|
</p>
|
775
757
|
</div>
|
776
758
|
<div class="sourcecode">
|
777
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
778
|
-
<div id="
|
759
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000130_source')" id="l_M000130_source">show source</a> ]</p>
|
760
|
+
<div id="M000130_source" class="dyn-source">
|
779
761
|
<pre>
|
780
762
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/alias.rb, line 25</span>
|
781
763
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">alias!</span>(<span class="ruby-identifier">newkey</span>, <span class="ruby-identifier">oldkey</span>)
|
@@ -788,7 +770,7 @@ TODO: Rename to aliaskey or something else.
|
|
788
770
|
</div>
|
789
771
|
<div class="method">
|
790
772
|
<div class="title">
|
791
|
-
<a name="
|
773
|
+
<a name="M000181"></a><b>alias!</b>(newkey, oldkey)
|
792
774
|
</div>
|
793
775
|
<div class="description">
|
794
776
|
<p>
|
@@ -823,8 +805,8 @@ TODO: Rename to aliaskey or something else.
|
|
823
805
|
</p>
|
824
806
|
</div>
|
825
807
|
<div class="sourcecode">
|
826
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
827
|
-
<div id="
|
808
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000181_source')" id="l_M000181_source">show source</a> ]</p>
|
809
|
+
<div id="M000181_source" class="dyn-source">
|
828
810
|
<pre>
|
829
811
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/alias.rb, line 25</span>
|
830
812
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">alias!</span>(<span class="ruby-identifier">newkey</span>, <span class="ruby-identifier">oldkey</span>)
|
@@ -837,7 +819,7 @@ TODO: Rename to aliaskey or something else.
|
|
837
819
|
</div>
|
838
820
|
<div class="method">
|
839
821
|
<div class="title">
|
840
|
-
<a name="
|
822
|
+
<a name="M000180"></a><b>argumentize</b>(args_field=nil)
|
841
823
|
</div>
|
842
824
|
<div class="description">
|
843
825
|
<p>
|
@@ -851,8 +833,8 @@ Turn a hash into arguments.
|
|
851
833
|
</pre>
|
852
834
|
</div>
|
853
835
|
<div class="sourcecode">
|
854
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
855
|
-
<div id="
|
836
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000180_source')" id="l_M000180_source">show source</a> ]</p>
|
837
|
+
<div id="M000180_source" class="dyn-source">
|
856
838
|
<pre>
|
857
839
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/argumentize.rb, line 10</span>
|
858
840
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">argumentize</span>(<span class="ruby-identifier">args_field</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -871,7 +853,7 @@ Turn a hash into arguments.
|
|
871
853
|
</div>
|
872
854
|
<div class="method">
|
873
855
|
<div class="title">
|
874
|
-
<a name="
|
856
|
+
<a name="M000231"></a><b>argumentize</b>(args_field=nil)
|
875
857
|
</div>
|
876
858
|
<div class="description">
|
877
859
|
<p>
|
@@ -885,8 +867,8 @@ Turn a hash into arguments.
|
|
885
867
|
</pre>
|
886
868
|
</div>
|
887
869
|
<div class="sourcecode">
|
888
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
889
|
-
<div id="
|
870
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000231_source')" id="l_M000231_source">show source</a> ]</p>
|
871
|
+
<div id="M000231_source" class="dyn-source">
|
890
872
|
<pre>
|
891
873
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/argumentize.rb, line 10</span>
|
892
874
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">argumentize</span>(<span class="ruby-identifier">args_field</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -905,7 +887,7 @@ Turn a hash into arguments.
|
|
905
887
|
</div>
|
906
888
|
<div class="method">
|
907
889
|
<div class="title">
|
908
|
-
<a name="
|
890
|
+
<a name="M000167"></a><b>collate</b>(other_hash)
|
909
891
|
</div>
|
910
892
|
<div class="description">
|
911
893
|
<p>
|
@@ -920,8 +902,8 @@ to be arrays representing the values from both hashes.
|
|
920
902
|
</pre>
|
921
903
|
</div>
|
922
904
|
<div class="sourcecode">
|
923
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
924
|
-
<div id="
|
905
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000167_source')" id="l_M000167_source">show source</a> ]</p>
|
906
|
+
<div id="M000167_source" class="dyn-source">
|
925
907
|
<pre>
|
926
908
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/collate.rb, line 11</span>
|
927
909
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">collate</span>(<span class="ruby-identifier">other_hash</span>)
|
@@ -933,7 +915,7 @@ to be arrays representing the values from both hashes.
|
|
933
915
|
</div>
|
934
916
|
<div class="method">
|
935
917
|
<div class="title">
|
936
|
-
<a name="
|
918
|
+
<a name="M000218"></a><b>collate</b>(other_hash)
|
937
919
|
</div>
|
938
920
|
<div class="description">
|
939
921
|
<p>
|
@@ -948,8 +930,8 @@ to be arrays representing the values from both hashes.
|
|
948
930
|
</pre>
|
949
931
|
</div>
|
950
932
|
<div class="sourcecode">
|
951
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
952
|
-
<div id="
|
933
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000218_source')" id="l_M000218_source">show source</a> ]</p>
|
934
|
+
<div id="M000218_source" class="dyn-source">
|
953
935
|
<pre>
|
954
936
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/collate.rb, line 11</span>
|
955
937
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">collate</span>(<span class="ruby-identifier">other_hash</span>)
|
@@ -961,17 +943,17 @@ to be arrays representing the values from both hashes.
|
|
961
943
|
</div>
|
962
944
|
<div class="method">
|
963
945
|
<div class="title">
|
964
|
-
<a name="
|
946
|
+
<a name="M000168"></a><b>collate!</b>(other_hash)
|
965
947
|
</div>
|
966
948
|
<div class="description">
|
967
949
|
<p>
|
968
|
-
The same as <a href="Hash.html#
|
950
|
+
The same as <a href="Hash.html#M000167">collate</a>, but modifies the
|
969
951
|
receiver in place.
|
970
952
|
</p>
|
971
953
|
</div>
|
972
954
|
<div class="sourcecode">
|
973
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
974
|
-
<div id="
|
955
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000168_source')" id="l_M000168_source">show source</a> ]</p>
|
956
|
+
<div id="M000168_source" class="dyn-source">
|
975
957
|
<pre>
|
976
958
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/collate.rb, line 17</span>
|
977
959
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">collate!</span>(<span class="ruby-identifier">other_hash</span>)
|
@@ -1006,17 +988,17 @@ receiver in place.
|
|
1006
988
|
</div>
|
1007
989
|
<div class="method">
|
1008
990
|
<div class="title">
|
1009
|
-
<a name="
|
991
|
+
<a name="M000219"></a><b>collate!</b>(other_hash)
|
1010
992
|
</div>
|
1011
993
|
<div class="description">
|
1012
994
|
<p>
|
1013
|
-
The same as <a href="Hash.html#
|
995
|
+
The same as <a href="Hash.html#M000167">collate</a>, but modifies the
|
1014
996
|
receiver in place.
|
1015
997
|
</p>
|
1016
998
|
</div>
|
1017
999
|
<div class="sourcecode">
|
1018
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1019
|
-
<div id="
|
1000
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000219_source')" id="l_M000219_source">show source</a> ]</p>
|
1001
|
+
<div id="M000219_source" class="dyn-source">
|
1020
1002
|
<pre>
|
1021
1003
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/collate.rb, line 17</span>
|
1022
1004
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">collate!</span>(<span class="ruby-identifier">other_hash</span>)
|
@@ -1051,7 +1033,7 @@ receiver in place.
|
|
1051
1033
|
</div>
|
1052
1034
|
<div class="method">
|
1053
1035
|
<div class="title">
|
1054
|
-
<a name="
|
1036
|
+
<a name="M000169"></a><b>delete_unless</b>( {|| ...}
|
1055
1037
|
</div>
|
1056
1038
|
<div class="description">
|
1057
1039
|
<p>
|
@@ -1062,8 +1044,8 @@ Inverse of delete_if.
|
|
1062
1044
|
</pre>
|
1063
1045
|
</div>
|
1064
1046
|
<div class="sourcecode">
|
1065
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1066
|
-
<div id="
|
1047
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000169_source')" id="l_M000169_source">show source</a> ]</p>
|
1048
|
+
<div id="M000169_source" class="dyn-source">
|
1067
1049
|
<pre>
|
1068
1050
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/delete.rb, line 11</span>
|
1069
1051
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete_unless</span> <span class="ruby-comment cmt">#:yield:</span>
|
@@ -1075,7 +1057,7 @@ Inverse of delete_if.
|
|
1075
1057
|
</div>
|
1076
1058
|
<div class="method">
|
1077
1059
|
<div class="title">
|
1078
|
-
<a name="
|
1060
|
+
<a name="M000220"></a><b>delete_unless</b>( {|| ...}
|
1079
1061
|
</div>
|
1080
1062
|
<div class="description">
|
1081
1063
|
<p>
|
@@ -1086,8 +1068,8 @@ Inverse of delete_if.
|
|
1086
1068
|
</pre>
|
1087
1069
|
</div>
|
1088
1070
|
<div class="sourcecode">
|
1089
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1090
|
-
<div id="
|
1071
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000220_source')" id="l_M000220_source">show source</a> ]</p>
|
1072
|
+
<div id="M000220_source" class="dyn-source">
|
1091
1073
|
<pre>
|
1092
1074
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/delete.rb, line 11</span>
|
1093
1075
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete_unless</span> <span class="ruby-comment cmt">#:yield:</span>
|
@@ -1099,7 +1081,7 @@ Inverse of delete_if.
|
|
1099
1081
|
</div>
|
1100
1082
|
<div class="method">
|
1101
1083
|
<div class="title">
|
1102
|
-
<a name="
|
1084
|
+
<a name="M000170"></a><b>delete_values</b>(*values)
|
1103
1085
|
</div>
|
1104
1086
|
<div class="description">
|
1105
1087
|
<p>
|
@@ -1115,8 +1097,8 @@ multiple keys.
|
|
1115
1097
|
</pre>
|
1116
1098
|
</div>
|
1117
1099
|
<div class="sourcecode">
|
1118
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1119
|
-
<div id="
|
1100
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000170_source')" id="l_M000170_source">show source</a> ]</p>
|
1101
|
+
<div id="M000170_source" class="dyn-source">
|
1120
1102
|
<pre>
|
1121
1103
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/delete.rb, line 24</span>
|
1122
1104
|
<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>)
|
@@ -1128,7 +1110,7 @@ multiple keys.
|
|
1128
1110
|
</div>
|
1129
1111
|
<div class="method">
|
1130
1112
|
<div class="title">
|
1131
|
-
<a name="
|
1113
|
+
<a name="M000221"></a><b>delete_values</b>(*values)
|
1132
1114
|
</div>
|
1133
1115
|
<div class="description">
|
1134
1116
|
<p>
|
@@ -1144,8 +1126,8 @@ multiple keys.
|
|
1144
1126
|
</pre>
|
1145
1127
|
</div>
|
1146
1128
|
<div class="sourcecode">
|
1147
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1148
|
-
<div id="
|
1129
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000221_source')" id="l_M000221_source">show source</a> ]</p>
|
1130
|
+
<div id="M000221_source" class="dyn-source">
|
1149
1131
|
<pre>
|
1150
1132
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/delete.rb, line 24</span>
|
1151
1133
|
<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>)
|
@@ -1157,7 +1139,7 @@ multiple keys.
|
|
1157
1139
|
</div>
|
1158
1140
|
<div class="method">
|
1159
1141
|
<div class="title">
|
1160
|
-
<a name="
|
1142
|
+
<a name="M000222"></a><b>delete_values_at</b>(*keys, &yld)
|
1161
1143
|
</div>
|
1162
1144
|
<div class="description">
|
1163
1145
|
<p>
|
@@ -1179,8 +1161,8 @@ This works niely with hash#[] and <a href="Hash.html">Hash</a>#[]= facets.
|
|
1179
1161
|
</pre>
|
1180
1162
|
</div>
|
1181
1163
|
<div class="sourcecode">
|
1182
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1183
|
-
<div id="
|
1164
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000222_source')" id="l_M000222_source">show source</a> ]</p>
|
1165
|
+
<div id="M000222_source" class="dyn-source">
|
1184
1166
|
<pre>
|
1185
1167
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/delete.rb, line 42</span>
|
1186
1168
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete_values_at</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">keys</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">yld</span>)
|
@@ -1192,7 +1174,7 @@ This works niely with hash#[] and <a href="Hash.html">Hash</a>#[]= facets.
|
|
1192
1174
|
</div>
|
1193
1175
|
<div class="method">
|
1194
1176
|
<div class="title">
|
1195
|
-
<a name="
|
1177
|
+
<a name="M000171"></a><b>delete_values_at</b>(*keys, &yld)
|
1196
1178
|
</div>
|
1197
1179
|
<div class="description">
|
1198
1180
|
<p>
|
@@ -1214,8 +1196,8 @@ This works niely with hash#[] and <a href="Hash.html">Hash</a>#[]= facets.
|
|
1214
1196
|
</pre>
|
1215
1197
|
</div>
|
1216
1198
|
<div class="sourcecode">
|
1217
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1218
|
-
<div id="
|
1199
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000171_source')" id="l_M000171_source">show source</a> ]</p>
|
1200
|
+
<div id="M000171_source" class="dyn-source">
|
1219
1201
|
<pre>
|
1220
1202
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/delete.rb, line 42</span>
|
1221
1203
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete_values_at</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">keys</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">yld</span>)
|
@@ -1227,7 +1209,7 @@ This works niely with hash#[] and <a href="Hash.html">Hash</a>#[]= facets.
|
|
1227
1209
|
</div>
|
1228
1210
|
<div class="method">
|
1229
1211
|
<div class="title">
|
1230
|
-
<a name="
|
1212
|
+
<a name="M000215"></a><b>diff</b>(hash)
|
1231
1213
|
</div>
|
1232
1214
|
<div class="description">
|
1233
1215
|
<p>
|
@@ -1235,8 +1217,8 @@ Difference comparison of two hashes.
|
|
1235
1217
|
</p>
|
1236
1218
|
</div>
|
1237
1219
|
<div class="sourcecode">
|
1238
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1239
|
-
<div id="
|
1220
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000215_source')" id="l_M000215_source">show source</a> ]</p>
|
1221
|
+
<div id="M000215_source" class="dyn-source">
|
1240
1222
|
<pre>
|
1241
1223
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/diff.rb, line 5</span>
|
1242
1224
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">diff</span>(<span class="ruby-identifier">hash</span>)
|
@@ -1250,7 +1232,7 @@ Difference comparison of two hashes.
|
|
1250
1232
|
</div>
|
1251
1233
|
<div class="method">
|
1252
1234
|
<div class="title">
|
1253
|
-
<a name="
|
1235
|
+
<a name="M000164"></a><b>diff</b>(hash)
|
1254
1236
|
</div>
|
1255
1237
|
<div class="description">
|
1256
1238
|
<p>
|
@@ -1258,8 +1240,8 @@ Difference comparison of two hashes.
|
|
1258
1240
|
</p>
|
1259
1241
|
</div>
|
1260
1242
|
<div class="sourcecode">
|
1261
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1262
|
-
<div id="
|
1243
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000164_source')" id="l_M000164_source">show source</a> ]</p>
|
1244
|
+
<div id="M000164_source" class="dyn-source">
|
1263
1245
|
<pre>
|
1264
1246
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/diff.rb, line 5</span>
|
1265
1247
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">diff</span>(<span class="ruby-identifier">hash</span>)
|
@@ -1273,7 +1255,7 @@ Difference comparison of two hashes.
|
|
1273
1255
|
</div>
|
1274
1256
|
<div class="method">
|
1275
1257
|
<div class="title">
|
1276
|
-
<a name="
|
1258
|
+
<a name="M000146"></a><b>each_with_key</b>( &yld )
|
1277
1259
|
</div>
|
1278
1260
|
<div class="description">
|
1279
1261
|
<p>
|
@@ -1285,8 +1267,8 @@ Each with key is like each_pair but reverses the order the parameters to
|
|
1285
1267
|
</pre>
|
1286
1268
|
</div>
|
1287
1269
|
<div class="sourcecode">
|
1288
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1289
|
-
<div id="
|
1270
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000146_source')" id="l_M000146_source">show source</a> ]</p>
|
1271
|
+
<div id="M000146_source" class="dyn-source">
|
1290
1272
|
<pre>
|
1291
1273
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/keys.rb, line 40</span>
|
1292
1274
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_with_key</span>( <span class="ruby-operator">&</span><span class="ruby-identifier">yld</span> )
|
@@ -1298,7 +1280,7 @@ Each with key is like each_pair but reverses the order the parameters to
|
|
1298
1280
|
</div>
|
1299
1281
|
<div class="method">
|
1300
1282
|
<div class="title">
|
1301
|
-
<a name="
|
1283
|
+
<a name="M000197"></a><b>each_with_key</b>( &yld )
|
1302
1284
|
</div>
|
1303
1285
|
<div class="description">
|
1304
1286
|
<p>
|
@@ -1310,8 +1292,8 @@ Each with key is like each_pair but reverses the order the parameters to
|
|
1310
1292
|
</pre>
|
1311
1293
|
</div>
|
1312
1294
|
<div class="sourcecode">
|
1313
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1314
|
-
<div id="
|
1295
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000197_source')" id="l_M000197_source">show source</a> ]</p>
|
1296
|
+
<div id="M000197_source" class="dyn-source">
|
1315
1297
|
<pre>
|
1316
1298
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/keys.rb, line 40</span>
|
1317
1299
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_with_key</span>( <span class="ruby-operator">&</span><span class="ruby-identifier">yld</span> )
|
@@ -1323,7 +1305,7 @@ Each with key is like each_pair but reverses the order the parameters to
|
|
1323
1305
|
</div>
|
1324
1306
|
<div class="method">
|
1325
1307
|
<div class="title">
|
1326
|
-
<a name="
|
1308
|
+
<a name="M000140"></a><b>except</b>(*less_keys)
|
1327
1309
|
</div>
|
1328
1310
|
<div class="description">
|
1329
1311
|
<p>
|
@@ -1331,8 +1313,8 @@ Returns a new hash less the given keys.
|
|
1331
1313
|
</p>
|
1332
1314
|
</div>
|
1333
1315
|
<div class="sourcecode">
|
1334
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1335
|
-
<div id="
|
1316
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000140_source')" id="l_M000140_source">show source</a> ]</p>
|
1317
|
+
<div id="M000140_source" class="dyn-source">
|
1336
1318
|
<pre>
|
1337
1319
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/except.rb, line 5</span>
|
1338
1320
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">except</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">less_keys</span>)
|
@@ -1344,7 +1326,7 @@ Returns a new hash less the given keys.
|
|
1344
1326
|
</div>
|
1345
1327
|
<div class="method">
|
1346
1328
|
<div class="title">
|
1347
|
-
<a name="
|
1329
|
+
<a name="M000191"></a><b>except</b>(*less_keys)
|
1348
1330
|
</div>
|
1349
1331
|
<div class="description">
|
1350
1332
|
<p>
|
@@ -1352,8 +1334,8 @@ Returns a new hash less the given keys.
|
|
1352
1334
|
</p>
|
1353
1335
|
</div>
|
1354
1336
|
<div class="sourcecode">
|
1355
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1356
|
-
<div id="
|
1337
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000191_source')" id="l_M000191_source">show source</a> ]</p>
|
1338
|
+
<div id="M000191_source" class="dyn-source">
|
1357
1339
|
<pre>
|
1358
1340
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/except.rb, line 5</span>
|
1359
1341
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">except</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">less_keys</span>)
|
@@ -1365,7 +1347,7 @@ Returns a new hash less the given keys.
|
|
1365
1347
|
</div>
|
1366
1348
|
<div class="method">
|
1367
1349
|
<div class="title">
|
1368
|
-
<a name="
|
1350
|
+
<a name="M000192"></a><b>except!</b>(*less_keys)
|
1369
1351
|
</div>
|
1370
1352
|
<div class="description">
|
1371
1353
|
<p>
|
@@ -1379,8 +1361,8 @@ keys removed.
|
|
1379
1361
|
</pre>
|
1380
1362
|
</div>
|
1381
1363
|
<div class="sourcecode">
|
1382
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1383
|
-
<div id="
|
1364
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000192_source')" id="l_M000192_source">show source</a> ]</p>
|
1365
|
+
<div id="M000192_source" class="dyn-source">
|
1384
1366
|
<pre>
|
1385
1367
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/except.rb, line 16</span>
|
1386
1368
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">except!</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">less_keys</span>)
|
@@ -1394,7 +1376,7 @@ keys removed.
|
|
1394
1376
|
</div>
|
1395
1377
|
<div class="method">
|
1396
1378
|
<div class="title">
|
1397
|
-
<a name="
|
1379
|
+
<a name="M000141"></a><b>except!</b>(*less_keys)
|
1398
1380
|
</div>
|
1399
1381
|
<div class="description">
|
1400
1382
|
<p>
|
@@ -1408,8 +1390,8 @@ keys removed.
|
|
1408
1390
|
</pre>
|
1409
1391
|
</div>
|
1410
1392
|
<div class="sourcecode">
|
1411
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1412
|
-
<div id="
|
1393
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000141_source')" id="l_M000141_source">show source</a> ]</p>
|
1394
|
+
<div id="M000141_source" class="dyn-source">
|
1413
1395
|
<pre>
|
1414
1396
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/except.rb, line 16</span>
|
1415
1397
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">except!</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">less_keys</span>)
|
@@ -1423,7 +1405,7 @@ keys removed.
|
|
1423
1405
|
</div>
|
1424
1406
|
<div class="method">
|
1425
1407
|
<div class="title">
|
1426
|
-
<a name="
|
1408
|
+
<a name="M000166"></a><b>graph!</b>(&yld)
|
1427
1409
|
</div>
|
1428
1410
|
<div class="description">
|
1429
1411
|
<p>
|
@@ -1433,7 +1415,7 @@ Alias for mash!
|
|
1433
1415
|
</div>
|
1434
1416
|
<div class="method">
|
1435
1417
|
<div class="title">
|
1436
|
-
<a name="
|
1418
|
+
<a name="M000217"></a><b>graph!</b>(&yld)
|
1437
1419
|
</div>
|
1438
1420
|
<div class="description">
|
1439
1421
|
<p>
|
@@ -1443,7 +1425,7 @@ Alias for mash!
|
|
1443
1425
|
</div>
|
1444
1426
|
<div class="method">
|
1445
1427
|
<div class="title">
|
1446
|
-
<a name="
|
1428
|
+
<a name="M000193"></a><b>has_keys?</b>(*check_keys)
|
1447
1429
|
</div>
|
1448
1430
|
<div class="description">
|
1449
1431
|
<p>
|
@@ -1458,8 +1440,8 @@ Returns true or false whether the hash contains the given keys.
|
|
1458
1440
|
</pre>
|
1459
1441
|
</div>
|
1460
1442
|
<div class="sourcecode">
|
1461
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1462
|
-
<div id="
|
1443
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000193_source')" id="l_M000193_source">show source</a> ]</p>
|
1444
|
+
<div id="M000193_source" class="dyn-source">
|
1463
1445
|
<pre>
|
1464
1446
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/keys.rb, line 12</span>
|
1465
1447
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">has_keys?</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">check_keys</span>)
|
@@ -1472,7 +1454,7 @@ Returns true or false whether the hash contains the given keys.
|
|
1472
1454
|
</div>
|
1473
1455
|
<div class="method">
|
1474
1456
|
<div class="title">
|
1475
|
-
<a name="
|
1457
|
+
<a name="M000142"></a><b>has_keys?</b>(*check_keys)
|
1476
1458
|
</div>
|
1477
1459
|
<div class="description">
|
1478
1460
|
<p>
|
@@ -1488,12 +1470,12 @@ Returns true or false whether the hash contains the given keys.
|
|
1488
1470
|
</div>
|
1489
1471
|
<div class="aka">
|
1490
1472
|
This method is also aliased as
|
1491
|
-
<a href="Hash.html#
|
1492
|
-
<a href="Hash.html#
|
1473
|
+
<a href="Hash.html#M000143">keys?</a>
|
1474
|
+
<a href="Hash.html#M000194">keys?</a>
|
1493
1475
|
</div>
|
1494
1476
|
<div class="sourcecode">
|
1495
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1496
|
-
<div id="
|
1477
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000142_source')" id="l_M000142_source">show source</a> ]</p>
|
1478
|
+
<div id="M000142_source" class="dyn-source">
|
1497
1479
|
<pre>
|
1498
1480
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/keys.rb, line 12</span>
|
1499
1481
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">has_keys?</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">check_keys</span>)
|
@@ -1506,7 +1488,7 @@ Returns true or false whether the hash contains the given keys.
|
|
1506
1488
|
</div>
|
1507
1489
|
<div class="method">
|
1508
1490
|
<div class="title">
|
1509
|
-
<a name="
|
1491
|
+
<a name="M000144"></a><b>has_only_keys?</b>(*check_keys)
|
1510
1492
|
</div>
|
1511
1493
|
<div class="description">
|
1512
1494
|
<p>
|
@@ -1521,9 +1503,14 @@ false.
|
|
1521
1503
|
CREDIT: Trans
|
1522
1504
|
</pre>
|
1523
1505
|
</div>
|
1506
|
+
<div class="aka">
|
1507
|
+
This method is also aliased as
|
1508
|
+
<a href="Hash.html#M000145">only_keys?</a>
|
1509
|
+
<a href="Hash.html#M000196">only_keys?</a>
|
1510
|
+
</div>
|
1524
1511
|
<div class="sourcecode">
|
1525
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1526
|
-
<div id="
|
1512
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000144_source')" id="l_M000144_source">show source</a> ]</p>
|
1513
|
+
<div id="M000144_source" class="dyn-source">
|
1527
1514
|
<pre>
|
1528
1515
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/keys.rb, line 28</span>
|
1529
1516
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">has_only_keys?</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">check_keys</span>)
|
@@ -1536,7 +1523,7 @@ false.
|
|
1536
1523
|
</div>
|
1537
1524
|
<div class="method">
|
1538
1525
|
<div class="title">
|
1539
|
-
<a name="
|
1526
|
+
<a name="M000195"></a><b>has_only_keys?</b>(*check_keys)
|
1540
1527
|
</div>
|
1541
1528
|
<div class="description">
|
1542
1529
|
<p>
|
@@ -1551,14 +1538,9 @@ false.
|
|
1551
1538
|
CREDIT: Trans
|
1552
1539
|
</pre>
|
1553
1540
|
</div>
|
1554
|
-
<div class="aka">
|
1555
|
-
This method is also aliased as
|
1556
|
-
<a href="Hash.html#M000147">only_keys?</a>
|
1557
|
-
<a href="Hash.html#M000206">only_keys?</a>
|
1558
|
-
</div>
|
1559
1541
|
<div class="sourcecode">
|
1560
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1561
|
-
<div id="
|
1542
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000195_source')" id="l_M000195_source">show source</a> ]</p>
|
1543
|
+
<div id="M000195_source" class="dyn-source">
|
1562
1544
|
<pre>
|
1563
1545
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/keys.rb, line 28</span>
|
1564
1546
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">has_only_keys?</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">check_keys</span>)
|
@@ -1571,7 +1553,7 @@ false.
|
|
1571
1553
|
</div>
|
1572
1554
|
<div class="method">
|
1573
1555
|
<div class="title">
|
1574
|
-
<a name="
|
1556
|
+
<a name="M000162"></a><b>insert</b>(name, value)
|
1575
1557
|
</div>
|
1576
1558
|
<div class="description">
|
1577
1559
|
<p>
|
@@ -1585,8 +1567,8 @@ TODO: Would store? be a better name?
|
|
1585
1567
|
</pre>
|
1586
1568
|
</div>
|
1587
1569
|
<div class="sourcecode">
|
1588
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1589
|
-
<div id="
|
1570
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000162_source')" id="l_M000162_source">show source</a> ]</p>
|
1571
|
+
<div id="M000162_source" class="dyn-source">
|
1590
1572
|
<pre>
|
1591
1573
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/insert.rb, line 10</span>
|
1592
1574
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">insert</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">value</span>)
|
@@ -1603,7 +1585,7 @@ TODO: Would store? be a better name?
|
|
1603
1585
|
</div>
|
1604
1586
|
<div class="method">
|
1605
1587
|
<div class="title">
|
1606
|
-
<a name="
|
1588
|
+
<a name="M000213"></a><b>insert</b>(name, value)
|
1607
1589
|
</div>
|
1608
1590
|
<div class="description">
|
1609
1591
|
<p>
|
@@ -1617,8 +1599,8 @@ TODO: Would store? be a better name?
|
|
1617
1599
|
</pre>
|
1618
1600
|
</div>
|
1619
1601
|
<div class="sourcecode">
|
1620
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1621
|
-
<div id="
|
1602
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000213_source')" id="l_M000213_source">show source</a> ]</p>
|
1603
|
+
<div id="M000213_source" class="dyn-source">
|
1622
1604
|
<pre>
|
1623
1605
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/insert.rb, line 10</span>
|
1624
1606
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">insert</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">value</span>)
|
@@ -1635,11 +1617,11 @@ TODO: Would store? be a better name?
|
|
1635
1617
|
</div>
|
1636
1618
|
<div class="method">
|
1637
1619
|
<div class="title">
|
1638
|
-
<a name="
|
1620
|
+
<a name="M000157"></a><b>inverse</b>()
|
1639
1621
|
</div>
|
1640
1622
|
<div class="description">
|
1641
1623
|
<p>
|
1642
|
-
Create a "true" <a href="Hash.html#
|
1624
|
+
Create a "true" <a href="Hash.html#M000157">inverse</a> hash by
|
1643
1625
|
storing mutliple values in Arrays.
|
1644
1626
|
</p>
|
1645
1627
|
<pre>
|
@@ -1654,8 +1636,8 @@ storing mutliple values in Arrays.
|
|
1654
1636
|
</pre>
|
1655
1637
|
</div>
|
1656
1638
|
<div class="sourcecode">
|
1657
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1658
|
-
<div id="
|
1639
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000157_source')" id="l_M000157_source">show source</a> ]</p>
|
1640
|
+
<div id="M000157_source" class="dyn-source">
|
1659
1641
|
<pre>
|
1660
1642
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/inverse.rb, line 14</span>
|
1661
1643
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inverse</span>
|
@@ -1675,11 +1657,11 @@ storing mutliple values in Arrays.
|
|
1675
1657
|
</div>
|
1676
1658
|
<div class="method">
|
1677
1659
|
<div class="title">
|
1678
|
-
<a name="
|
1660
|
+
<a name="M000208"></a><b>inverse</b>()
|
1679
1661
|
</div>
|
1680
1662
|
<div class="description">
|
1681
1663
|
<p>
|
1682
|
-
Create a "true" <a href="Hash.html#
|
1664
|
+
Create a "true" <a href="Hash.html#M000157">inverse</a> hash by
|
1683
1665
|
storing mutliple values in Arrays.
|
1684
1666
|
</p>
|
1685
1667
|
<pre>
|
@@ -1694,8 +1676,8 @@ storing mutliple values in Arrays.
|
|
1694
1676
|
</pre>
|
1695
1677
|
</div>
|
1696
1678
|
<div class="sourcecode">
|
1697
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1698
|
-
<div id="
|
1679
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000208_source')" id="l_M000208_source">show source</a> ]</p>
|
1680
|
+
<div id="M000208_source" class="dyn-source">
|
1699
1681
|
<pre>
|
1700
1682
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/inverse.rb, line 14</span>
|
1701
1683
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inverse</span>
|
@@ -1715,7 +1697,7 @@ storing mutliple values in Arrays.
|
|
1715
1697
|
</div>
|
1716
1698
|
<div class="method">
|
1717
1699
|
<div class="title">
|
1718
|
-
<a name="
|
1700
|
+
<a name="M000175"></a><b>join</b>(pair_divider='', elem_divider='')
|
1719
1701
|
</div>
|
1720
1702
|
<div class="description">
|
1721
1703
|
<p>
|
@@ -1726,8 +1708,8 @@ Like Array#join but specialized to <a href="Hash.html">Hash</a>.
|
|
1726
1708
|
</pre>
|
1727
1709
|
</div>
|
1728
1710
|
<div class="sourcecode">
|
1729
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1730
|
-
<div id="
|
1711
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000175_source')" id="l_M000175_source">show source</a> ]</p>
|
1712
|
+
<div id="M000175_source" class="dyn-source">
|
1731
1713
|
<pre>
|
1732
1714
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/join.rb, line 7</span>
|
1733
1715
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">join</span>(<span class="ruby-identifier">pair_divider</span>=<span class="ruby-value str">''</span>, <span class="ruby-identifier">elem_divider</span>=<span class="ruby-value str">''</span>)
|
@@ -1741,7 +1723,7 @@ Like Array#join but specialized to <a href="Hash.html">Hash</a>.
|
|
1741
1723
|
</div>
|
1742
1724
|
<div class="method">
|
1743
1725
|
<div class="title">
|
1744
|
-
<a name="
|
1726
|
+
<a name="M000226"></a><b>join</b>(pair_divider='', elem_divider='')
|
1745
1727
|
</div>
|
1746
1728
|
<div class="description">
|
1747
1729
|
<p>
|
@@ -1752,8 +1734,8 @@ Like Array#join but specialized to <a href="Hash.html">Hash</a>.
|
|
1752
1734
|
</pre>
|
1753
1735
|
</div>
|
1754
1736
|
<div class="sourcecode">
|
1755
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1756
|
-
<div id="
|
1737
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000226_source')" id="l_M000226_source">show source</a> ]</p>
|
1738
|
+
<div id="M000226_source" class="dyn-source">
|
1757
1739
|
<pre>
|
1758
1740
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/join.rb, line 7</span>
|
1759
1741
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">join</span>(<span class="ruby-identifier">pair_divider</span>=<span class="ruby-value str">''</span>, <span class="ruby-identifier">elem_divider</span>=<span class="ruby-value str">''</span>)
|
@@ -1767,7 +1749,7 @@ Like Array#join but specialized to <a href="Hash.html">Hash</a>.
|
|
1767
1749
|
</div>
|
1768
1750
|
<div class="method">
|
1769
1751
|
<div class="title">
|
1770
|
-
<a name="
|
1752
|
+
<a name="M000194"></a><b>keys?</b>(*check_keys)
|
1771
1753
|
</div>
|
1772
1754
|
<div class="description">
|
1773
1755
|
<p>
|
@@ -1777,7 +1759,7 @@ Alias for has_keys?
|
|
1777
1759
|
</div>
|
1778
1760
|
<div class="method">
|
1779
1761
|
<div class="title">
|
1780
|
-
<a name="
|
1762
|
+
<a name="M000143"></a><b>keys?</b>(*check_keys)
|
1781
1763
|
</div>
|
1782
1764
|
<div class="description">
|
1783
1765
|
<p>
|
@@ -1787,87 +1769,7 @@ Alias for has_keys?
|
|
1787
1769
|
</div>
|
1788
1770
|
<div class="method">
|
1789
1771
|
<div class="title">
|
1790
|
-
<a name="
|
1791
|
-
</div>
|
1792
|
-
<div class="description">
|
1793
|
-
<p>
|
1794
|
-
Alias for <a href="Hash.html#M000181">stringify_keys</a>
|
1795
|
-
</p>
|
1796
|
-
</div>
|
1797
|
-
</div>
|
1798
|
-
<div class="method">
|
1799
|
-
<div class="title">
|
1800
|
-
<a name="M000182"></a><b>keys_to_s</b>(&filter)
|
1801
|
-
</div>
|
1802
|
-
<div class="description">
|
1803
|
-
<p>
|
1804
|
-
Alias for <a href="Hash.html#M000181">stringify_keys</a>
|
1805
|
-
</p>
|
1806
|
-
</div>
|
1807
|
-
</div>
|
1808
|
-
<div class="method">
|
1809
|
-
<div class="title">
|
1810
|
-
<a name="M000184"></a><b>keys_to_s!</b>(&filter)
|
1811
|
-
</div>
|
1812
|
-
<div class="description">
|
1813
|
-
<p>
|
1814
|
-
Alias for <a href="Hash.html#M000181">stringify_keys</a>!
|
1815
|
-
</p>
|
1816
|
-
</div>
|
1817
|
-
</div>
|
1818
|
-
<div class="method">
|
1819
|
-
<div class="title">
|
1820
|
-
<a name="M000243"></a><b>keys_to_s!</b>(&filter)
|
1821
|
-
</div>
|
1822
|
-
<div class="description">
|
1823
|
-
<p>
|
1824
|
-
Alias for <a href="Hash.html#M000181">stringify_keys</a>!
|
1825
|
-
</p>
|
1826
|
-
</div>
|
1827
|
-
</div>
|
1828
|
-
<div class="method">
|
1829
|
-
<div class="title">
|
1830
|
-
<a name="M000178"></a><b>keys_to_sym</b>(&filter)
|
1831
|
-
</div>
|
1832
|
-
<div class="description">
|
1833
|
-
<p>
|
1834
|
-
Alias for <a href="Hash.html#M000177">symbolize_keys</a>
|
1835
|
-
</p>
|
1836
|
-
</div>
|
1837
|
-
</div>
|
1838
|
-
<div class="method">
|
1839
|
-
<div class="title">
|
1840
|
-
<a name="M000237"></a><b>keys_to_sym</b>(&filter)
|
1841
|
-
</div>
|
1842
|
-
<div class="description">
|
1843
|
-
<p>
|
1844
|
-
Alias for <a href="Hash.html#M000177">symbolize_keys</a>
|
1845
|
-
</p>
|
1846
|
-
</div>
|
1847
|
-
</div>
|
1848
|
-
<div class="method">
|
1849
|
-
<div class="title">
|
1850
|
-
<a name="M000180"></a><b>keys_to_sym!</b>(&filter)
|
1851
|
-
</div>
|
1852
|
-
<div class="description">
|
1853
|
-
<p>
|
1854
|
-
Alias for <a href="Hash.html#M000177">symbolize_keys</a>!
|
1855
|
-
</p>
|
1856
|
-
</div>
|
1857
|
-
</div>
|
1858
|
-
<div class="method">
|
1859
|
-
<div class="title">
|
1860
|
-
<a name="M000239"></a><b>keys_to_sym!</b>(&filter)
|
1861
|
-
</div>
|
1862
|
-
<div class="description">
|
1863
|
-
<p>
|
1864
|
-
Alias for <a href="Hash.html#M000177">symbolize_keys</a>!
|
1865
|
-
</p>
|
1866
|
-
</div>
|
1867
|
-
</div>
|
1868
|
-
<div class="method">
|
1869
|
-
<div class="title">
|
1870
|
-
<a name="M000226"></a><b>mash!</b>(&yld)
|
1772
|
+
<a name="M000216"></a><b>mash!</b>(&yld)
|
1871
1773
|
</div>
|
1872
1774
|
<div class="description">
|
1873
1775
|
<p>
|
@@ -1879,8 +1781,8 @@ In place version of mash.
|
|
1879
1781
|
</pre>
|
1880
1782
|
</div>
|
1881
1783
|
<div class="sourcecode">
|
1882
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1883
|
-
<div id="
|
1784
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000216_source')" id="l_M000216_source">show source</a> ]</p>
|
1785
|
+
<div id="M000216_source" class="dyn-source">
|
1884
1786
|
<pre>
|
1885
1787
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/mash.rb, line 10</span>
|
1886
1788
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mash!</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">yld</span>)
|
@@ -1892,7 +1794,7 @@ In place version of mash.
|
|
1892
1794
|
</div>
|
1893
1795
|
<div class="method">
|
1894
1796
|
<div class="title">
|
1895
|
-
<a name="
|
1797
|
+
<a name="M000165"></a><b>mash!</b>(&yld)
|
1896
1798
|
</div>
|
1897
1799
|
<div class="description">
|
1898
1800
|
<p>
|
@@ -1905,12 +1807,12 @@ In place version of mash.
|
|
1905
1807
|
</div>
|
1906
1808
|
<div class="aka">
|
1907
1809
|
This method is also aliased as
|
1908
|
-
<a href="Hash.html#
|
1909
|
-
<a href="Hash.html#
|
1810
|
+
<a href="Hash.html#M000166">graph!</a>
|
1811
|
+
<a href="Hash.html#M000217">graph!</a>
|
1910
1812
|
</div>
|
1911
1813
|
<div class="sourcecode">
|
1912
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1913
|
-
<div id="
|
1814
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000165_source')" id="l_M000165_source">show source</a> ]</p>
|
1815
|
+
<div id="M000165_source" class="dyn-source">
|
1914
1816
|
<pre>
|
1915
1817
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/mash.rb, line 10</span>
|
1916
1818
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mash!</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">yld</span>)
|
@@ -1922,7 +1824,7 @@ In place version of mash.
|
|
1922
1824
|
</div>
|
1923
1825
|
<div class="method">
|
1924
1826
|
<div class="title">
|
1925
|
-
<a name="
|
1827
|
+
<a name="M000196"></a><b>only_keys?</b>(*check_keys)
|
1926
1828
|
</div>
|
1927
1829
|
<div class="description">
|
1928
1830
|
<p>
|
@@ -1932,7 +1834,7 @@ Alias for has_only_keys?
|
|
1932
1834
|
</div>
|
1933
1835
|
<div class="method">
|
1934
1836
|
<div class="title">
|
1935
|
-
<a name="
|
1837
|
+
<a name="M000145"></a><b>only_keys?</b>(*check_keys)
|
1936
1838
|
</div>
|
1937
1839
|
<div class="description">
|
1938
1840
|
<p>
|
@@ -1942,17 +1844,17 @@ Alias for has_only_keys?
|
|
1942
1844
|
</div>
|
1943
1845
|
<div class="method">
|
1944
1846
|
<div class="title">
|
1945
|
-
<a name="
|
1847
|
+
<a name="M000158"></a><b>recursive_merge</b>(other)
|
1946
1848
|
</div>
|
1947
1849
|
<div class="description">
|
1948
1850
|
<p>
|
1949
|
-
Same as Hash#merge but <a href="Hash.html#
|
1851
|
+
Same as Hash#merge but <a href="Hash.html#M000138">recursively</a> merges
|
1950
1852
|
sub-hashes.
|
1951
1853
|
</p>
|
1952
1854
|
</div>
|
1953
1855
|
<div class="sourcecode">
|
1954
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1955
|
-
<div id="
|
1856
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000158_source')" id="l_M000158_source">show source</a> ]</p>
|
1857
|
+
<div id="M000158_source" class="dyn-source">
|
1956
1858
|
<pre>
|
1957
1859
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/recursive_merge.rb, line 5</span>
|
1958
1860
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recursive_merge</span>(<span class="ruby-identifier">other</span>)
|
@@ -1973,17 +1875,17 @@ sub-hashes.
|
|
1973
1875
|
</div>
|
1974
1876
|
<div class="method">
|
1975
1877
|
<div class="title">
|
1976
|
-
<a name="
|
1878
|
+
<a name="M000209"></a><b>recursive_merge</b>(other)
|
1977
1879
|
</div>
|
1978
1880
|
<div class="description">
|
1979
1881
|
<p>
|
1980
|
-
Same as Hash#merge but <a href="Hash.html#
|
1882
|
+
Same as Hash#merge but <a href="Hash.html#M000138">recursively</a> merges
|
1981
1883
|
sub-hashes.
|
1982
1884
|
</p>
|
1983
1885
|
</div>
|
1984
1886
|
<div class="sourcecode">
|
1985
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1986
|
-
<div id="
|
1887
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000209_source')" id="l_M000209_source">show source</a> ]</p>
|
1888
|
+
<div id="M000209_source" class="dyn-source">
|
1987
1889
|
<pre>
|
1988
1890
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/recursive_merge.rb, line 5</span>
|
1989
1891
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recursive_merge</span>(<span class="ruby-identifier">other</span>)
|
@@ -2004,17 +1906,17 @@ sub-hashes.
|
|
2004
1906
|
</div>
|
2005
1907
|
<div class="method">
|
2006
1908
|
<div class="title">
|
2007
|
-
<a name="
|
1909
|
+
<a name="M000210"></a><b>recursive_merge!</b>(other)
|
2008
1910
|
</div>
|
2009
1911
|
<div class="description">
|
2010
1912
|
<p>
|
2011
|
-
Same as Hash#merge! but <a href="Hash.html#
|
1913
|
+
Same as Hash#merge! but <a href="Hash.html#M000138">recursively</a> merges
|
2012
1914
|
sub-hashes.
|
2013
1915
|
</p>
|
2014
1916
|
</div>
|
2015
1917
|
<div class="sourcecode">
|
2016
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2017
|
-
<div id="
|
1918
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000210_source')" id="l_M000210_source">show source</a> ]</p>
|
1919
|
+
<div id="M000210_source" class="dyn-source">
|
2018
1920
|
<pre>
|
2019
1921
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/recursive_merge.rb, line 20</span>
|
2020
1922
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recursive_merge!</span>(<span class="ruby-identifier">other</span>)
|
@@ -2034,17 +1936,17 @@ sub-hashes.
|
|
2034
1936
|
</div>
|
2035
1937
|
<div class="method">
|
2036
1938
|
<div class="title">
|
2037
|
-
<a name="
|
1939
|
+
<a name="M000159"></a><b>recursive_merge!</b>(other)
|
2038
1940
|
</div>
|
2039
1941
|
<div class="description">
|
2040
1942
|
<p>
|
2041
|
-
Same as Hash#merge! but <a href="Hash.html#
|
1943
|
+
Same as Hash#merge! but <a href="Hash.html#M000138">recursively</a> merges
|
2042
1944
|
sub-hashes.
|
2043
1945
|
</p>
|
2044
1946
|
</div>
|
2045
1947
|
<div class="sourcecode">
|
2046
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2047
|
-
<div id="
|
1948
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000159_source')" id="l_M000159_source">show source</a> ]</p>
|
1949
|
+
<div id="M000159_source" class="dyn-source">
|
2048
1950
|
<pre>
|
2049
1951
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/recursive_merge.rb, line 20</span>
|
2050
1952
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recursive_merge!</span>(<span class="ruby-identifier">other</span>)
|
@@ -2064,11 +1966,11 @@ sub-hashes.
|
|
2064
1966
|
</div>
|
2065
1967
|
<div class="method">
|
2066
1968
|
<div class="title">
|
2067
|
-
<a name="
|
1969
|
+
<a name="M000189"></a><b>recursively</b>() {|h| ...}
|
2068
1970
|
</div>
|
2069
1971
|
<div class="description">
|
2070
1972
|
<p>
|
2071
|
-
Apply a block to hash, and <a href="Hash.html#
|
1973
|
+
Apply a block to hash, and <a href="Hash.html#M000138">recursively</a>
|
2072
1974
|
apply that block to each subhash.
|
2073
1975
|
</p>
|
2074
1976
|
<pre>
|
@@ -2078,8 +1980,8 @@ apply that block to each subhash.
|
|
2078
1980
|
</pre>
|
2079
1981
|
</div>
|
2080
1982
|
<div class="sourcecode">
|
2081
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2082
|
-
<div id="
|
1983
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000189_source')" id="l_M000189_source">show source</a> ]</p>
|
1984
|
+
<div id="M000189_source" class="dyn-source">
|
2083
1985
|
<pre>
|
2084
1986
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/recursively.rb, line 10</span>
|
2085
1987
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recursively</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -2099,11 +2001,11 @@ apply that block to each subhash.
|
|
2099
2001
|
</div>
|
2100
2002
|
<div class="method">
|
2101
2003
|
<div class="title">
|
2102
|
-
<a name="
|
2004
|
+
<a name="M000138"></a><b>recursively</b>() {|h| ...}
|
2103
2005
|
</div>
|
2104
2006
|
<div class="description">
|
2105
2007
|
<p>
|
2106
|
-
Apply a block to hash, and <a href="Hash.html#
|
2008
|
+
Apply a block to hash, and <a href="Hash.html#M000138">recursively</a>
|
2107
2009
|
apply that block to each subhash.
|
2108
2010
|
</p>
|
2109
2011
|
<pre>
|
@@ -2113,8 +2015,8 @@ apply that block to each subhash.
|
|
2113
2015
|
</pre>
|
2114
2016
|
</div>
|
2115
2017
|
<div class="sourcecode">
|
2116
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2117
|
-
<div id="
|
2018
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000138_source')" id="l_M000138_source">show source</a> ]</p>
|
2019
|
+
<div id="M000138_source" class="dyn-source">
|
2118
2020
|
<pre>
|
2119
2021
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/recursively.rb, line 10</span>
|
2120
2022
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recursively</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -2134,11 +2036,11 @@ apply that block to each subhash.
|
|
2134
2036
|
</div>
|
2135
2037
|
<div class="method">
|
2136
2038
|
<div class="title">
|
2137
|
-
<a name="
|
2039
|
+
<a name="M000190"></a><b>recursively!</b>(&block)
|
2138
2040
|
</div>
|
2139
2041
|
<div class="sourcecode">
|
2140
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2141
|
-
<div id="
|
2042
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000190_source')" id="l_M000190_source">show source</a> ]</p>
|
2043
|
+
<div id="M000190_source" class="dyn-source">
|
2142
2044
|
<pre>
|
2143
2045
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/recursively.rb, line 24</span>
|
2144
2046
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recursively!</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -2150,11 +2052,11 @@ apply that block to each subhash.
|
|
2150
2052
|
</div>
|
2151
2053
|
<div class="method">
|
2152
2054
|
<div class="title">
|
2153
|
-
<a name="
|
2055
|
+
<a name="M000139"></a><b>recursively!</b>(&block)
|
2154
2056
|
</div>
|
2155
2057
|
<div class="sourcecode">
|
2156
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2157
|
-
<div id="
|
2058
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000139_source')" id="l_M000139_source">show source</a> ]</p>
|
2059
|
+
<div id="M000139_source" class="dyn-source">
|
2158
2060
|
<pre>
|
2159
2061
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/recursively.rb, line 24</span>
|
2160
2062
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recursively!</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -2166,12 +2068,12 @@ apply that block to each subhash.
|
|
2166
2068
|
</div>
|
2167
2069
|
<div class="method">
|
2168
2070
|
<div class="title">
|
2169
|
-
<a name="
|
2071
|
+
<a name="M000229"></a><b>rekey</b>(*args, &block)
|
2170
2072
|
</div>
|
2171
2073
|
<div class="description">
|
2172
2074
|
<p>
|
2173
|
-
<a href="Hash.html#
|
2174
|
-
href="Hash.html#
|
2075
|
+
<a href="Hash.html#M000178">rekey</a>(to_key, from_key) <a
|
2076
|
+
href="Hash.html#M000178">rekey</a>{ |key| … }
|
2175
2077
|
</p>
|
2176
2078
|
<p>
|
2177
2079
|
If two keys are given, then the second key is changed to the first.
|
@@ -2197,8 +2099,8 @@ key, then that key will be left intact.
|
|
2197
2099
|
</pre>
|
2198
2100
|
</div>
|
2199
2101
|
<div class="sourcecode">
|
2200
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2201
|
-
<div id="
|
2102
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000229_source')" id="l_M000229_source">show source</a> ]</p>
|
2103
|
+
<div id="M000229_source" class="dyn-source">
|
2202
2104
|
<pre>
|
2203
2105
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/rekey.rb, line 27</span>
|
2204
2106
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rekey</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -2210,12 +2112,12 @@ key, then that key will be left intact.
|
|
2210
2112
|
</div>
|
2211
2113
|
<div class="method">
|
2212
2114
|
<div class="title">
|
2213
|
-
<a name="
|
2115
|
+
<a name="M000178"></a><b>rekey</b>(*args, &block)
|
2214
2116
|
</div>
|
2215
2117
|
<div class="description">
|
2216
2118
|
<p>
|
2217
|
-
<a href="Hash.html#
|
2218
|
-
href="Hash.html#
|
2119
|
+
<a href="Hash.html#M000178">rekey</a>(to_key, from_key) <a
|
2120
|
+
href="Hash.html#M000178">rekey</a>{ |key| … }
|
2219
2121
|
</p>
|
2220
2122
|
<p>
|
2221
2123
|
If two keys are given, then the second key is changed to the first.
|
@@ -2241,8 +2143,8 @@ key, then that key will be left intact.
|
|
2241
2143
|
</pre>
|
2242
2144
|
</div>
|
2243
2145
|
<div class="sourcecode">
|
2244
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2245
|
-
<div id="
|
2146
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000178_source')" id="l_M000178_source">show source</a> ]</p>
|
2147
|
+
<div id="M000178_source" class="dyn-source">
|
2246
2148
|
<pre>
|
2247
2149
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/rekey.rb, line 27</span>
|
2248
2150
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rekey</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -2254,11 +2156,11 @@ key, then that key will be left intact.
|
|
2254
2156
|
</div>
|
2255
2157
|
<div class="method">
|
2256
2158
|
<div class="title">
|
2257
|
-
<a name="
|
2159
|
+
<a name="M000230"></a><b>rekey!</b>(*args, &block)
|
2258
2160
|
</div>
|
2259
2161
|
<div class="description">
|
2260
2162
|
<p>
|
2261
|
-
Synonym for <a href="Hash.html#
|
2163
|
+
Synonym for <a href="Hash.html#M000178">Hash#rekey</a>, but modifies the
|
2262
2164
|
receiver in place (and returns it).
|
2263
2165
|
</p>
|
2264
2166
|
<pre>
|
@@ -2271,8 +2173,8 @@ receiver in place (and returns it).
|
|
2271
2173
|
</pre>
|
2272
2174
|
</div>
|
2273
2175
|
<div class="sourcecode">
|
2274
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2275
|
-
<div id="
|
2176
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000230_source')" id="l_M000230_source">show source</a> ]</p>
|
2177
|
+
<div id="M000230_source" class="dyn-source">
|
2276
2178
|
<pre>
|
2277
2179
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/rekey.rb, line 40</span>
|
2278
2180
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rekey!</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -2298,11 +2200,11 @@ receiver in place (and returns it).
|
|
2298
2200
|
</div>
|
2299
2201
|
<div class="method">
|
2300
2202
|
<div class="title">
|
2301
|
-
<a name="
|
2203
|
+
<a name="M000179"></a><b>rekey!</b>(*args, &block)
|
2302
2204
|
</div>
|
2303
2205
|
<div class="description">
|
2304
2206
|
<p>
|
2305
|
-
Synonym for <a href="Hash.html#
|
2207
|
+
Synonym for <a href="Hash.html#M000178">Hash#rekey</a>, but modifies the
|
2306
2208
|
receiver in place (and returns it).
|
2307
2209
|
</p>
|
2308
2210
|
<pre>
|
@@ -2315,8 +2217,8 @@ receiver in place (and returns it).
|
|
2315
2217
|
</pre>
|
2316
2218
|
</div>
|
2317
2219
|
<div class="sourcecode">
|
2318
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2319
|
-
<div id="
|
2220
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000179_source')" id="l_M000179_source">show source</a> ]</p>
|
2221
|
+
<div id="M000179_source" class="dyn-source">
|
2320
2222
|
<pre>
|
2321
2223
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/rekey.rb, line 40</span>
|
2322
2224
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rekey!</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -2342,11 +2244,11 @@ receiver in place (and returns it).
|
|
2342
2244
|
</div>
|
2343
2245
|
<div class="method">
|
2344
2246
|
<div class="title">
|
2345
|
-
<a name="
|
2247
|
+
<a name="M000135"></a><b>replace_each</b>( {|| ...}
|
2346
2248
|
</div>
|
2347
2249
|
<div class="description">
|
2348
2250
|
<p>
|
2349
|
-
Same as <a href="Hash.html#
|
2251
|
+
Same as <a href="Hash.html#M000132">update_each</a>, but deletes the key
|
2350
2252
|
element first.
|
2351
2253
|
</p>
|
2352
2254
|
<pre>
|
@@ -2354,8 +2256,8 @@ element first.
|
|
2354
2256
|
</pre>
|
2355
2257
|
</div>
|
2356
2258
|
<div class="sourcecode">
|
2357
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2358
|
-
<div id="
|
2259
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000135_source')" id="l_M000135_source">show source</a> ]</p>
|
2260
|
+
<div id="M000135_source" class="dyn-source">
|
2359
2261
|
<pre>
|
2360
2262
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/update.rb, line 66</span>
|
2361
2263
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">replace_each</span> <span class="ruby-comment cmt"># :yield:</span>
|
@@ -2371,11 +2273,11 @@ element first.
|
|
2371
2273
|
</div>
|
2372
2274
|
<div class="method">
|
2373
2275
|
<div class="title">
|
2374
|
-
<a name="
|
2276
|
+
<a name="M000186"></a><b>replace_each</b>( {|| ...}
|
2375
2277
|
</div>
|
2376
2278
|
<div class="description">
|
2377
2279
|
<p>
|
2378
|
-
Same as <a href="Hash.html#
|
2280
|
+
Same as <a href="Hash.html#M000132">update_each</a>, but deletes the key
|
2379
2281
|
element first.
|
2380
2282
|
</p>
|
2381
2283
|
<pre>
|
@@ -2383,8 +2285,8 @@ element first.
|
|
2383
2285
|
</pre>
|
2384
2286
|
</div>
|
2385
2287
|
<div class="sourcecode">
|
2386
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2387
|
-
<div id="
|
2288
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000186_source')" id="l_M000186_source">show source</a> ]</p>
|
2289
|
+
<div id="M000186_source" class="dyn-source">
|
2388
2290
|
<pre>
|
2389
2291
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/update.rb, line 66</span>
|
2390
2292
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">replace_each</span> <span class="ruby-comment cmt"># :yield:</span>
|
@@ -2400,7 +2302,7 @@ element first.
|
|
2400
2302
|
</div>
|
2401
2303
|
<div class="method">
|
2402
2304
|
<div class="title">
|
2403
|
-
<a name="
|
2305
|
+
<a name="M000147"></a><b>reverse_merge</b>(other)
|
2404
2306
|
</div>
|
2405
2307
|
<div class="description">
|
2406
2308
|
<p>
|
@@ -2419,8 +2321,8 @@ in doesn‘t already have those keys set.
|
|
2419
2321
|
</p>
|
2420
2322
|
</div>
|
2421
2323
|
<div class="sourcecode">
|
2422
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2423
|
-
<div id="
|
2324
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000147_source')" id="l_M000147_source">show source</a> ]</p>
|
2325
|
+
<div id="M000147_source" class="dyn-source">
|
2424
2326
|
<pre>
|
2425
2327
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/merge.rb, line 15</span>
|
2426
2328
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reverse_merge</span>(<span class="ruby-identifier">other</span>)
|
@@ -2432,7 +2334,7 @@ in doesn‘t already have those keys set.
|
|
2432
2334
|
</div>
|
2433
2335
|
<div class="method">
|
2434
2336
|
<div class="title">
|
2435
|
-
<a name="
|
2337
|
+
<a name="M000198"></a><b>reverse_merge</b>(other)
|
2436
2338
|
</div>
|
2437
2339
|
<div class="description">
|
2438
2340
|
<p>
|
@@ -2451,8 +2353,8 @@ in doesn‘t already have those keys set.
|
|
2451
2353
|
</p>
|
2452
2354
|
</div>
|
2453
2355
|
<div class="sourcecode">
|
2454
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2455
|
-
<div id="
|
2356
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000198_source')" id="l_M000198_source">show source</a> ]</p>
|
2357
|
+
<div id="M000198_source" class="dyn-source">
|
2456
2358
|
<pre>
|
2457
2359
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/merge.rb, line 15</span>
|
2458
2360
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reverse_merge</span>(<span class="ruby-identifier">other</span>)
|
@@ -2464,21 +2366,21 @@ in doesn‘t already have those keys set.
|
|
2464
2366
|
</div>
|
2465
2367
|
<div class="method">
|
2466
2368
|
<div class="title">
|
2467
|
-
<a name="
|
2369
|
+
<a name="M000148"></a><b>reverse_merge!</b>(other)
|
2468
2370
|
</div>
|
2469
2371
|
<div class="description">
|
2470
2372
|
<p>
|
2471
|
-
Inplace form of <a href="Hash.html#
|
2373
|
+
Inplace form of <a href="Hash.html#M000147">reverse_merge</a>.
|
2472
2374
|
</p>
|
2473
2375
|
</div>
|
2474
2376
|
<div class="aka">
|
2475
2377
|
This method is also aliased as
|
2476
|
-
<a href="Hash.html#
|
2477
|
-
<a href="Hash.html#
|
2378
|
+
<a href="Hash.html#M000149">reverse_update</a>
|
2379
|
+
<a href="Hash.html#M000200">reverse_update</a>
|
2478
2380
|
</div>
|
2479
2381
|
<div class="sourcecode">
|
2480
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2481
|
-
<div id="
|
2382
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000148_source')" id="l_M000148_source">show source</a> ]</p>
|
2383
|
+
<div id="M000148_source" class="dyn-source">
|
2482
2384
|
<pre>
|
2483
2385
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/merge.rb, line 21</span>
|
2484
2386
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reverse_merge!</span>(<span class="ruby-identifier">other</span>)
|
@@ -2490,16 +2392,16 @@ Inplace form of <a href="Hash.html#M000149">reverse_merge</a>.
|
|
2490
2392
|
</div>
|
2491
2393
|
<div class="method">
|
2492
2394
|
<div class="title">
|
2493
|
-
<a name="
|
2395
|
+
<a name="M000199"></a><b>reverse_merge!</b>(other)
|
2494
2396
|
</div>
|
2495
2397
|
<div class="description">
|
2496
2398
|
<p>
|
2497
|
-
Inplace form of <a href="Hash.html#
|
2399
|
+
Inplace form of <a href="Hash.html#M000147">reverse_merge</a>.
|
2498
2400
|
</p>
|
2499
2401
|
</div>
|
2500
2402
|
<div class="sourcecode">
|
2501
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2502
|
-
<div id="
|
2403
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000199_source')" id="l_M000199_source">show source</a> ]</p>
|
2404
|
+
<div id="M000199_source" class="dyn-source">
|
2503
2405
|
<pre>
|
2504
2406
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/merge.rb, line 21</span>
|
2505
2407
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reverse_merge!</span>(<span class="ruby-identifier">other</span>)
|
@@ -2511,27 +2413,27 @@ Inplace form of <a href="Hash.html#M000149">reverse_merge</a>.
|
|
2511
2413
|
</div>
|
2512
2414
|
<div class="method">
|
2513
2415
|
<div class="title">
|
2514
|
-
<a name="
|
2416
|
+
<a name="M000200"></a><b>reverse_update</b>(other)
|
2515
2417
|
</div>
|
2516
2418
|
<div class="description">
|
2517
2419
|
<p>
|
2518
|
-
Alias for <a href="Hash.html#
|
2420
|
+
Alias for <a href="Hash.html#M000147">reverse_merge</a>!
|
2519
2421
|
</p>
|
2520
2422
|
</div>
|
2521
2423
|
</div>
|
2522
2424
|
<div class="method">
|
2523
2425
|
<div class="title">
|
2524
|
-
<a name="
|
2426
|
+
<a name="M000149"></a><b>reverse_update</b>(other)
|
2525
2427
|
</div>
|
2526
2428
|
<div class="description">
|
2527
2429
|
<p>
|
2528
|
-
Alias for <a href="Hash.html#
|
2430
|
+
Alias for <a href="Hash.html#M000147">reverse_merge</a>!
|
2529
2431
|
</p>
|
2530
2432
|
</div>
|
2531
2433
|
</div>
|
2532
2434
|
<div class="method">
|
2533
2435
|
<div class="title">
|
2534
|
-
<a name="
|
2436
|
+
<a name="M000163"></a><b>select!</b>() {|k,v| ...}
|
2535
2437
|
</div>
|
2536
2438
|
<div class="description">
|
2537
2439
|
<p>
|
@@ -2543,8 +2445,8 @@ In-place version of Hash#select. The opposite of the built-in Hash#reject!.
|
|
2543
2445
|
</pre>
|
2544
2446
|
</div>
|
2545
2447
|
<div class="sourcecode">
|
2546
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2547
|
-
<div id="
|
2448
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000163_source')" id="l_M000163_source">show source</a> ]</p>
|
2449
|
+
<div id="M000163_source" class="dyn-source">
|
2548
2450
|
<pre>
|
2549
2451
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/select.rb, line 9</span>
|
2550
2452
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">select!</span>
|
@@ -2556,7 +2458,7 @@ In-place version of Hash#select. The opposite of the built-in Hash#reject!.
|
|
2556
2458
|
</div>
|
2557
2459
|
<div class="method">
|
2558
2460
|
<div class="title">
|
2559
|
-
<a name="
|
2461
|
+
<a name="M000214"></a><b>select!</b>() {|k,v| ...}
|
2560
2462
|
</div>
|
2561
2463
|
<div class="description">
|
2562
2464
|
<p>
|
@@ -2568,8 +2470,8 @@ In-place version of Hash#select. The opposite of the built-in Hash#reject!.
|
|
2568
2470
|
</pre>
|
2569
2471
|
</div>
|
2570
2472
|
<div class="sourcecode">
|
2571
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2572
|
-
<div id="
|
2473
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000214_source')" id="l_M000214_source">show source</a> ]</p>
|
2474
|
+
<div id="M000214_source" class="dyn-source">
|
2573
2475
|
<pre>
|
2574
2476
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/select.rb, line 9</span>
|
2575
2477
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">select!</span>
|
@@ -2581,7 +2483,7 @@ In-place version of Hash#select. The opposite of the built-in Hash#reject!.
|
|
2581
2483
|
</div>
|
2582
2484
|
<div class="method">
|
2583
2485
|
<div class="title">
|
2584
|
-
<a name="
|
2486
|
+
<a name="M000176"></a><b>slice</b>(*keep_keys)
|
2585
2487
|
</div>
|
2586
2488
|
<div class="description">
|
2587
2489
|
<p>
|
@@ -2589,8 +2491,8 @@ Returns a new hash with only the given keys.
|
|
2589
2491
|
</p>
|
2590
2492
|
</div>
|
2591
2493
|
<div class="sourcecode">
|
2592
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2593
|
-
<div id="
|
2494
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000176_source')" id="l_M000176_source">show source</a> ]</p>
|
2495
|
+
<div id="M000176_source" class="dyn-source">
|
2594
2496
|
<pre>
|
2595
2497
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/slice.rb, line 7</span>
|
2596
2498
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">slice</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">keep_keys</span>)
|
@@ -2606,7 +2508,7 @@ Returns a new hash with only the given keys.
|
|
2606
2508
|
</div>
|
2607
2509
|
<div class="method">
|
2608
2510
|
<div class="title">
|
2609
|
-
<a name="
|
2511
|
+
<a name="M000227"></a><b>slice</b>(*keep_keys)
|
2610
2512
|
</div>
|
2611
2513
|
<div class="description">
|
2612
2514
|
<p>
|
@@ -2614,8 +2516,8 @@ Returns a new hash with only the given keys.
|
|
2614
2516
|
</p>
|
2615
2517
|
</div>
|
2616
2518
|
<div class="sourcecode">
|
2617
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2618
|
-
<div id="
|
2519
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000227_source')" id="l_M000227_source">show source</a> ]</p>
|
2520
|
+
<div id="M000227_source" class="dyn-source">
|
2619
2521
|
<pre>
|
2620
2522
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/slice.rb, line 7</span>
|
2621
2523
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">slice</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">keep_keys</span>)
|
@@ -2631,7 +2533,7 @@ Returns a new hash with only the given keys.
|
|
2631
2533
|
</div>
|
2632
2534
|
<div class="method">
|
2633
2535
|
<div class="title">
|
2634
|
-
<a name="
|
2536
|
+
<a name="M000228"></a><b>slice!</b>(*keep_keys)
|
2635
2537
|
</div>
|
2636
2538
|
<div class="description">
|
2637
2539
|
<p>
|
@@ -2640,8 +2542,8 @@ hash of keys removed.
|
|
2640
2542
|
</p>
|
2641
2543
|
</div>
|
2642
2544
|
<div class="sourcecode">
|
2643
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2644
|
-
<div id="
|
2545
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000228_source')" id="l_M000228_source">show source</a> ]</p>
|
2546
|
+
<div id="M000228_source" class="dyn-source">
|
2645
2547
|
<pre>
|
2646
2548
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/slice.rb, line 18</span>
|
2647
2549
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">slice!</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">keep_keys</span>)
|
@@ -2655,7 +2557,7 @@ hash of keys removed.
|
|
2655
2557
|
</div>
|
2656
2558
|
<div class="method">
|
2657
2559
|
<div class="title">
|
2658
|
-
<a name="
|
2560
|
+
<a name="M000177"></a><b>slice!</b>(*keep_keys)
|
2659
2561
|
</div>
|
2660
2562
|
<div class="description">
|
2661
2563
|
<p>
|
@@ -2664,8 +2566,8 @@ hash of keys removed.
|
|
2664
2566
|
</p>
|
2665
2567
|
</div>
|
2666
2568
|
<div class="sourcecode">
|
2667
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2668
|
-
<div id="
|
2569
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000177_source')" id="l_M000177_source">show source</a> ]</p>
|
2570
|
+
<div id="M000177_source" class="dyn-source">
|
2669
2571
|
<pre>
|
2670
2572
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/slice.rb, line 18</span>
|
2671
2573
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">slice!</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">keep_keys</span>)
|
@@ -2679,161 +2581,7 @@ hash of keys removed.
|
|
2679
2581
|
</div>
|
2680
2582
|
<div class="method">
|
2681
2583
|
<div class="title">
|
2682
|
-
<a name="
|
2683
|
-
</div>
|
2684
|
-
<div class="description">
|
2685
|
-
<p>
|
2686
|
-
Converts all keys in the <a href="Hash.html">Hash</a> to Strings, returning
|
2687
|
-
a new <a href="Hash.html">Hash</a>. With a <tt>filter</tt> parameter,
|
2688
|
-
limits conversion to only a certain selection of keys.
|
2689
|
-
</p>
|
2690
|
-
<pre>
|
2691
|
-
foo = { :name=>'Gavin', :wife=>:Lisa }
|
2692
|
-
foo.stringify_keys #=> { "name"=>"Gavin", "wife"=>:Lisa }
|
2693
|
-
foo.inspect #=> { :name =>"Gavin", :wife=>:Lisa }
|
2694
|
-
</pre>
|
2695
|
-
<p>
|
2696
|
-
This method is considered archaic. Use <a
|
2697
|
-
href="Hash.html#M000188">rekey</a> instead.
|
2698
|
-
</p>
|
2699
|
-
</div>
|
2700
|
-
<div class="sourcecode">
|
2701
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000240_source')" id="l_M000240_source">show source</a> ]</p>
|
2702
|
-
<div id="M000240_source" class="dyn-source">
|
2703
|
-
<pre>
|
2704
|
-
<span class="ruby-comment cmt"># File lib/core/facets/hash/symbolize_keys.rb, line 59</span>
|
2705
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stringify_keys</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">filter</span>)
|
2706
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">filter</span>
|
2707
|
-
<span class="ruby-identifier">rekey</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">filter</span>[<span class="ruby-identifier">k</span>] <span class="ruby-operator">?</span> <span class="ruby-identifier">k</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">:</span> <span class="ruby-keyword kw">nil</span> }
|
2708
|
-
<span class="ruby-keyword kw">else</span>
|
2709
|
-
<span class="ruby-identifier">rekey</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">k</span>.<span class="ruby-identifier">to_s</span> }
|
2710
|
-
<span class="ruby-keyword kw">end</span>
|
2711
|
-
<span class="ruby-keyword kw">end</span>
|
2712
|
-
</pre>
|
2713
|
-
</div>
|
2714
|
-
</div>
|
2715
|
-
</div>
|
2716
|
-
<div class="method">
|
2717
|
-
<div class="title">
|
2718
|
-
<a name="M000181"></a><b>stringify_keys</b>(&filter)
|
2719
|
-
</div>
|
2720
|
-
<div class="description">
|
2721
|
-
<p>
|
2722
|
-
Converts all keys in the <a href="Hash.html">Hash</a> to Strings, returning
|
2723
|
-
a new <a href="Hash.html">Hash</a>. With a <tt>filter</tt> parameter,
|
2724
|
-
limits conversion to only a certain selection of keys.
|
2725
|
-
</p>
|
2726
|
-
<pre>
|
2727
|
-
foo = { :name=>'Gavin', :wife=>:Lisa }
|
2728
|
-
foo.stringify_keys #=> { "name"=>"Gavin", "wife"=>:Lisa }
|
2729
|
-
foo.inspect #=> { :name =>"Gavin", :wife=>:Lisa }
|
2730
|
-
</pre>
|
2731
|
-
<p>
|
2732
|
-
This method is considered archaic. Use <a
|
2733
|
-
href="Hash.html#M000188">rekey</a> instead.
|
2734
|
-
</p>
|
2735
|
-
</div>
|
2736
|
-
<div class="aka">
|
2737
|
-
This method is also aliased as
|
2738
|
-
<a href="Hash.html#M000182">keys_to_s</a>
|
2739
|
-
<a href="Hash.html#M000241">keys_to_s</a>
|
2740
|
-
</div>
|
2741
|
-
<div class="sourcecode">
|
2742
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000181_source')" id="l_M000181_source">show source</a> ]</p>
|
2743
|
-
<div id="M000181_source" class="dyn-source">
|
2744
|
-
<pre>
|
2745
|
-
<span class="ruby-comment cmt"># File lib/core/facets/hash/symbolize_keys.rb, line 59</span>
|
2746
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stringify_keys</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">filter</span>)
|
2747
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">filter</span>
|
2748
|
-
<span class="ruby-identifier">rekey</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">filter</span>[<span class="ruby-identifier">k</span>] <span class="ruby-operator">?</span> <span class="ruby-identifier">k</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">:</span> <span class="ruby-keyword kw">nil</span> }
|
2749
|
-
<span class="ruby-keyword kw">else</span>
|
2750
|
-
<span class="ruby-identifier">rekey</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">k</span>.<span class="ruby-identifier">to_s</span> }
|
2751
|
-
<span class="ruby-keyword kw">end</span>
|
2752
|
-
<span class="ruby-keyword kw">end</span>
|
2753
|
-
</pre>
|
2754
|
-
</div>
|
2755
|
-
</div>
|
2756
|
-
</div>
|
2757
|
-
<div class="method">
|
2758
|
-
<div class="title">
|
2759
|
-
<a name="M000183"></a><b>stringify_keys!</b>(&filter)
|
2760
|
-
</div>
|
2761
|
-
<div class="description">
|
2762
|
-
<p>
|
2763
|
-
Synonym for <a href="Hash.html#M000181">Hash#stringify_keys</a>, but
|
2764
|
-
modifies the receiver in place and returns it. With a <tt>filter</tt>
|
2765
|
-
parameter, limits conversion to only a certain selection of keys.
|
2766
|
-
</p>
|
2767
|
-
<pre>
|
2768
|
-
foo = { :name=>'Gavin', :wife=>:Lisa }
|
2769
|
-
foo.stringify_keys! #=> { "name"=>"Gavin", "wife"=>:Lisa }
|
2770
|
-
foo.inspect #=> { "name"=>"Gavin", "wife"=>:Lisa }
|
2771
|
-
</pre>
|
2772
|
-
<p>
|
2773
|
-
This method is considered archaic. Use <a
|
2774
|
-
href="Hash.html#M000188">rekey</a> instead.
|
2775
|
-
</p>
|
2776
|
-
</div>
|
2777
|
-
<div class="aka">
|
2778
|
-
This method is also aliased as
|
2779
|
-
<a href="Hash.html#M000184">keys_to_s!</a>
|
2780
|
-
<a href="Hash.html#M000243">keys_to_s!</a>
|
2781
|
-
</div>
|
2782
|
-
<div class="sourcecode">
|
2783
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000183_source')" id="l_M000183_source">show source</a> ]</p>
|
2784
|
-
<div id="M000183_source" class="dyn-source">
|
2785
|
-
<pre>
|
2786
|
-
<span class="ruby-comment cmt"># File lib/core/facets/hash/symbolize_keys.rb, line 78</span>
|
2787
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stringify_keys!</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">filter</span>)
|
2788
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">filter</span>
|
2789
|
-
<span class="ruby-identifier">rekey!</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">filter</span>[<span class="ruby-identifier">k</span>] <span class="ruby-operator">?</span> <span class="ruby-identifier">k</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">:</span> <span class="ruby-keyword kw">nil</span> }
|
2790
|
-
<span class="ruby-keyword kw">else</span>
|
2791
|
-
<span class="ruby-identifier">rekey!</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">k</span>.<span class="ruby-identifier">to_s</span> }
|
2792
|
-
<span class="ruby-keyword kw">end</span>
|
2793
|
-
<span class="ruby-keyword kw">end</span>
|
2794
|
-
</pre>
|
2795
|
-
</div>
|
2796
|
-
</div>
|
2797
|
-
</div>
|
2798
|
-
<div class="method">
|
2799
|
-
<div class="title">
|
2800
|
-
<a name="M000242"></a><b>stringify_keys!</b>(&filter)
|
2801
|
-
</div>
|
2802
|
-
<div class="description">
|
2803
|
-
<p>
|
2804
|
-
Synonym for <a href="Hash.html#M000181">Hash#stringify_keys</a>, but
|
2805
|
-
modifies the receiver in place and returns it. With a <tt>filter</tt>
|
2806
|
-
parameter, limits conversion to only a certain selection of keys.
|
2807
|
-
</p>
|
2808
|
-
<pre>
|
2809
|
-
foo = { :name=>'Gavin', :wife=>:Lisa }
|
2810
|
-
foo.stringify_keys! #=> { "name"=>"Gavin", "wife"=>:Lisa }
|
2811
|
-
foo.inspect #=> { "name"=>"Gavin", "wife"=>:Lisa }
|
2812
|
-
</pre>
|
2813
|
-
<p>
|
2814
|
-
This method is considered archaic. Use <a
|
2815
|
-
href="Hash.html#M000188">rekey</a> instead.
|
2816
|
-
</p>
|
2817
|
-
</div>
|
2818
|
-
<div class="sourcecode">
|
2819
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000242_source')" id="l_M000242_source">show source</a> ]</p>
|
2820
|
-
<div id="M000242_source" class="dyn-source">
|
2821
|
-
<pre>
|
2822
|
-
<span class="ruby-comment cmt"># File lib/core/facets/hash/symbolize_keys.rb, line 78</span>
|
2823
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stringify_keys!</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">filter</span>)
|
2824
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">filter</span>
|
2825
|
-
<span class="ruby-identifier">rekey!</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">filter</span>[<span class="ruby-identifier">k</span>] <span class="ruby-operator">?</span> <span class="ruby-identifier">k</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">:</span> <span class="ruby-keyword kw">nil</span> }
|
2826
|
-
<span class="ruby-keyword kw">else</span>
|
2827
|
-
<span class="ruby-identifier">rekey!</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">k</span>.<span class="ruby-identifier">to_s</span> }
|
2828
|
-
<span class="ruby-keyword kw">end</span>
|
2829
|
-
<span class="ruby-keyword kw">end</span>
|
2830
|
-
</pre>
|
2831
|
-
</div>
|
2832
|
-
</div>
|
2833
|
-
</div>
|
2834
|
-
<div class="method">
|
2835
|
-
<div class="title">
|
2836
|
-
<a name="M000175"></a><b>swap!</b>(key1, key2)
|
2584
|
+
<a name="M000224"></a><b>swap!</b>(key1, key2)
|
2837
2585
|
</div>
|
2838
2586
|
<div class="description">
|
2839
2587
|
<p>
|
@@ -2847,8 +2595,8 @@ CREDIT: Gavin Sinclair
|
|
2847
2595
|
</p>
|
2848
2596
|
</div>
|
2849
2597
|
<div class="sourcecode">
|
2850
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2851
|
-
<div id="
|
2598
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000224_source')" id="l_M000224_source">show source</a> ]</p>
|
2599
|
+
<div id="M000224_source" class="dyn-source">
|
2852
2600
|
<pre>
|
2853
2601
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/swap.rb, line 9</span>
|
2854
2602
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">swap!</span>(<span class="ruby-identifier">key1</span>, <span class="ruby-identifier">key2</span>)
|
@@ -2863,7 +2611,7 @@ CREDIT: Gavin Sinclair
|
|
2863
2611
|
</div>
|
2864
2612
|
<div class="method">
|
2865
2613
|
<div class="title">
|
2866
|
-
<a name="
|
2614
|
+
<a name="M000173"></a><b>swap!</b>(key1, key2)
|
2867
2615
|
</div>
|
2868
2616
|
<div class="description">
|
2869
2617
|
<p>
|
@@ -2877,8 +2625,8 @@ CREDIT: Gavin Sinclair
|
|
2877
2625
|
</p>
|
2878
2626
|
</div>
|
2879
2627
|
<div class="sourcecode">
|
2880
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2881
|
-
<div id="
|
2628
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000173_source')" id="l_M000173_source">show source</a> ]</p>
|
2629
|
+
<div id="M000173_source" class="dyn-source">
|
2882
2630
|
<pre>
|
2883
2631
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/swap.rb, line 9</span>
|
2884
2632
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">swap!</span>(<span class="ruby-identifier">key1</span>, <span class="ruby-identifier">key2</span>)
|
@@ -2893,163 +2641,7 @@ CREDIT: Gavin Sinclair
|
|
2893
2641
|
</div>
|
2894
2642
|
<div class="method">
|
2895
2643
|
<div class="title">
|
2896
|
-
<a name="
|
2897
|
-
</div>
|
2898
|
-
<div class="description">
|
2899
|
-
<p>
|
2900
|
-
Converts all keys in the <a href="Hash.html">Hash</a> to Symbols, returning
|
2901
|
-
a new <a href="Hash.html">Hash</a>. With a <tt>filter</tt>, limits
|
2902
|
-
conversion to only a certain selection of keys.
|
2903
|
-
</p>
|
2904
|
-
<pre>
|
2905
|
-
foo = { :name=>'Gavin', 'wife'=>:Lisa }
|
2906
|
-
foo.symbolize_keys #=> { :name=>"Gavin", :wife=>:Lisa }
|
2907
|
-
foo.inspect #=> { "name" =>"Gavin", "wife"=>:Lisa }
|
2908
|
-
</pre>
|
2909
|
-
<p>
|
2910
|
-
This method is considered archaic. Use <a
|
2911
|
-
href="Hash.html#M000188">rekey</a> instead.
|
2912
|
-
</p>
|
2913
|
-
</div>
|
2914
|
-
<div class="sourcecode">
|
2915
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000236_source')" id="l_M000236_source">show source</a> ]</p>
|
2916
|
-
<div id="M000236_source" class="dyn-source">
|
2917
|
-
<pre>
|
2918
|
-
<span class="ruby-comment cmt"># File lib/core/facets/hash/symbolize_keys.rb, line 14</span>
|
2919
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">symbolize_keys</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">filter</span>)
|
2920
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">filter</span>
|
2921
|
-
<span class="ruby-identifier">rekey</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">filter</span>[<span class="ruby-identifier">k</span>] <span class="ruby-operator">?</span> <span class="ruby-identifier">k</span>.<span class="ruby-identifier">to_sym</span> <span class="ruby-operator">:</span> <span class="ruby-keyword kw">nil</span> }
|
2922
|
-
<span class="ruby-keyword kw">else</span>
|
2923
|
-
<span class="ruby-identifier">rekey</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">k</span>.<span class="ruby-identifier">to_sym</span> }
|
2924
|
-
<span class="ruby-keyword kw">end</span>
|
2925
|
-
<span class="ruby-keyword kw">end</span>
|
2926
|
-
</pre>
|
2927
|
-
</div>
|
2928
|
-
</div>
|
2929
|
-
</div>
|
2930
|
-
<div class="method">
|
2931
|
-
<div class="title">
|
2932
|
-
<a name="M000177"></a><b>symbolize_keys</b>(&filter)
|
2933
|
-
</div>
|
2934
|
-
<div class="description">
|
2935
|
-
<p>
|
2936
|
-
Converts all keys in the <a href="Hash.html">Hash</a> to Symbols, returning
|
2937
|
-
a new <a href="Hash.html">Hash</a>. With a <tt>filter</tt>, limits
|
2938
|
-
conversion to only a certain selection of keys.
|
2939
|
-
</p>
|
2940
|
-
<pre>
|
2941
|
-
foo = { :name=>'Gavin', 'wife'=>:Lisa }
|
2942
|
-
foo.symbolize_keys #=> { :name=>"Gavin", :wife=>:Lisa }
|
2943
|
-
foo.inspect #=> { "name" =>"Gavin", "wife"=>:Lisa }
|
2944
|
-
</pre>
|
2945
|
-
<p>
|
2946
|
-
This method is considered archaic. Use <a
|
2947
|
-
href="Hash.html#M000188">rekey</a> instead.
|
2948
|
-
</p>
|
2949
|
-
</div>
|
2950
|
-
<div class="aka">
|
2951
|
-
This method is also aliased as
|
2952
|
-
<a href="Hash.html#M000178">keys_to_sym</a>
|
2953
|
-
<a href="Hash.html#M000237">keys_to_sym</a>
|
2954
|
-
</div>
|
2955
|
-
<div class="sourcecode">
|
2956
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000177_source')" id="l_M000177_source">show source</a> ]</p>
|
2957
|
-
<div id="M000177_source" class="dyn-source">
|
2958
|
-
<pre>
|
2959
|
-
<span class="ruby-comment cmt"># File lib/core/facets/hash/symbolize_keys.rb, line 14</span>
|
2960
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">symbolize_keys</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">filter</span>)
|
2961
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">filter</span>
|
2962
|
-
<span class="ruby-identifier">rekey</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">filter</span>[<span class="ruby-identifier">k</span>] <span class="ruby-operator">?</span> <span class="ruby-identifier">k</span>.<span class="ruby-identifier">to_sym</span> <span class="ruby-operator">:</span> <span class="ruby-keyword kw">nil</span> }
|
2963
|
-
<span class="ruby-keyword kw">else</span>
|
2964
|
-
<span class="ruby-identifier">rekey</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">k</span>.<span class="ruby-identifier">to_sym</span> }
|
2965
|
-
<span class="ruby-keyword kw">end</span>
|
2966
|
-
<span class="ruby-keyword kw">end</span>
|
2967
|
-
</pre>
|
2968
|
-
</div>
|
2969
|
-
</div>
|
2970
|
-
</div>
|
2971
|
-
<div class="method">
|
2972
|
-
<div class="title">
|
2973
|
-
<a name="M000179"></a><b>symbolize_keys!</b>(&filter)
|
2974
|
-
</div>
|
2975
|
-
<div class="description">
|
2976
|
-
<p>
|
2977
|
-
Synonym for <a href="Hash.html#M000177">Hash#symbolize_keys</a>, but
|
2978
|
-
modifies the receiver in place and returns it. With a <tt>filter</tt>
|
2979
|
-
parameter, limits conversion to only a certain selection of keys.
|
2980
|
-
</p>
|
2981
|
-
<pre>
|
2982
|
-
foo = { 'name'=>'Gavin', 'wife'=>:Lisa }
|
2983
|
-
foo.symbolize_keys! #=> { :name=>"Gavin", :wife=>:Lisa }
|
2984
|
-
foo.inspect #=> { :name=>"Gavin", :wife=>:Lisa }
|
2985
|
-
</pre>
|
2986
|
-
<p>
|
2987
|
-
This method is considered archaic. Use <a
|
2988
|
-
href="Hash.html#M000188">rekey</a> instead.
|
2989
|
-
</p>
|
2990
|
-
</div>
|
2991
|
-
<div class="aka">
|
2992
|
-
This method is also aliased as
|
2993
|
-
<a href="Hash.html#M000180">keys_to_sym!</a>
|
2994
|
-
<a href="Hash.html#M000239">keys_to_sym!</a>
|
2995
|
-
</div>
|
2996
|
-
<div class="sourcecode">
|
2997
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000179_source')" id="l_M000179_source">show source</a> ]</p>
|
2998
|
-
<div id="M000179_source" class="dyn-source">
|
2999
|
-
<pre>
|
3000
|
-
<span class="ruby-comment cmt"># File lib/core/facets/hash/symbolize_keys.rb, line 39</span>
|
3001
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">symbolize_keys!</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">filter</span>)
|
3002
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">filter</span>
|
3003
|
-
<span class="ruby-identifier">rekey!</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">filter</span>[<span class="ruby-identifier">k</span>] <span class="ruby-operator">?</span> <span class="ruby-identifier">k</span>.<span class="ruby-identifier">to_sym</span> <span class="ruby-operator">:</span> <span class="ruby-keyword kw">nil</span> }
|
3004
|
-
<span class="ruby-keyword kw">else</span>
|
3005
|
-
<span class="ruby-identifier">rekey!</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">k</span>.<span class="ruby-identifier">to_sym</span> }
|
3006
|
-
<span class="ruby-keyword kw">end</span>
|
3007
|
-
|
3008
|
-
<span class="ruby-keyword kw">end</span>
|
3009
|
-
</pre>
|
3010
|
-
</div>
|
3011
|
-
</div>
|
3012
|
-
</div>
|
3013
|
-
<div class="method">
|
3014
|
-
<div class="title">
|
3015
|
-
<a name="M000238"></a><b>symbolize_keys!</b>(&filter)
|
3016
|
-
</div>
|
3017
|
-
<div class="description">
|
3018
|
-
<p>
|
3019
|
-
Synonym for <a href="Hash.html#M000177">Hash#symbolize_keys</a>, but
|
3020
|
-
modifies the receiver in place and returns it. With a <tt>filter</tt>
|
3021
|
-
parameter, limits conversion to only a certain selection of keys.
|
3022
|
-
</p>
|
3023
|
-
<pre>
|
3024
|
-
foo = { 'name'=>'Gavin', 'wife'=>:Lisa }
|
3025
|
-
foo.symbolize_keys! #=> { :name=>"Gavin", :wife=>:Lisa }
|
3026
|
-
foo.inspect #=> { :name=>"Gavin", :wife=>:Lisa }
|
3027
|
-
</pre>
|
3028
|
-
<p>
|
3029
|
-
This method is considered archaic. Use <a
|
3030
|
-
href="Hash.html#M000188">rekey</a> instead.
|
3031
|
-
</p>
|
3032
|
-
</div>
|
3033
|
-
<div class="sourcecode">
|
3034
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000238_source')" id="l_M000238_source">show source</a> ]</p>
|
3035
|
-
<div id="M000238_source" class="dyn-source">
|
3036
|
-
<pre>
|
3037
|
-
<span class="ruby-comment cmt"># File lib/core/facets/hash/symbolize_keys.rb, line 39</span>
|
3038
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">symbolize_keys!</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">filter</span>)
|
3039
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">filter</span>
|
3040
|
-
<span class="ruby-identifier">rekey!</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">filter</span>[<span class="ruby-identifier">k</span>] <span class="ruby-operator">?</span> <span class="ruby-identifier">k</span>.<span class="ruby-identifier">to_sym</span> <span class="ruby-operator">:</span> <span class="ruby-keyword kw">nil</span> }
|
3041
|
-
<span class="ruby-keyword kw">else</span>
|
3042
|
-
<span class="ruby-identifier">rekey!</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">k</span>.<span class="ruby-identifier">to_sym</span> }
|
3043
|
-
<span class="ruby-keyword kw">end</span>
|
3044
|
-
|
3045
|
-
<span class="ruby-keyword kw">end</span>
|
3046
|
-
</pre>
|
3047
|
-
</div>
|
3048
|
-
</div>
|
3049
|
-
</div>
|
3050
|
-
<div class="method">
|
3051
|
-
<div class="title">
|
3052
|
-
<a name="M000131"></a><b>to_h</b>()
|
2644
|
+
<a name="M000129"></a><b>to_h</b>()
|
3053
2645
|
</div>
|
3054
2646
|
<div class="description">
|
3055
2647
|
<p>
|
@@ -3063,8 +2655,8 @@ CREDIT: Forian Gross
|
|
3063
2655
|
</p>
|
3064
2656
|
</div>
|
3065
2657
|
<div class="sourcecode">
|
3066
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3067
|
-
<div id="
|
2658
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000129_source')" id="l_M000129_source">show source</a> ]</p>
|
2659
|
+
<div id="M000129_source" class="dyn-source">
|
3068
2660
|
<pre>
|
3069
2661
|
<span class="ruby-comment cmt"># File lib/core/facets/to_hash.rb, line 54</span>
|
3070
2662
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_h</span>; <span class="ruby-identifier">rehash</span>; <span class="ruby-keyword kw">end</span>
|
@@ -3074,7 +2666,7 @@ CREDIT: Forian Gross
|
|
3074
2666
|
</div>
|
3075
2667
|
<div class="method">
|
3076
2668
|
<div class="title">
|
3077
|
-
<a name="
|
2669
|
+
<a name="M000160"></a><b>to_proc</b>()
|
3078
2670
|
</div>
|
3079
2671
|
<div class="description">
|
3080
2672
|
<p>
|
@@ -3094,8 +2686,8 @@ CREDIT: Trans
|
|
3094
2686
|
</p>
|
3095
2687
|
</div>
|
3096
2688
|
<div class="sourcecode">
|
3097
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3098
|
-
<div id="
|
2689
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000160_source')" id="l_M000160_source">show source</a> ]</p>
|
2690
|
+
<div id="M000160_source" class="dyn-source">
|
3099
2691
|
<pre>
|
3100
2692
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/to_proc.rb, line 15</span>
|
3101
2693
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_proc</span>
|
@@ -3112,7 +2704,7 @@ CREDIT: Trans
|
|
3112
2704
|
</div>
|
3113
2705
|
<div class="method">
|
3114
2706
|
<div class="title">
|
3115
|
-
<a name="
|
2707
|
+
<a name="M000211"></a><b>to_proc</b>()
|
3116
2708
|
</div>
|
3117
2709
|
<div class="description">
|
3118
2710
|
<p>
|
@@ -3132,8 +2724,8 @@ CREDIT: Trans
|
|
3132
2724
|
</p>
|
3133
2725
|
</div>
|
3134
2726
|
<div class="sourcecode">
|
3135
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3136
|
-
<div id="
|
2727
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000211_source')" id="l_M000211_source">show source</a> ]</p>
|
2728
|
+
<div id="M000211_source" class="dyn-source">
|
3137
2729
|
<pre>
|
3138
2730
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/to_proc.rb, line 15</span>
|
3139
2731
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_proc</span>
|
@@ -3150,14 +2742,14 @@ CREDIT: Trans
|
|
3150
2742
|
</div>
|
3151
2743
|
<div class="method">
|
3152
2744
|
<div class="title">
|
3153
|
-
<a name="
|
2745
|
+
<a name="M000212"></a><b>to_proc_with_reponse</b>()
|
3154
2746
|
</div>
|
3155
2747
|
<div class="description">
|
3156
2748
|
<p>
|
3157
|
-
A fault-tolerent version of <a href="Hash.html#
|
2749
|
+
A fault-tolerent version of <a href="Hash.html#M000160">to_proc</a>.
|
3158
2750
|
</p>
|
3159
2751
|
<p>
|
3160
|
-
It works just like <a href="Hash.html#
|
2752
|
+
It works just like <a href="Hash.html#M000160">to_proc</a>, but the block
|
3161
2753
|
will make sure# the object responds to the assignment.
|
3162
2754
|
</p>
|
3163
2755
|
<p>
|
@@ -3165,8 +2757,8 @@ CREDIT: Trans
|
|
3165
2757
|
</p>
|
3166
2758
|
</div>
|
3167
2759
|
<div class="sourcecode">
|
3168
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3169
|
-
<div id="
|
2760
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000212_source')" id="l_M000212_source">show source</a> ]</p>
|
2761
|
+
<div id="M000212_source" class="dyn-source">
|
3170
2762
|
<pre>
|
3171
2763
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/to_proc.rb, line 31</span>
|
3172
2764
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_proc_with_reponse</span>
|
@@ -3183,14 +2775,14 @@ CREDIT: Trans
|
|
3183
2775
|
</div>
|
3184
2776
|
<div class="method">
|
3185
2777
|
<div class="title">
|
3186
|
-
<a name="
|
2778
|
+
<a name="M000161"></a><b>to_proc_with_reponse</b>()
|
3187
2779
|
</div>
|
3188
2780
|
<div class="description">
|
3189
2781
|
<p>
|
3190
|
-
A fault-tolerent version of <a href="Hash.html#
|
2782
|
+
A fault-tolerent version of <a href="Hash.html#M000160">to_proc</a>.
|
3191
2783
|
</p>
|
3192
2784
|
<p>
|
3193
|
-
It works just like <a href="Hash.html#
|
2785
|
+
It works just like <a href="Hash.html#M000160">to_proc</a>, but the block
|
3194
2786
|
will make sure# the object responds to the assignment.
|
3195
2787
|
</p>
|
3196
2788
|
<p>
|
@@ -3198,8 +2790,8 @@ CREDIT: Trans
|
|
3198
2790
|
</p>
|
3199
2791
|
</div>
|
3200
2792
|
<div class="sourcecode">
|
3201
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3202
|
-
<div id="
|
2793
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000161_source')" id="l_M000161_source">show source</a> ]</p>
|
2794
|
+
<div id="M000161_source" class="dyn-source">
|
3203
2795
|
<pre>
|
3204
2796
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/to_proc.rb, line 31</span>
|
3205
2797
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_proc_with_reponse</span>
|
@@ -3216,7 +2808,7 @@ CREDIT: Trans
|
|
3216
2808
|
</div>
|
3217
2809
|
<div class="method">
|
3218
2810
|
<div class="title">
|
3219
|
-
<a name="
|
2811
|
+
<a name="M000174"></a><b>to_struct</b>(struct_name)
|
3220
2812
|
</div>
|
3221
2813
|
<div class="description">
|
3222
2814
|
<p>
|
@@ -3234,8 +2826,8 @@ TODO: Is this robust enough considerd hashes aren‘t ordered?
|
|
3234
2826
|
</pre>
|
3235
2827
|
</div>
|
3236
2828
|
<div class="sourcecode">
|
3237
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3238
|
-
<div id="
|
2829
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000174_source')" id="l_M000174_source">show source</a> ]</p>
|
2830
|
+
<div id="M000174_source" class="dyn-source">
|
3239
2831
|
<pre>
|
3240
2832
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/to_struct.rb, line 12</span>
|
3241
2833
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_struct</span>(<span class="ruby-identifier">struct_name</span>)
|
@@ -3247,7 +2839,7 @@ TODO: Is this robust enough considerd hashes aren‘t ordered?
|
|
3247
2839
|
</div>
|
3248
2840
|
<div class="method">
|
3249
2841
|
<div class="title">
|
3250
|
-
<a name="
|
2842
|
+
<a name="M000225"></a><b>to_struct</b>(struct_name)
|
3251
2843
|
</div>
|
3252
2844
|
<div class="description">
|
3253
2845
|
<p>
|
@@ -3265,8 +2857,8 @@ TODO: Is this robust enough considerd hashes aren‘t ordered?
|
|
3265
2857
|
</pre>
|
3266
2858
|
</div>
|
3267
2859
|
<div class="sourcecode">
|
3268
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3269
|
-
<div id="
|
2860
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000225_source')" id="l_M000225_source">show source</a> ]</p>
|
2861
|
+
<div id="M000225_source" class="dyn-source">
|
3270
2862
|
<pre>
|
3271
2863
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/to_struct.rb, line 12</span>
|
3272
2864
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_struct</span>(<span class="ruby-identifier">struct_name</span>)
|
@@ -3278,7 +2870,7 @@ TODO: Is this robust enough considerd hashes aren‘t ordered?
|
|
3278
2870
|
</div>
|
3279
2871
|
<div class="method">
|
3280
2872
|
<div class="title">
|
3281
|
-
<a name="
|
2873
|
+
<a name="M000201"></a><b>traverse</b>(&b)
|
3282
2874
|
</div>
|
3283
2875
|
<div class="description">
|
3284
2876
|
<p>
|
@@ -3305,8 +2897,8 @@ catches subclasses of <a href="Hash.html">Hash</a>.
|
|
3305
2897
|
</pre>
|
3306
2898
|
</div>
|
3307
2899
|
<div class="sourcecode">
|
3308
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3309
|
-
<div id="
|
2900
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000201_source')" id="l_M000201_source">show source</a> ]</p>
|
2901
|
+
<div id="M000201_source" class="dyn-source">
|
3310
2902
|
<pre>
|
3311
2903
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/traverse.rb, line 18</span>
|
3312
2904
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">traverse</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">b</span>)
|
@@ -3323,7 +2915,7 @@ catches subclasses of <a href="Hash.html">Hash</a>.
|
|
3323
2915
|
</div>
|
3324
2916
|
<div class="method">
|
3325
2917
|
<div class="title">
|
3326
|
-
<a name="
|
2918
|
+
<a name="M000150"></a><b>traverse</b>(&b)
|
3327
2919
|
</div>
|
3328
2920
|
<div class="description">
|
3329
2921
|
<p>
|
@@ -3350,8 +2942,8 @@ catches subclasses of <a href="Hash.html">Hash</a>.
|
|
3350
2942
|
</pre>
|
3351
2943
|
</div>
|
3352
2944
|
<div class="sourcecode">
|
3353
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3354
|
-
<div id="
|
2945
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000150_source')" id="l_M000150_source">show source</a> ]</p>
|
2946
|
+
<div id="M000150_source" class="dyn-source">
|
3355
2947
|
<pre>
|
3356
2948
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/traverse.rb, line 18</span>
|
3357
2949
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">traverse</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">b</span>)
|
@@ -3368,11 +2960,11 @@ catches subclasses of <a href="Hash.html">Hash</a>.
|
|
3368
2960
|
</div>
|
3369
2961
|
<div class="method">
|
3370
2962
|
<div class="title">
|
3371
|
-
<a name="
|
2963
|
+
<a name="M000151"></a><b>traverse!</b>(&b)
|
3372
2964
|
</div>
|
3373
2965
|
<div class="description">
|
3374
2966
|
<p>
|
3375
|
-
In place version of <a href="Hash.html#
|
2967
|
+
In place version of <a href="Hash.html#M000150">traverse</a>, which
|
3376
2968
|
traverses the hash and its subhashes, executing the given block on the key
|
3377
2969
|
and value.
|
3378
2970
|
</p>
|
@@ -3385,8 +2977,8 @@ and value.
|
|
3385
2977
|
</pre>
|
3386
2978
|
</div>
|
3387
2979
|
<div class="sourcecode">
|
3388
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3389
|
-
<div id="
|
2980
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000151_source')" id="l_M000151_source">show source</a> ]</p>
|
2981
|
+
<div id="M000151_source" class="dyn-source">
|
3390
2982
|
<pre>
|
3391
2983
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/traverse.rb, line 36</span>
|
3392
2984
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">traverse!</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">b</span>)
|
@@ -3398,11 +2990,11 @@ and value.
|
|
3398
2990
|
</div>
|
3399
2991
|
<div class="method">
|
3400
2992
|
<div class="title">
|
3401
|
-
<a name="
|
2993
|
+
<a name="M000202"></a><b>traverse!</b>(&b)
|
3402
2994
|
</div>
|
3403
2995
|
<div class="description">
|
3404
2996
|
<p>
|
3405
|
-
In place version of <a href="Hash.html#
|
2997
|
+
In place version of <a href="Hash.html#M000150">traverse</a>, which
|
3406
2998
|
traverses the hash and its subhashes, executing the given block on the key
|
3407
2999
|
and value.
|
3408
3000
|
</p>
|
@@ -3415,8 +3007,8 @@ and value.
|
|
3415
3007
|
</pre>
|
3416
3008
|
</div>
|
3417
3009
|
<div class="sourcecode">
|
3418
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3419
|
-
<div id="
|
3010
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000202_source')" id="l_M000202_source">show source</a> ]</p>
|
3011
|
+
<div id="M000202_source" class="dyn-source">
|
3420
3012
|
<pre>
|
3421
3013
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/traverse.rb, line 36</span>
|
3422
3014
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">traverse!</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">b</span>)
|
@@ -3428,13 +3020,13 @@ and value.
|
|
3428
3020
|
</div>
|
3429
3021
|
<div class="method">
|
3430
3022
|
<div class="title">
|
3431
|
-
<a name="
|
3023
|
+
<a name="M000183"></a><b>update_each</b>( {|| ...}
|
3432
3024
|
</div>
|
3433
3025
|
<div class="description">
|
3434
3026
|
<p>
|
3435
3027
|
Iterates through each pair and updates a the hash in place. This is
|
3436
3028
|
formally equivalent to mash! But does not use mash to accomplish the task.
|
3437
|
-
Hence <a href="Hash.html#
|
3029
|
+
Hence <a href="Hash.html#M000132">update_each</a> is probably a touch
|
3438
3030
|
faster.
|
3439
3031
|
</p>
|
3440
3032
|
<pre>
|
@@ -3442,8 +3034,8 @@ faster.
|
|
3442
3034
|
</pre>
|
3443
3035
|
</div>
|
3444
3036
|
<div class="sourcecode">
|
3445
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3446
|
-
<div id="
|
3037
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000183_source')" id="l_M000183_source">show source</a> ]</p>
|
3038
|
+
<div id="M000183_source" class="dyn-source">
|
3447
3039
|
<pre>
|
3448
3040
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/update.rb, line 23</span>
|
3449
3041
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update_each</span> <span class="ruby-comment cmt"># :yield:</span>
|
@@ -3458,13 +3050,13 @@ faster.
|
|
3458
3050
|
</div>
|
3459
3051
|
<div class="method">
|
3460
3052
|
<div class="title">
|
3461
|
-
<a name="
|
3053
|
+
<a name="M000132"></a><b>update_each</b>( {|| ...}
|
3462
3054
|
</div>
|
3463
3055
|
<div class="description">
|
3464
3056
|
<p>
|
3465
3057
|
Iterates through each pair and updates a the hash in place. This is
|
3466
3058
|
formally equivalent to mash! But does not use mash to accomplish the task.
|
3467
|
-
Hence <a href="Hash.html#
|
3059
|
+
Hence <a href="Hash.html#M000132">update_each</a> is probably a touch
|
3468
3060
|
faster.
|
3469
3061
|
</p>
|
3470
3062
|
<pre>
|
@@ -3472,8 +3064,8 @@ faster.
|
|
3472
3064
|
</pre>
|
3473
3065
|
</div>
|
3474
3066
|
<div class="sourcecode">
|
3475
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3476
|
-
<div id="
|
3067
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000132_source')" id="l_M000132_source">show source</a> ]</p>
|
3068
|
+
<div id="M000132_source" class="dyn-source">
|
3477
3069
|
<pre>
|
3478
3070
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/update.rb, line 23</span>
|
3479
3071
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update_each</span> <span class="ruby-comment cmt"># :yield:</span>
|
@@ -3488,7 +3080,7 @@ faster.
|
|
3488
3080
|
</div>
|
3489
3081
|
<div class="method">
|
3490
3082
|
<div class="title">
|
3491
|
-
<a name="
|
3083
|
+
<a name="M000133"></a><b>update_keys</b>( {|| ...}
|
3492
3084
|
</div>
|
3493
3085
|
<div class="description">
|
3494
3086
|
<p>
|
@@ -3503,8 +3095,8 @@ Iterate over hash updating just the keys.
|
|
3503
3095
|
</pre>
|
3504
3096
|
</div>
|
3505
3097
|
<div class="sourcecode">
|
3506
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3507
|
-
<div id="
|
3098
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000133_source')" id="l_M000133_source">show source</a> ]</p>
|
3099
|
+
<div id="M000133_source" class="dyn-source">
|
3508
3100
|
<pre>
|
3509
3101
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/update.rb, line 38</span>
|
3510
3102
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update_keys</span> <span class="ruby-comment cmt">#:yield:</span>
|
@@ -3520,7 +3112,7 @@ Iterate over hash updating just the keys.
|
|
3520
3112
|
</div>
|
3521
3113
|
<div class="method">
|
3522
3114
|
<div class="title">
|
3523
|
-
<a name="
|
3115
|
+
<a name="M000184"></a><b>update_keys</b>( {|| ...}
|
3524
3116
|
</div>
|
3525
3117
|
<div class="description">
|
3526
3118
|
<p>
|
@@ -3535,8 +3127,8 @@ Iterate over hash updating just the keys.
|
|
3535
3127
|
</pre>
|
3536
3128
|
</div>
|
3537
3129
|
<div class="sourcecode">
|
3538
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3539
|
-
<div id="
|
3130
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000184_source')" id="l_M000184_source">show source</a> ]</p>
|
3131
|
+
<div id="M000184_source" class="dyn-source">
|
3540
3132
|
<pre>
|
3541
3133
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/update.rb, line 38</span>
|
3542
3134
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update_keys</span> <span class="ruby-comment cmt">#:yield:</span>
|
@@ -3552,7 +3144,7 @@ Iterate over hash updating just the keys.
|
|
3552
3144
|
</div>
|
3553
3145
|
<div class="method">
|
3554
3146
|
<div class="title">
|
3555
|
-
<a name="
|
3147
|
+
<a name="M000185"></a><b>update_values</b>( {|| ...}
|
3556
3148
|
</div>
|
3557
3149
|
<div class="description">
|
3558
3150
|
<p>
|
@@ -3567,8 +3159,8 @@ Iterate over hash updating just the values.
|
|
3567
3159
|
</pre>
|
3568
3160
|
</div>
|
3569
3161
|
<div class="sourcecode">
|
3570
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3571
|
-
<div id="
|
3162
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000185_source')" id="l_M000185_source">show source</a> ]</p>
|
3163
|
+
<div id="M000185_source" class="dyn-source">
|
3572
3164
|
<pre>
|
3573
3165
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/update.rb, line 54</span>
|
3574
3166
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update_values</span> <span class="ruby-comment cmt">#:yield:</span>
|
@@ -3584,7 +3176,7 @@ Iterate over hash updating just the values.
|
|
3584
3176
|
</div>
|
3585
3177
|
<div class="method">
|
3586
3178
|
<div class="title">
|
3587
|
-
<a name="
|
3179
|
+
<a name="M000134"></a><b>update_values</b>( {|| ...}
|
3588
3180
|
</div>
|
3589
3181
|
<div class="description">
|
3590
3182
|
<p>
|
@@ -3599,8 +3191,8 @@ Iterate over hash updating just the values.
|
|
3599
3191
|
</pre>
|
3600
3192
|
</div>
|
3601
3193
|
<div class="sourcecode">
|
3602
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3603
|
-
<div id="
|
3194
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000134_source')" id="l_M000134_source">show source</a> ]</p>
|
3195
|
+
<div id="M000134_source" class="dyn-source">
|
3604
3196
|
<pre>
|
3605
3197
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/update.rb, line 54</span>
|
3606
3198
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update_values</span> <span class="ruby-comment cmt">#:yield:</span>
|
@@ -3616,7 +3208,7 @@ Iterate over hash updating just the values.
|
|
3616
3208
|
</div>
|
3617
3209
|
<div class="method">
|
3618
3210
|
<div class="title">
|
3619
|
-
<a name="
|
3211
|
+
<a name="M000223"></a><b>weave</b>(h)
|
3620
3212
|
</div>
|
3621
3213
|
<div class="description">
|
3622
3214
|
<p>
|
@@ -3663,8 +3255,8 @@ is especially useful for implementing overridable configuration schemes.
|
|
3663
3255
|
</pre>
|
3664
3256
|
</div>
|
3665
3257
|
<div class="sourcecode">
|
3666
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3667
|
-
<div id="
|
3258
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000223_source')" id="l_M000223_source">show source</a> ]</p>
|
3259
|
+
<div id="M000223_source" class="dyn-source">
|
3668
3260
|
<pre>
|
3669
3261
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/weave.rb, line 40</span>
|
3670
3262
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">weave</span>(<span class="ruby-identifier">h</span>)
|
@@ -3713,7 +3305,7 @@ is especially useful for implementing overridable configuration schemes.
|
|
3713
3305
|
</div>
|
3714
3306
|
<div class="method">
|
3715
3307
|
<div class="title">
|
3716
|
-
<a name="
|
3308
|
+
<a name="M000172"></a><b>weave</b>(h)
|
3717
3309
|
</div>
|
3718
3310
|
<div class="description">
|
3719
3311
|
<p>
|
@@ -3760,8 +3352,8 @@ is especially useful for implementing overridable configuration schemes.
|
|
3760
3352
|
</pre>
|
3761
3353
|
</div>
|
3762
3354
|
<div class="sourcecode">
|
3763
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3764
|
-
<div id="
|
3355
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000172_source')" id="l_M000172_source">show source</a> ]</p>
|
3356
|
+
<div id="M000172_source" class="dyn-source">
|
3765
3357
|
<pre>
|
3766
3358
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/weave.rb, line 40</span>
|
3767
3359
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">weave</span>(<span class="ruby-identifier">h</span>)
|
@@ -3810,19 +3402,19 @@ is especially useful for implementing overridable configuration schemes.
|
|
3810
3402
|
</div>
|
3811
3403
|
<div class="method">
|
3812
3404
|
<div class="title">
|
3813
|
-
<a name="
|
3405
|
+
<a name="M000153"></a><b>|</b>(other)
|
3814
3406
|
</div>
|
3815
3407
|
<div class="description">
|
3816
3408
|
<p>
|
3817
|
-
Operator for <a href="Hash.html#
|
3409
|
+
Operator for <a href="Hash.html#M000147">reverse_merge</a>.
|
3818
3410
|
</p>
|
3819
3411
|
<pre>
|
3820
3412
|
CREDIT: Trans
|
3821
3413
|
</pre>
|
3822
3414
|
</div>
|
3823
3415
|
<div class="sourcecode">
|
3824
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3825
|
-
<div id="
|
3416
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000153_source')" id="l_M000153_source">show source</a> ]</p>
|
3417
|
+
<div id="M000153_source" class="dyn-source">
|
3826
3418
|
<pre>
|
3827
3419
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/op.rb, line 36</span>
|
3828
3420
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">|</span>(<span class="ruby-identifier">other</span>)
|
@@ -3834,19 +3426,19 @@ Operator for <a href="Hash.html#M000149">reverse_merge</a>.
|
|
3834
3426
|
</div>
|
3835
3427
|
<div class="method">
|
3836
3428
|
<div class="title">
|
3837
|
-
<a name="
|
3429
|
+
<a name="M000204"></a><b>|</b>(other)
|
3838
3430
|
</div>
|
3839
3431
|
<div class="description">
|
3840
3432
|
<p>
|
3841
|
-
Operator for <a href="Hash.html#
|
3433
|
+
Operator for <a href="Hash.html#M000147">reverse_merge</a>.
|
3842
3434
|
</p>
|
3843
3435
|
<pre>
|
3844
3436
|
CREDIT: Trans
|
3845
3437
|
</pre>
|
3846
3438
|
</div>
|
3847
3439
|
<div class="sourcecode">
|
3848
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3849
|
-
<div id="
|
3440
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000204_source')" id="l_M000204_source">show source</a> ]</p>
|
3441
|
+
<div id="M000204_source" class="dyn-source">
|
3850
3442
|
<pre>
|
3851
3443
|
<span class="ruby-comment cmt"># File lib/core/facets/hash/op.rb, line 36</span>
|
3852
3444
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">|</span>(<span class="ruby-identifier">other</span>)
|