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
@@ -86,8 +86,8 @@ CSS parse tree. This is for a "deep filtering".
|
|
86
86
|
|
87
87
|
<div class="sectiontitle">Methods</div>
|
88
88
|
<ul>
|
89
|
-
<li><a href="#
|
90
|
-
<li><a href="#
|
89
|
+
<li><a href="#M000501">new</a></li>
|
90
|
+
<li><a href="#M000502">to_css</a></li>
|
91
91
|
</ul>
|
92
92
|
|
93
93
|
|
@@ -98,11 +98,11 @@ CSS parse tree. This is for a "deep filtering".
|
|
98
98
|
<div class="sectiontitle">Public Class methods</div>
|
99
99
|
<div class="method">
|
100
100
|
<div class="title">
|
101
|
-
<a name="
|
101
|
+
<a name="M000501"></a><b>new</b>(options=nil)
|
102
102
|
</div>
|
103
103
|
<div class="sourcecode">
|
104
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
105
|
-
<div id="
|
104
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000501_source')" id="l_M000501_source">show source</a> ]</p>
|
105
|
+
<div id="M000501_source" class="dyn-source">
|
106
106
|
<pre>
|
107
107
|
<span class="ruby-comment cmt"># File lib/more/facets/cssfilter.rb, line 204</span>
|
108
108
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">options</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -116,7 +116,7 @@ CSS parse tree. This is for a "deep filtering".
|
|
116
116
|
<div class="sectiontitle">Public Instance methods</div>
|
117
117
|
<div class="method">
|
118
118
|
<div class="title">
|
119
|
-
<a name="
|
119
|
+
<a name="M000502"></a><b>to_css</b>()
|
120
120
|
</div>
|
121
121
|
<div class="description">
|
122
122
|
<p>
|
@@ -124,8 +124,8 @@ Re-output the CSS, all tidy ;)
|
|
124
124
|
</p>
|
125
125
|
</div>
|
126
126
|
<div class="sourcecode">
|
127
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
128
|
-
<div id="
|
127
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000502_source')" id="l_M000502_source">show source</a> ]</p>
|
128
|
+
<div id="M000502_source" class="dyn-source">
|
129
129
|
<pre>
|
130
130
|
<span class="ruby-comment cmt"># File lib/more/facets/cssfilter.rb, line 211</span>
|
131
131
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_css</span>
|
@@ -79,11 +79,11 @@ Object
|
|
79
79
|
<p>
|
80
80
|
The <a href="Dictionary.html">Dictionary</a> class is a <a
|
81
81
|
href="Hash.html">Hash</a> that preserves <a
|
82
|
-
href="Dictionary.html#
|
82
|
+
href="Dictionary.html#M000111">order</a>. So it has some array-like
|
83
83
|
extensions also. By defualt a <a href="Dictionary.html">Dictionary</a>
|
84
|
-
object preserves insertion <a href="Dictionary.html#
|
85
|
-
any <a href="Dictionary.html#
|
86
|
-
alphabetical key <a href="Dictionary.html#
|
84
|
+
object preserves insertion <a href="Dictionary.html#M000111">order</a>, but
|
85
|
+
any <a href="Dictionary.html#M000111">order</a> can be specified including
|
86
|
+
alphabetical key <a href="Dictionary.html#M000111">order</a>.
|
87
87
|
</p>
|
88
88
|
<h2>Usage</h2>
|
89
89
|
<p>
|
@@ -118,19 +118,19 @@ instead of <a href="Hash.html">Hash</a>.
|
|
118
118
|
</pre>
|
119
119
|
<h2>Usage Notes</h2>
|
120
120
|
<ul>
|
121
|
-
<li>You can use <a href="Dictionary.html#
|
122
|
-
sort <a href="Dictionary.html#
|
121
|
+
<li>You can use <a href="Dictionary.html#M000112">order_by</a> to set internal
|
122
|
+
sort <a href="Dictionary.html#M000111">order</a>.
|
123
123
|
|
124
124
|
</li>
|
125
125
|
<li>#<< takes a two element [k,v] array and inserts.
|
126
126
|
|
127
127
|
</li>
|
128
|
-
<li>Use ::<a href="Dictionary.html#
|
128
|
+
<li>Use ::<a href="Dictionary.html#M000109">auto</a> which creates Dictionay
|
129
129
|
sub-entries as needed.
|
130
130
|
|
131
131
|
</li>
|
132
|
-
<li>And ::<a href="Dictionary.html#
|
133
|
-
href="Dictionary.html#
|
132
|
+
<li>And ::<a href="Dictionary.html#M000108">alpha</a> which creates a <a
|
133
|
+
href="Dictionary.html#M000110">new</a> <a
|
134
134
|
href="Dictionary.html">Dictionary</a> sorted by key.
|
135
135
|
|
136
136
|
</li>
|
@@ -141,59 +141,59 @@ href="Dictionary.html">Dictionary</a> sorted by key.
|
|
141
141
|
|
142
142
|
<div class="sectiontitle">Methods</div>
|
143
143
|
<ul>
|
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="#
|
144
|
+
<li><a href="#M000137"><<</a></li>
|
145
|
+
<li><a href="#M000116">==</a></li>
|
146
|
+
<li><a href="#M000106">[]</a></li>
|
147
|
+
<li><a href="#M000117">[]</a></li>
|
148
|
+
<li><a href="#M000119">[]=</a></li>
|
149
|
+
<li><a href="#M000108">alpha</a></li>
|
150
|
+
<li><a href="#M000109">auto</a></li>
|
151
|
+
<li><a href="#M000122">clear</a></li>
|
152
|
+
<li><a href="#M000123">delete</a></li>
|
153
|
+
<li><a href="#M000128">delete_if</a></li>
|
154
|
+
<li><a href="#M000141">dup</a></li>
|
155
|
+
<li><a href="#M000126">each</a></li>
|
156
|
+
<li><a href="#M000124">each_key</a></li>
|
157
|
+
<li><a href="#M000127">each_pair</a></li>
|
158
|
+
<li><a href="#M000125">each_value</a></li>
|
159
|
+
<li><a href="#M000152">empty?</a></li>
|
160
|
+
<li><a href="#M000118">fetch</a></li>
|
161
|
+
<li><a href="#M000148">first</a></li>
|
162
|
+
<li><a href="#M000153">has_key?</a></li>
|
163
|
+
<li><a href="#M000120">insert</a></li>
|
164
|
+
<li><a href="#M000140">inspect</a></li>
|
165
|
+
<li><a href="#M000131">invert</a></li>
|
166
|
+
<li><a href="#M000154">key?</a></li>
|
167
|
+
<li><a href="#M000130">keys</a></li>
|
168
|
+
<li><a href="#M000149">last</a></li>
|
169
|
+
<li><a href="#M000150">length</a></li>
|
170
|
+
<li><a href="#M000144">merge</a></li>
|
171
|
+
<li><a href="#M000143">merge!</a></li>
|
172
|
+
<li><a href="#M000110">new</a></li>
|
173
|
+
<li><a href="#M000107">new_by</a></li>
|
174
|
+
<li><a href="#M000111">order</a></li>
|
175
|
+
<li><a href="#M000112">order_by</a></li>
|
176
|
+
<li><a href="#M000113">order_by_key</a></li>
|
177
|
+
<li><a href="#M000114">order_by_value</a></li>
|
178
|
+
<li><a href="#M000139">pop</a></li>
|
179
|
+
<li><a href="#M000138">push</a></li>
|
180
|
+
<li><a href="#M000132">reject</a></li>
|
181
|
+
<li><a href="#M000133">reject!</a></li>
|
182
|
+
<li><a href="#M000115">reorder</a></li>
|
183
|
+
<li><a href="#M000134">replace</a></li>
|
184
|
+
<li><a href="#M000147">reverse</a></li>
|
185
|
+
<li><a href="#M000146">reverse!</a></li>
|
186
|
+
<li><a href="#M000145">select</a></li>
|
187
|
+
<li><a href="#M000135">shift</a></li>
|
188
|
+
<li><a href="#M000151">size</a></li>
|
189
|
+
<li><a href="#M000121">store</a></li>
|
190
|
+
<li><a href="#M000155">to_a</a></li>
|
191
|
+
<li><a href="#M000158">to_h</a></li>
|
192
|
+
<li><a href="#M000157">to_hash</a></li>
|
193
|
+
<li><a href="#M000156">to_s</a></li>
|
194
|
+
<li><a href="#M000136">unshift</a></li>
|
195
|
+
<li><a href="#M000142">update</a></li>
|
196
|
+
<li><a href="#M000129">values</a></li>
|
197
197
|
</ul>
|
198
198
|
|
199
199
|
<div class="sectiontitle">Included Modules</div>
|
@@ -208,11 +208,11 @@ href="Dictionary.html">Dictionary</a> sorted by key.
|
|
208
208
|
<div class="sectiontitle">Public Class methods</div>
|
209
209
|
<div class="method">
|
210
210
|
<div class="title">
|
211
|
-
<a name="
|
211
|
+
<a name="M000106"></a><b>[]</b>(*args)
|
212
212
|
</div>
|
213
213
|
<div class="sourcecode">
|
214
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
215
|
-
<div id="
|
214
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000106_source')" id="l_M000106_source">show source</a> ]</p>
|
215
|
+
<div id="M000106_source" class="dyn-source">
|
216
216
|
<pre>
|
217
217
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 128</span>
|
218
218
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
@@ -234,11 +234,11 @@ href="Dictionary.html">Dictionary</a> sorted by key.
|
|
234
234
|
</div>
|
235
235
|
<div class="method">
|
236
236
|
<div class="title">
|
237
|
-
<a name="
|
237
|
+
<a name="M000108"></a><b>alpha</b>(*args, &block)
|
238
238
|
</div>
|
239
239
|
<div class="description">
|
240
240
|
<p>
|
241
|
-
Alternate to <a href="Dictionary.html#
|
241
|
+
Alternate to <a href="Dictionary.html#M000110">new</a> which creates a
|
242
242
|
dictionary sorted by key.
|
243
243
|
</p>
|
244
244
|
<pre>
|
@@ -256,8 +256,8 @@ This is equivalent to:
|
|
256
256
|
</pre>
|
257
257
|
</div>
|
258
258
|
<div class="sourcecode">
|
259
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
260
|
-
<div id="
|
259
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000108_source')" id="l_M000108_source">show source</a> ]</p>
|
260
|
+
<div id="M000108_source" class="dyn-source">
|
261
261
|
<pre>
|
262
262
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 160</span>
|
263
263
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">alpha</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -269,12 +269,12 @@ This is equivalent to:
|
|
269
269
|
</div>
|
270
270
|
<div class="method">
|
271
271
|
<div class="title">
|
272
|
-
<a name="
|
272
|
+
<a name="M000109"></a><b>auto</b>(*args)
|
273
273
|
</div>
|
274
274
|
<div class="description">
|
275
275
|
<p>
|
276
|
-
Alternate to <a href="Dictionary.html#
|
277
|
-
href="Dictionary.html#
|
276
|
+
Alternate to <a href="Dictionary.html#M000110">new</a> which <a
|
277
|
+
href="Dictionary.html#M000109">auto</a>-creates sub-dictionaries as needed.
|
278
278
|
</p>
|
279
279
|
<pre>
|
280
280
|
d = Dictionary.auto
|
@@ -282,8 +282,8 @@ href="Dictionary.html#M000108">auto</a>-creates sub-dictionaries as needed.
|
|
282
282
|
</pre>
|
283
283
|
</div>
|
284
284
|
<div class="sourcecode">
|
285
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
286
|
-
<div id="
|
285
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000109_source')" id="l_M000109_source">show source</a> ]</p>
|
286
|
+
<div id="M000109_source" class="dyn-source">
|
287
287
|
<pre>
|
288
288
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 169</span>
|
289
289
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">auto</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
@@ -297,7 +297,7 @@ href="Dictionary.html#M000108">auto</a>-creates sub-dictionaries as needed.
|
|
297
297
|
</div>
|
298
298
|
<div class="method">
|
299
299
|
<div class="title">
|
300
|
-
<a name="
|
300
|
+
<a name="M000110"></a><b>new</b>(*args, &blk)
|
301
301
|
</div>
|
302
302
|
<div class="description">
|
303
303
|
<p>
|
@@ -305,8 +305,8 @@ New Dictiionary.
|
|
305
305
|
</p>
|
306
306
|
</div>
|
307
307
|
<div class="sourcecode">
|
308
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
309
|
-
<div id="
|
308
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000110_source')" id="l_M000110_source">show source</a> ]</p>
|
309
|
+
<div id="M000110_source" class="dyn-source">
|
310
310
|
<pre>
|
311
311
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 178</span>
|
312
312
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
@@ -326,17 +326,17 @@ New Dictiionary.
|
|
326
326
|
</div>
|
327
327
|
<div class="method">
|
328
328
|
<div class="title">
|
329
|
-
<a name="
|
329
|
+
<a name="M000107"></a><b>new_by</b>(*args, &blk)
|
330
330
|
</div>
|
331
331
|
<div class="description">
|
332
332
|
<p>
|
333
|
-
Like <a href="Dictionary.html#
|
334
|
-
href="Dictionary.html#
|
333
|
+
Like <a href="Dictionary.html#M000110">new</a> but the block sets the <a
|
334
|
+
href="Dictionary.html#M000111">order</a>.
|
335
335
|
</p>
|
336
336
|
</div>
|
337
337
|
<div class="sourcecode">
|
338
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
339
|
-
<div id="
|
338
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000107_source')" id="l_M000107_source">show source</a> ]</p>
|
339
|
+
<div id="M000107_source" class="dyn-source">
|
340
340
|
<pre>
|
341
341
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 144</span>
|
342
342
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">new_by</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
@@ -349,11 +349,11 @@ href="Dictionary.html#M000110">order</a>.
|
|
349
349
|
<div class="sectiontitle">Public Instance methods</div>
|
350
350
|
<div class="method">
|
351
351
|
<div class="title">
|
352
|
-
<a name="
|
352
|
+
<a name="M000137"></a><b><<</b>(kv)
|
353
353
|
</div>
|
354
354
|
<div class="sourcecode">
|
355
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
356
|
-
<div id="
|
355
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000137_source')" id="l_M000137_source">show source</a> ]</p>
|
356
|
+
<div id="M000137_source" class="dyn-source">
|
357
357
|
<pre>
|
358
358
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 375</span>
|
359
359
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator"><<</span>(<span class="ruby-identifier">kv</span>)
|
@@ -365,7 +365,7 @@ href="Dictionary.html#M000110">order</a>.
|
|
365
365
|
</div>
|
366
366
|
<div class="method">
|
367
367
|
<div class="title">
|
368
|
-
<a name="
|
368
|
+
<a name="M000116"></a><b>==</b>(hsh2)
|
369
369
|
</div>
|
370
370
|
<div class="description">
|
371
371
|
<p>
|
@@ -380,8 +380,8 @@ end
|
|
380
380
|
</p>
|
381
381
|
</div>
|
382
382
|
<div class="sourcecode">
|
383
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
384
|
-
<div id="
|
383
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000116_source')" id="l_M000116_source">show source</a> ]</p>
|
384
|
+
<div id="M000116_source" class="dyn-source">
|
385
385
|
<pre>
|
386
386
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 256</span>
|
387
387
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">==</span>(<span class="ruby-identifier">hsh2</span>)
|
@@ -398,11 +398,11 @@ end
|
|
398
398
|
</div>
|
399
399
|
<div class="method">
|
400
400
|
<div class="title">
|
401
|
-
<a name="
|
401
|
+
<a name="M000117"></a><b>[]</b>(k)
|
402
402
|
</div>
|
403
403
|
<div class="sourcecode">
|
404
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
405
|
-
<div id="
|
404
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000117_source')" id="l_M000117_source">show source</a> ]</p>
|
405
|
+
<div id="M000117_source" class="dyn-source">
|
406
406
|
<pre>
|
407
407
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 265</span>
|
408
408
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span> <span class="ruby-identifier">k</span>
|
@@ -414,7 +414,7 @@ end
|
|
414
414
|
</div>
|
415
415
|
<div class="method">
|
416
416
|
<div class="title">
|
417
|
-
<a name="
|
417
|
+
<a name="M000119"></a><b>[]=</b>(k, i=nil, v=nil)
|
418
418
|
</div>
|
419
419
|
<div class="description">
|
420
420
|
<p>
|
@@ -431,8 +431,8 @@ Or with additional index.
|
|
431
431
|
</pre>
|
432
432
|
</div>
|
433
433
|
<div class="sourcecode">
|
434
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
435
|
-
<div id="
|
434
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000119_source')" id="l_M000119_source">show source</a> ]</p>
|
435
|
+
<div id="M000119_source" class="dyn-source">
|
436
436
|
<pre>
|
437
437
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 281</span>
|
438
438
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]=</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">i</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">v</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -448,11 +448,11 @@ Or with additional index.
|
|
448
448
|
</div>
|
449
449
|
<div class="method">
|
450
450
|
<div class="title">
|
451
|
-
<a name="
|
451
|
+
<a name="M000122"></a><b>clear</b>()
|
452
452
|
</div>
|
453
453
|
<div class="sourcecode">
|
454
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
455
|
-
<div id="
|
454
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000122_source')" id="l_M000122_source">show source</a> ]</p>
|
455
|
+
<div id="M000122_source" class="dyn-source">
|
456
456
|
<pre>
|
457
457
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 299</span>
|
458
458
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clear</span>
|
@@ -465,11 +465,11 @@ Or with additional index.
|
|
465
465
|
</div>
|
466
466
|
<div class="method">
|
467
467
|
<div class="title">
|
468
|
-
<a name="
|
468
|
+
<a name="M000123"></a><b>delete</b>( key )
|
469
469
|
</div>
|
470
470
|
<div class="sourcecode">
|
471
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
472
|
-
<div id="
|
471
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000123_source')" id="l_M000123_source">show source</a> ]</p>
|
472
|
+
<div id="M000123_source" class="dyn-source">
|
473
473
|
<pre>
|
474
474
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 304</span>
|
475
475
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete</span>( <span class="ruby-identifier">key</span> )
|
@@ -482,11 +482,11 @@ Or with additional index.
|
|
482
482
|
</div>
|
483
483
|
<div class="method">
|
484
484
|
<div class="title">
|
485
|
-
<a name="
|
485
|
+
<a name="M000128"></a><b>delete_if</b>() {|k,@hash[k]| ...}
|
486
486
|
</div>
|
487
487
|
<div class="sourcecode">
|
488
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
489
|
-
<div id="
|
488
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000128_source')" id="l_M000128_source">show source</a> ]</p>
|
489
|
+
<div id="M000128_source" class="dyn-source">
|
490
490
|
<pre>
|
491
491
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 325</span>
|
492
492
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete_if</span>
|
@@ -499,11 +499,11 @@ Or with additional index.
|
|
499
499
|
</div>
|
500
500
|
<div class="method">
|
501
501
|
<div class="title">
|
502
|
-
<a name="
|
502
|
+
<a name="M000141"></a><b>dup</b>()
|
503
503
|
</div>
|
504
504
|
<div class="sourcecode">
|
505
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
506
|
-
<div id="
|
505
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000141_source')" id="l_M000141_source">show source</a> ]</p>
|
506
|
+
<div id="M000141_source" class="dyn-source">
|
507
507
|
<pre>
|
508
508
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 400</span>
|
509
509
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dup</span>
|
@@ -517,15 +517,15 @@ Or with additional index.
|
|
517
517
|
</div>
|
518
518
|
<div class="method">
|
519
519
|
<div class="title">
|
520
|
-
<a name="
|
520
|
+
<a name="M000126"></a><b>each</b>() {|k,@hash[k]| ...}
|
521
521
|
</div>
|
522
522
|
<div class="aka">
|
523
523
|
This method is also aliased as
|
524
|
-
<a href="Dictionary.html#
|
524
|
+
<a href="Dictionary.html#M000127">each_pair</a>
|
525
525
|
</div>
|
526
526
|
<div class="sourcecode">
|
527
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
528
|
-
<div id="
|
527
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000126_source')" id="l_M000126_source">show source</a> ]</p>
|
528
|
+
<div id="M000126_source" class="dyn-source">
|
529
529
|
<pre>
|
530
530
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 319</span>
|
531
531
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each</span>
|
@@ -538,11 +538,11 @@ Or with additional index.
|
|
538
538
|
</div>
|
539
539
|
<div class="method">
|
540
540
|
<div class="title">
|
541
|
-
<a name="
|
541
|
+
<a name="M000124"></a><b>each_key</b>() {|k| ...}
|
542
542
|
</div>
|
543
543
|
<div class="sourcecode">
|
544
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
545
|
-
<div id="
|
544
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000124_source')" id="l_M000124_source">show source</a> ]</p>
|
545
|
+
<div id="M000124_source" class="dyn-source">
|
546
546
|
<pre>
|
547
547
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 309</span>
|
548
548
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_key</span>
|
@@ -555,21 +555,21 @@ Or with additional index.
|
|
555
555
|
</div>
|
556
556
|
<div class="method">
|
557
557
|
<div class="title">
|
558
|
-
<a name="
|
558
|
+
<a name="M000127"></a><b>each_pair</b>()
|
559
559
|
</div>
|
560
560
|
<div class="description">
|
561
561
|
<p>
|
562
|
-
Alias for <a href="Dictionary.html#
|
562
|
+
Alias for <a href="Dictionary.html#M000126">each</a>
|
563
563
|
</p>
|
564
564
|
</div>
|
565
565
|
</div>
|
566
566
|
<div class="method">
|
567
567
|
<div class="title">
|
568
|
-
<a name="
|
568
|
+
<a name="M000125"></a><b>each_value</b>() {|@hash[k]| ...}
|
569
569
|
</div>
|
570
570
|
<div class="sourcecode">
|
571
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
572
|
-
<div id="
|
571
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000125_source')" id="l_M000125_source">show source</a> ]</p>
|
572
|
+
<div id="M000125_source" class="dyn-source">
|
573
573
|
<pre>
|
574
574
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 314</span>
|
575
575
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_value</span>
|
@@ -582,11 +582,11 @@ Alias for <a href="Dictionary.html#M000125">each</a>
|
|
582
582
|
</div>
|
583
583
|
<div class="method">
|
584
584
|
<div class="title">
|
585
|
-
<a name="
|
585
|
+
<a name="M000152"></a><b>empty?</b>()
|
586
586
|
</div>
|
587
587
|
<div class="sourcecode">
|
588
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
589
|
-
<div id="
|
588
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000152_source')" id="l_M000152_source">show source</a> ]</p>
|
589
|
+
<div id="M000152_source" class="dyn-source">
|
590
590
|
<pre>
|
591
591
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 449</span>
|
592
592
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">empty?</span>
|
@@ -598,11 +598,11 @@ Alias for <a href="Dictionary.html#M000125">each</a>
|
|
598
598
|
</div>
|
599
599
|
<div class="method">
|
600
600
|
<div class="title">
|
601
|
-
<a name="
|
601
|
+
<a name="M000118"></a><b>fetch</b>(k, *a, &b)
|
602
602
|
</div>
|
603
603
|
<div class="sourcecode">
|
604
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
605
|
-
<div id="
|
604
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000118_source')" id="l_M000118_source">show source</a> ]</p>
|
605
|
+
<div id="M000118_source" class="dyn-source">
|
606
606
|
<pre>
|
607
607
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 269</span>
|
608
608
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">fetch</span>(<span class="ruby-identifier">k</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">a</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">b</span>)
|
@@ -614,11 +614,11 @@ Alias for <a href="Dictionary.html#M000125">each</a>
|
|
614
614
|
</div>
|
615
615
|
<div class="method">
|
616
616
|
<div class="title">
|
617
|
-
<a name="
|
617
|
+
<a name="M000148"></a><b>first</b>(x=nil)
|
618
618
|
</div>
|
619
619
|
<div class="sourcecode">
|
620
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
621
|
-
<div id="
|
620
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000148_source')" id="l_M000148_source">show source</a> ]</p>
|
621
|
+
<div id="M000148_source" class="dyn-source">
|
622
622
|
<pre>
|
623
623
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 433</span>
|
624
624
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">first</span>(<span class="ruby-identifier">x</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -631,11 +631,11 @@ Alias for <a href="Dictionary.html#M000125">each</a>
|
|
631
631
|
</div>
|
632
632
|
<div class="method">
|
633
633
|
<div class="title">
|
634
|
-
<a name="
|
634
|
+
<a name="M000153"></a><b>has_key?</b>(key)
|
635
635
|
</div>
|
636
636
|
<div class="sourcecode">
|
637
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
638
|
-
<div id="
|
637
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000153_source')" id="l_M000153_source">show source</a> ]</p>
|
638
|
+
<div id="M000153_source" class="dyn-source">
|
639
639
|
<pre>
|
640
640
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 453</span>
|
641
641
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">key</span>)
|
@@ -647,11 +647,11 @@ Alias for <a href="Dictionary.html#M000125">each</a>
|
|
647
647
|
</div>
|
648
648
|
<div class="method">
|
649
649
|
<div class="title">
|
650
|
-
<a name="
|
650
|
+
<a name="M000120"></a><b>insert</b>( i,k,v )
|
651
651
|
</div>
|
652
652
|
<div class="sourcecode">
|
653
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
654
|
-
<div id="
|
653
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000120_source')" id="l_M000120_source">show source</a> ]</p>
|
654
|
+
<div id="M000120_source" class="dyn-source">
|
655
655
|
<pre>
|
656
656
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 289</span>
|
657
657
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">insert</span>( <span class="ruby-identifier">i</span>,<span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span> )
|
@@ -664,11 +664,11 @@ Alias for <a href="Dictionary.html#M000125">each</a>
|
|
664
664
|
</div>
|
665
665
|
<div class="method">
|
666
666
|
<div class="title">
|
667
|
-
<a name="
|
667
|
+
<a name="M000140"></a><b>inspect</b>()
|
668
668
|
</div>
|
669
669
|
<div class="sourcecode">
|
670
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
671
|
-
<div id="
|
670
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000140_source')" id="l_M000140_source">show source</a> ]</p>
|
671
|
+
<div id="M000140_source" class="dyn-source">
|
672
672
|
<pre>
|
673
673
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 394</span>
|
674
674
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inspect</span>
|
@@ -682,11 +682,11 @@ Alias for <a href="Dictionary.html#M000125">each</a>
|
|
682
682
|
</div>
|
683
683
|
<div class="method">
|
684
684
|
<div class="title">
|
685
|
-
<a name="
|
685
|
+
<a name="M000131"></a><b>invert</b>()
|
686
686
|
</div>
|
687
687
|
<div class="sourcecode">
|
688
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
689
|
-
<div id="
|
688
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000131_source')" id="l_M000131_source">show source</a> ]</p>
|
689
|
+
<div id="M000131_source" class="dyn-source">
|
690
690
|
<pre>
|
691
691
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 340</span>
|
692
692
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">invert</span>
|
@@ -700,11 +700,11 @@ Alias for <a href="Dictionary.html#M000125">each</a>
|
|
700
700
|
</div>
|
701
701
|
<div class="method">
|
702
702
|
<div class="title">
|
703
|
-
<a name="
|
703
|
+
<a name="M000154"></a><b>key?</b>(key)
|
704
704
|
</div>
|
705
705
|
<div class="sourcecode">
|
706
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
707
|
-
<div id="
|
706
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000154_source')" id="l_M000154_source">show source</a> ]</p>
|
707
|
+
<div id="M000154_source" class="dyn-source">
|
708
708
|
<pre>
|
709
709
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 457</span>
|
710
710
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">key?</span>(<span class="ruby-identifier">key</span>)
|
@@ -716,11 +716,11 @@ Alias for <a href="Dictionary.html#M000125">each</a>
|
|
716
716
|
</div>
|
717
717
|
<div class="method">
|
718
718
|
<div class="title">
|
719
|
-
<a name="
|
719
|
+
<a name="M000130"></a><b>keys</b>()
|
720
720
|
</div>
|
721
721
|
<div class="sourcecode">
|
722
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
723
|
-
<div id="
|
722
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000130_source')" id="l_M000130_source">show source</a> ]</p>
|
723
|
+
<div id="M000130_source" class="dyn-source">
|
724
724
|
<pre>
|
725
725
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 336</span>
|
726
726
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">keys</span>
|
@@ -732,11 +732,11 @@ Alias for <a href="Dictionary.html#M000125">each</a>
|
|
732
732
|
</div>
|
733
733
|
<div class="method">
|
734
734
|
<div class="title">
|
735
|
-
<a name="
|
735
|
+
<a name="M000149"></a><b>last</b>(x=nil)
|
736
736
|
</div>
|
737
737
|
<div class="sourcecode">
|
738
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
739
|
-
<div id="
|
738
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000149_source')" id="l_M000149_source">show source</a> ]</p>
|
739
|
+
<div id="M000149_source" class="dyn-source">
|
740
740
|
<pre>
|
741
741
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 439</span>
|
742
742
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">last</span>(<span class="ruby-identifier">x</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -749,15 +749,15 @@ Alias for <a href="Dictionary.html#M000125">each</a>
|
|
749
749
|
</div>
|
750
750
|
<div class="method">
|
751
751
|
<div class="title">
|
752
|
-
<a name="
|
752
|
+
<a name="M000150"></a><b>length</b>()
|
753
753
|
</div>
|
754
754
|
<div class="aka">
|
755
755
|
This method is also aliased as
|
756
|
-
<a href="Dictionary.html#
|
756
|
+
<a href="Dictionary.html#M000151">size</a>
|
757
757
|
</div>
|
758
758
|
<div class="sourcecode">
|
759
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
760
|
-
<div id="
|
759
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000150_source')" id="l_M000150_source">show source</a> ]</p>
|
760
|
+
<div id="M000150_source" class="dyn-source">
|
761
761
|
<pre>
|
762
762
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 444</span>
|
763
763
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">length</span>
|
@@ -769,11 +769,11 @@ Alias for <a href="Dictionary.html#M000125">each</a>
|
|
769
769
|
</div>
|
770
770
|
<div class="method">
|
771
771
|
<div class="title">
|
772
|
-
<a name="
|
772
|
+
<a name="M000144"></a><b>merge</b>( hsh2 )
|
773
773
|
</div>
|
774
774
|
<div class="sourcecode">
|
775
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
776
|
-
<div id="
|
775
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000144_source')" id="l_M000144_source">show source</a> ]</p>
|
776
|
+
<div id="M000144_source" class="dyn-source">
|
777
777
|
<pre>
|
778
778
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 413</span>
|
779
779
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">merge</span>( <span class="ruby-identifier">hsh2</span> )
|
@@ -785,21 +785,21 @@ Alias for <a href="Dictionary.html#M000125">each</a>
|
|
785
785
|
</div>
|
786
786
|
<div class="method">
|
787
787
|
<div class="title">
|
788
|
-
<a name="
|
788
|
+
<a name="M000143"></a><b>merge!</b>( hsh2 )
|
789
789
|
</div>
|
790
790
|
<div class="description">
|
791
791
|
<p>
|
792
|
-
Alias for <a href="Dictionary.html#
|
792
|
+
Alias for <a href="Dictionary.html#M000142">update</a>
|
793
793
|
</p>
|
794
794
|
</div>
|
795
795
|
</div>
|
796
796
|
<div class="method">
|
797
797
|
<div class="title">
|
798
|
-
<a name="
|
798
|
+
<a name="M000111"></a><b>order</b>()
|
799
799
|
</div>
|
800
800
|
<div class="sourcecode">
|
801
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
802
|
-
<div id="
|
801
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000111_source')" id="l_M000111_source">show source</a> ]</p>
|
802
|
+
<div id="M000111_source" class="dyn-source">
|
803
803
|
<pre>
|
804
804
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 190</span>
|
805
805
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">order</span>
|
@@ -812,17 +812,17 @@ Alias for <a href="Dictionary.html#M000141">update</a>
|
|
812
812
|
</div>
|
813
813
|
<div class="method">
|
814
814
|
<div class="title">
|
815
|
-
<a name="
|
815
|
+
<a name="M000112"></a><b>order_by</b>( &block )
|
816
816
|
</div>
|
817
817
|
<div class="description">
|
818
818
|
<p>
|
819
819
|
Keep dictionary sorted by a specific sort <a
|
820
|
-
href="Dictionary.html#
|
820
|
+
href="Dictionary.html#M000111">order</a>.
|
821
821
|
</p>
|
822
822
|
</div>
|
823
823
|
<div class="sourcecode">
|
824
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
825
|
-
<div id="
|
824
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000112_source')" id="l_M000112_source">show source</a> ]</p>
|
825
|
+
<div id="M000112_source" class="dyn-source">
|
826
826
|
<pre>
|
827
827
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 197</span>
|
828
828
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">order_by</span>( <span class="ruby-operator">&</span><span class="ruby-identifier">block</span> )
|
@@ -836,7 +836,7 @@ href="Dictionary.html#M000110">order</a>.
|
|
836
836
|
</div>
|
837
837
|
<div class="method">
|
838
838
|
<div class="title">
|
839
|
-
<a name="
|
839
|
+
<a name="M000113"></a><b>order_by_key</b>()
|
840
840
|
</div>
|
841
841
|
<div class="description">
|
842
842
|
<p>
|
@@ -856,13 +856,13 @@ This is equivalent to:
|
|
856
856
|
Dictionary.new.order_by { |key,value| key }
|
857
857
|
</pre>
|
858
858
|
<p>
|
859
|
-
The initializer <a href="Dictionary.html#
|
859
|
+
The initializer <a href="Dictionary.html#M000108">Dictionary#alpha</a> also
|
860
860
|
provides this.
|
861
861
|
</p>
|
862
862
|
</div>
|
863
863
|
<div class="sourcecode">
|
864
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
865
|
-
<div id="
|
864
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000113_source')" id="l_M000113_source">show source</a> ]</p>
|
865
|
+
<div id="M000113_source" class="dyn-source">
|
866
866
|
<pre>
|
867
867
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 217</span>
|
868
868
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">order_by_key</span>
|
@@ -876,7 +876,7 @@ provides this.
|
|
876
876
|
</div>
|
877
877
|
<div class="method">
|
878
878
|
<div class="title">
|
879
|
-
<a name="
|
879
|
+
<a name="M000114"></a><b>order_by_value</b>()
|
880
880
|
</div>
|
881
881
|
<div class="description">
|
882
882
|
<p>
|
@@ -897,8 +897,8 @@ This is equivalent to:
|
|
897
897
|
</pre>
|
898
898
|
</div>
|
899
899
|
<div class="sourcecode">
|
900
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
901
|
-
<div id="
|
900
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000114_source')" id="l_M000114_source">show source</a> ]</p>
|
901
|
+
<div id="M000114_source" class="dyn-source">
|
902
902
|
<pre>
|
903
903
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 235</span>
|
904
904
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">order_by_value</span>
|
@@ -912,11 +912,11 @@ This is equivalent to:
|
|
912
912
|
</div>
|
913
913
|
<div class="method">
|
914
914
|
<div class="title">
|
915
|
-
<a name="
|
915
|
+
<a name="M000139"></a><b>pop</b>()
|
916
916
|
</div>
|
917
917
|
<div class="sourcecode">
|
918
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
919
|
-
<div id="
|
918
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000139_source')" id="l_M000139_source">show source</a> ]</p>
|
919
|
+
<div id="M000139_source" class="dyn-source">
|
920
920
|
<pre>
|
921
921
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 389</span>
|
922
922
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pop</span>
|
@@ -929,11 +929,11 @@ This is equivalent to:
|
|
929
929
|
</div>
|
930
930
|
<div class="method">
|
931
931
|
<div class="title">
|
932
|
-
<a name="
|
932
|
+
<a name="M000138"></a><b>push</b>( k,v )
|
933
933
|
</div>
|
934
934
|
<div class="sourcecode">
|
935
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
936
|
-
<div id="
|
935
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000138_source')" id="l_M000138_source">show source</a> ]</p>
|
936
|
+
<div id="M000138_source" class="dyn-source">
|
937
937
|
<pre>
|
938
938
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 379</span>
|
939
939
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">push</span>( <span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span> )
|
@@ -951,11 +951,11 @@ This is equivalent to:
|
|
951
951
|
</div>
|
952
952
|
<div class="method">
|
953
953
|
<div class="title">
|
954
|
-
<a name="
|
954
|
+
<a name="M000132"></a><b>reject</b>( &block )
|
955
955
|
</div>
|
956
956
|
<div class="sourcecode">
|
957
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
958
|
-
<div id="
|
957
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000132_source')" id="l_M000132_source">show source</a> ]</p>
|
958
|
+
<div id="M000132_source" class="dyn-source">
|
959
959
|
<pre>
|
960
960
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 346</span>
|
961
961
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reject</span>( <span class="ruby-operator">&</span><span class="ruby-identifier">block</span> )
|
@@ -967,11 +967,11 @@ This is equivalent to:
|
|
967
967
|
</div>
|
968
968
|
<div class="method">
|
969
969
|
<div class="title">
|
970
|
-
<a name="
|
970
|
+
<a name="M000133"></a><b>reject!</b>( &block )
|
971
971
|
</div>
|
972
972
|
<div class="sourcecode">
|
973
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
974
|
-
<div id="
|
973
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000133_source')" id="l_M000133_source">show source</a> ]</p>
|
974
|
+
<div id="M000133_source" class="dyn-source">
|
975
975
|
<pre>
|
976
976
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 350</span>
|
977
977
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reject!</span>( <span class="ruby-operator">&</span><span class="ruby-identifier">block</span> )
|
@@ -984,11 +984,11 @@ This is equivalent to:
|
|
984
984
|
</div>
|
985
985
|
<div class="method">
|
986
986
|
<div class="title">
|
987
|
-
<a name="
|
987
|
+
<a name="M000115"></a><b>reorder</b>()
|
988
988
|
</div>
|
989
989
|
<div class="sourcecode">
|
990
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
991
|
-
<div id="
|
990
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000115_source')" id="l_M000115_source">show source</a> ]</p>
|
991
|
+
<div id="M000115_source" class="dyn-source">
|
992
992
|
<pre>
|
993
993
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 243</span>
|
994
994
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reorder</span>
|
@@ -1004,11 +1004,11 @@ This is equivalent to:
|
|
1004
1004
|
</div>
|
1005
1005
|
<div class="method">
|
1006
1006
|
<div class="title">
|
1007
|
-
<a name="
|
1007
|
+
<a name="M000134"></a><b>replace</b>( hsh2 )
|
1008
1008
|
</div>
|
1009
1009
|
<div class="sourcecode">
|
1010
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1011
|
-
<div id="
|
1010
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000134_source')" id="l_M000134_source">show source</a> ]</p>
|
1011
|
+
<div id="M000134_source" class="dyn-source">
|
1012
1012
|
<pre>
|
1013
1013
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 355</span>
|
1014
1014
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">replace</span>( <span class="ruby-identifier">hsh2</span> )
|
@@ -1021,11 +1021,11 @@ This is equivalent to:
|
|
1021
1021
|
</div>
|
1022
1022
|
<div class="method">
|
1023
1023
|
<div class="title">
|
1024
|
-
<a name="
|
1024
|
+
<a name="M000147"></a><b>reverse</b>()
|
1025
1025
|
</div>
|
1026
1026
|
<div class="sourcecode">
|
1027
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1028
|
-
<div id="
|
1027
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000147_source')" id="l_M000147_source">show source</a> ]</p>
|
1028
|
+
<div id="M000147_source" class="dyn-source">
|
1029
1029
|
<pre>
|
1030
1030
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 428</span>
|
1031
1031
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reverse</span>
|
@@ -1037,11 +1037,11 @@ This is equivalent to:
|
|
1037
1037
|
</div>
|
1038
1038
|
<div class="method">
|
1039
1039
|
<div class="title">
|
1040
|
-
<a name="
|
1040
|
+
<a name="M000146"></a><b>reverse!</b>()
|
1041
1041
|
</div>
|
1042
1042
|
<div class="sourcecode">
|
1043
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1044
|
-
<div id="
|
1043
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000146_source')" id="l_M000146_source">show source</a> ]</p>
|
1044
|
+
<div id="M000146_source" class="dyn-source">
|
1045
1045
|
<pre>
|
1046
1046
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 423</span>
|
1047
1047
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reverse!</span>
|
@@ -1054,11 +1054,11 @@ This is equivalent to:
|
|
1054
1054
|
</div>
|
1055
1055
|
<div class="method">
|
1056
1056
|
<div class="title">
|
1057
|
-
<a name="
|
1057
|
+
<a name="M000145"></a><b>select</b>() {|k,v| ...}
|
1058
1058
|
</div>
|
1059
1059
|
<div class="sourcecode">
|
1060
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1061
|
-
<div id="
|
1060
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000145_source')" id="l_M000145_source">show source</a> ]</p>
|
1061
|
+
<div id="M000145_source" class="dyn-source">
|
1062
1062
|
<pre>
|
1063
1063
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 417</span>
|
1064
1064
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">select</span>
|
@@ -1072,11 +1072,11 @@ This is equivalent to:
|
|
1072
1072
|
</div>
|
1073
1073
|
<div class="method">
|
1074
1074
|
<div class="title">
|
1075
|
-
<a name="
|
1075
|
+
<a name="M000135"></a><b>shift</b>()
|
1076
1076
|
</div>
|
1077
1077
|
<div class="sourcecode">
|
1078
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1079
|
-
<div id="
|
1078
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000135_source')" id="l_M000135_source">show source</a> ]</p>
|
1079
|
+
<div id="M000135_source" class="dyn-source">
|
1080
1080
|
<pre>
|
1081
1081
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 360</span>
|
1082
1082
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">shift</span>
|
@@ -1089,21 +1089,21 @@ This is equivalent to:
|
|
1089
1089
|
</div>
|
1090
1090
|
<div class="method">
|
1091
1091
|
<div class="title">
|
1092
|
-
<a name="
|
1092
|
+
<a name="M000151"></a><b>size</b>()
|
1093
1093
|
</div>
|
1094
1094
|
<div class="description">
|
1095
1095
|
<p>
|
1096
|
-
Alias for <a href="Dictionary.html#
|
1096
|
+
Alias for <a href="Dictionary.html#M000150">length</a>
|
1097
1097
|
</p>
|
1098
1098
|
</div>
|
1099
1099
|
</div>
|
1100
1100
|
<div class="method">
|
1101
1101
|
<div class="title">
|
1102
|
-
<a name="
|
1102
|
+
<a name="M000121"></a><b>store</b>( a,b )
|
1103
1103
|
</div>
|
1104
1104
|
<div class="sourcecode">
|
1105
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1106
|
-
<div id="
|
1105
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000121_source')" id="l_M000121_source">show source</a> ]</p>
|
1106
|
+
<div id="M000121_source" class="dyn-source">
|
1107
1107
|
<pre>
|
1108
1108
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 294</span>
|
1109
1109
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store</span>( <span class="ruby-identifier">a</span>,<span class="ruby-identifier">b</span> )
|
@@ -1116,11 +1116,11 @@ Alias for <a href="Dictionary.html#M000149">length</a>
|
|
1116
1116
|
</div>
|
1117
1117
|
<div class="method">
|
1118
1118
|
<div class="title">
|
1119
|
-
<a name="
|
1119
|
+
<a name="M000155"></a><b>to_a</b>()
|
1120
1120
|
</div>
|
1121
1121
|
<div class="sourcecode">
|
1122
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1123
|
-
<div id="
|
1122
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000155_source')" id="l_M000155_source">show source</a> ]</p>
|
1123
|
+
<div id="M000155_source" class="dyn-source">
|
1124
1124
|
<pre>
|
1125
1125
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 461</span>
|
1126
1126
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_a</span>
|
@@ -1134,11 +1134,11 @@ Alias for <a href="Dictionary.html#M000149">length</a>
|
|
1134
1134
|
</div>
|
1135
1135
|
<div class="method">
|
1136
1136
|
<div class="title">
|
1137
|
-
<a name="
|
1137
|
+
<a name="M000158"></a><b>to_h</b>()
|
1138
1138
|
</div>
|
1139
1139
|
<div class="sourcecode">
|
1140
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1141
|
-
<div id="
|
1140
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000158_source')" id="l_M000158_source">show source</a> ]</p>
|
1141
|
+
<div id="M000158_source" class="dyn-source">
|
1142
1142
|
<pre>
|
1143
1143
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 475</span>
|
1144
1144
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_h</span>
|
@@ -1150,11 +1150,11 @@ Alias for <a href="Dictionary.html#M000149">length</a>
|
|
1150
1150
|
</div>
|
1151
1151
|
<div class="method">
|
1152
1152
|
<div class="title">
|
1153
|
-
<a name="
|
1153
|
+
<a name="M000157"></a><b>to_hash</b>()
|
1154
1154
|
</div>
|
1155
1155
|
<div class="sourcecode">
|
1156
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1157
|
-
<div id="
|
1156
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000157_source')" id="l_M000157_source">show source</a> ]</p>
|
1157
|
+
<div id="M000157_source" class="dyn-source">
|
1158
1158
|
<pre>
|
1159
1159
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 471</span>
|
1160
1160
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_hash</span>
|
@@ -1166,11 +1166,11 @@ Alias for <a href="Dictionary.html#M000149">length</a>
|
|
1166
1166
|
</div>
|
1167
1167
|
<div class="method">
|
1168
1168
|
<div class="title">
|
1169
|
-
<a name="
|
1169
|
+
<a name="M000156"></a><b>to_s</b>()
|
1170
1170
|
</div>
|
1171
1171
|
<div class="sourcecode">
|
1172
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1173
|
-
<div id="
|
1172
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000156_source')" id="l_M000156_source">show source</a> ]</p>
|
1173
|
+
<div id="M000156_source" class="dyn-source">
|
1174
1174
|
<pre>
|
1175
1175
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 467</span>
|
1176
1176
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
|
@@ -1182,11 +1182,11 @@ Alias for <a href="Dictionary.html#M000149">length</a>
|
|
1182
1182
|
</div>
|
1183
1183
|
<div class="method">
|
1184
1184
|
<div class="title">
|
1185
|
-
<a name="
|
1185
|
+
<a name="M000136"></a><b>unshift</b>( k,v )
|
1186
1186
|
</div>
|
1187
1187
|
<div class="sourcecode">
|
1188
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1189
|
-
<div id="
|
1188
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000136_source')" id="l_M000136_source">show source</a> ]</p>
|
1189
|
+
<div id="M000136_source" class="dyn-source">
|
1190
1190
|
<pre>
|
1191
1191
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 365</span>
|
1192
1192
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unshift</span>( <span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span> )
|
@@ -1204,15 +1204,15 @@ Alias for <a href="Dictionary.html#M000149">length</a>
|
|
1204
1204
|
</div>
|
1205
1205
|
<div class="method">
|
1206
1206
|
<div class="title">
|
1207
|
-
<a name="
|
1207
|
+
<a name="M000142"></a><b>update</b>( hsh2 )
|
1208
1208
|
</div>
|
1209
1209
|
<div class="aka">
|
1210
1210
|
This method is also aliased as
|
1211
|
-
<a href="Dictionary.html#
|
1211
|
+
<a href="Dictionary.html#M000143">merge!</a>
|
1212
1212
|
</div>
|
1213
1213
|
<div class="sourcecode">
|
1214
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1215
|
-
<div id="
|
1214
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000142_source')" id="l_M000142_source">show source</a> ]</p>
|
1215
|
+
<div id="M000142_source" class="dyn-source">
|
1216
1216
|
<pre>
|
1217
1217
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 406</span>
|
1218
1218
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update</span>( <span class="ruby-identifier">hsh2</span> )
|
@@ -1226,11 +1226,11 @@ Alias for <a href="Dictionary.html#M000149">length</a>
|
|
1226
1226
|
</div>
|
1227
1227
|
<div class="method">
|
1228
1228
|
<div class="title">
|
1229
|
-
<a name="
|
1229
|
+
<a name="M000129"></a><b>values</b>()
|
1230
1230
|
</div>
|
1231
1231
|
<div class="sourcecode">
|
1232
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1233
|
-
<div id="
|
1232
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000129_source')" id="l_M000129_source">show source</a> ]</p>
|
1233
|
+
<div id="M000129_source" class="dyn-source">
|
1234
1234
|
<pre>
|
1235
1235
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionary.rb, line 330</span>
|
1236
1236
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">values</span>
|