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
|