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
@@ -77,11 +77,11 @@ Object
|
|
77
77
|
|
78
78
|
<div class="description"><h1><a href="Tuple.html">Tuple</a></h1>
|
79
79
|
<p>
|
80
|
-
A tuple can be made using <a href="Tuple.html#
|
81
|
-
as one builds an array, or using the <a href="Tuple.html#
|
80
|
+
A tuple can be made using <a href="Tuple.html#M000556">new</a> or #[] just
|
81
|
+
as one builds an array, or using the <a href="Tuple.html#M000560">to_t</a>
|
82
82
|
method on a string or array. With a string tuple remembers the <a
|
83
|
-
href="Tuple.html#
|
84
|
-
<a href="Tuple.html#
|
83
|
+
href="Tuple.html#M000584">first</a> non-alphanumeric character as the tuple
|
84
|
+
<a href="Tuple.html#M000557">divider</a>.
|
85
85
|
</p>
|
86
86
|
<h2>Usage</h2>
|
87
87
|
<pre>
|
@@ -110,46 +110,46 @@ href="Tuple.html">Tuple</a>[‘1’,’2’,’3’].
|
|
110
110
|
|
111
111
|
<div class="sectiontitle">Methods</div>
|
112
112
|
<ul>
|
113
|
-
<li><a href="#
|
114
|
-
<li><a href="#
|
115
|
-
<li><a href="#
|
116
|
-
<li><a href="#
|
117
|
-
<li><a href="#
|
118
|
-
<li><a href="#
|
119
|
-
<li><a href="#
|
120
|
-
<li><a href="#
|
121
|
-
<li><a href="#
|
122
|
-
<li><a href="#
|
123
|
-
<li><a href="#
|
124
|
-
<li><a href="#
|
125
|
-
<li><a href="#
|
126
|
-
<li><a href="#
|
127
|
-
<li><a href="#
|
128
|
-
<li><a href="#
|
129
|
-
<li><a href="#
|
130
|
-
<li><a href="#
|
131
|
-
<li><a href="#
|
132
|
-
<li><a href="#
|
133
|
-
<li><a href="#
|
134
|
-
<li><a href="#
|
135
|
-
<li><a href="#
|
136
|
-
<li><a href="#
|
137
|
-
<li><a href="#
|
138
|
-
<li><a href="#
|
139
|
-
<li><a href="#
|
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="#
|
113
|
+
<li><a href="#M000574"><<</a></li>
|
114
|
+
<li><a href="#M000582"><=></a></li>
|
115
|
+
<li><a href="#M000583">=~</a></li>
|
116
|
+
<li><a href="#M000570">[]</a></li>
|
117
|
+
<li><a href="#M000590">[]</a></li>
|
118
|
+
<li><a href="#M000571">[]=</a></li>
|
119
|
+
<li><a href="#M000592">cast_from_array</a></li>
|
120
|
+
<li><a href="#M000591">cast_from_string</a></li>
|
121
|
+
<li><a href="#M000593">constraint_to_lambda</a></li>
|
122
|
+
<li><a href="#M000557">divider</a></li>
|
123
|
+
<li><a href="#M000568">each</a></li>
|
124
|
+
<li><a href="#M000569">each_index</a></li>
|
125
|
+
<li><a href="#M000567">empty?</a></li>
|
126
|
+
<li><a href="#M000581">eql?</a></li>
|
127
|
+
<li><a href="#M000584">first</a></li>
|
128
|
+
<li><a href="#M000589">hash</a></li>
|
129
|
+
<li><a href="#M000572">index</a></li>
|
130
|
+
<li><a href="#M000559">inspect</a></li>
|
131
|
+
<li><a href="#M000585">last</a></li>
|
132
|
+
<li><a href="#M000566">length</a></li>
|
133
|
+
<li><a href="#M000586">major</a></li>
|
134
|
+
<li><a href="#M000587">minor</a></li>
|
135
|
+
<li><a href="#M000555">multiton_id</a></li>
|
136
|
+
<li><a href="#M000556">new</a></li>
|
137
|
+
<li><a href="#M000594">parse_constraint</a></li>
|
138
|
+
<li><a href="#M000575">pop</a></li>
|
139
|
+
<li><a href="#M000578">pot</a></li>
|
140
|
+
<li><a href="#M000577">pull</a></li>
|
141
|
+
<li><a href="#M000576">push</a></li>
|
142
|
+
<li><a href="#M000573">rindex</a></li>
|
143
|
+
<li><a href="#M000580">shift</a></li>
|
144
|
+
<li><a href="#M000565">size</a></li>
|
145
|
+
<li><a href="#M000588">teeny</a></li>
|
146
|
+
<li><a href="#M000562">to_a</a></li>
|
147
|
+
<li><a href="#M000563">to_ary</a></li>
|
148
|
+
<li><a href="#M000564">to_s</a></li>
|
149
|
+
<li><a href="#M000560">to_t</a></li>
|
150
|
+
<li><a href="#M000561">to_tuple</a></li>
|
151
|
+
<li><a href="#M000579">unshift</a></li>
|
152
|
+
<li><a href="#M000558">values</a></li>
|
153
153
|
</ul>
|
154
154
|
|
155
155
|
<div class="sectiontitle">Included Modules</div>
|
@@ -176,11 +176,11 @@ href="Tuple.html">Tuple</a>[‘1’,’2’,’3’].
|
|
176
176
|
<div class="sectiontitle">Public Class methods</div>
|
177
177
|
<div class="method">
|
178
178
|
<div class="title">
|
179
|
-
<a name="
|
179
|
+
<a name="M000590"></a><b>[]</b>( *args )
|
180
180
|
</div>
|
181
181
|
<div class="sourcecode">
|
182
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
183
|
-
<div id="
|
182
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000590_source')" id="l_M000590_source">show source</a> ]</p>
|
183
|
+
<div id="M000590_source" class="dyn-source">
|
184
184
|
<pre>
|
185
185
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 226</span>
|
186
186
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>( <span class="ruby-operator">*</span><span class="ruby-identifier">args</span> )
|
@@ -192,11 +192,11 @@ href="Tuple.html">Tuple</a>[‘1’,’2’,’3’].
|
|
192
192
|
</div>
|
193
193
|
<div class="method">
|
194
194
|
<div class="title">
|
195
|
-
<a name="
|
195
|
+
<a name="M000592"></a><b>cast_from_array</b>( arr )
|
196
196
|
</div>
|
197
197
|
<div class="sourcecode">
|
198
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
199
|
-
<div id="
|
198
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000592_source')" id="l_M000592_source">show source</a> ]</p>
|
199
|
+
<div id="M000592_source" class="dyn-source">
|
200
200
|
<pre>
|
201
201
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 257</span>
|
202
202
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cast_from_array</span>( <span class="ruby-identifier">arr</span> )
|
@@ -208,13 +208,13 @@ href="Tuple.html">Tuple</a>[‘1’,’2’,’3’].
|
|
208
208
|
</div>
|
209
209
|
<div class="method">
|
210
210
|
<div class="title">
|
211
|
-
<a name="
|
211
|
+
<a name="M000591"></a><b>cast_from_string</b>( str, &yld )
|
212
212
|
</div>
|
213
213
|
<div class="description">
|
214
214
|
<p>
|
215
215
|
Translates a string in the form on a set of numerical and/or alphanumerical
|
216
216
|
characters separated by non-word characters (eg \W+) into a <a
|
217
|
-
href="Tuple.html">Tuple</a>. The <a href="Tuple.html#
|
217
|
+
href="Tuple.html">Tuple</a>. The <a href="Tuple.html#M000558">values</a> of
|
218
218
|
the tuple will be converted to integers if they are purely numerical.
|
219
219
|
</p>
|
220
220
|
<pre>
|
@@ -222,7 +222,7 @@ the tuple will be converted to integers if they are purely numerical.
|
|
222
222
|
</pre>
|
223
223
|
<p>
|
224
224
|
<a href="It.html">It</a> you would like to control the interpretation of <a
|
225
|
-
href="Tuple.html#
|
225
|
+
href="Tuple.html#M000568">each</a> value as it is added to the tuple you
|
226
226
|
can supply a block.
|
227
227
|
</p>
|
228
228
|
<pre>
|
@@ -233,8 +233,8 @@ This method is called by String#to_t.
|
|
233
233
|
</p>
|
234
234
|
</div>
|
235
235
|
<div class="sourcecode">
|
236
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
237
|
-
<div id="
|
236
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000591_source')" id="l_M000591_source">show source</a> ]</p>
|
237
|
+
<div id="M000591_source" class="dyn-source">
|
238
238
|
<pre>
|
239
239
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 244</span>
|
240
240
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cast_from_string</span>( <span class="ruby-identifier">str</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">yld</span> )
|
@@ -253,7 +253,7 @@ This method is called by String#to_t.
|
|
253
253
|
</div>
|
254
254
|
<div class="method">
|
255
255
|
<div class="title">
|
256
|
-
<a name="
|
256
|
+
<a name="M000593"></a><b>constraint_to_lambda</b>( constraint, &yld )
|
257
257
|
</div>
|
258
258
|
<div class="description">
|
259
259
|
<p>
|
@@ -261,8 +261,8 @@ Parses a constraint returning the operation as a lambda.
|
|
261
261
|
</p>
|
262
262
|
</div>
|
263
263
|
<div class="sourcecode">
|
264
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
265
|
-
<div id="
|
264
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000593_source')" id="l_M000593_source">show source</a> ]</p>
|
265
|
+
<div id="M000593_source" class="dyn-source">
|
266
266
|
<pre>
|
267
267
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 263</span>
|
268
268
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">constraint_to_lambda</span>( <span class="ruby-identifier">constraint</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">yld</span> )
|
@@ -275,11 +275,11 @@ Parses a constraint returning the operation as a lambda.
|
|
275
275
|
</div>
|
276
276
|
<div class="method">
|
277
277
|
<div class="title">
|
278
|
-
<a name="
|
278
|
+
<a name="M000555"></a><b>multiton_id</b>(arg=0, default=0, &block)
|
279
279
|
</div>
|
280
280
|
<div class="sourcecode">
|
281
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
282
|
-
<div id="
|
281
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000555_source')" id="l_M000555_source">show source</a> ]</p>
|
282
|
+
<div id="M000555_source" class="dyn-source">
|
283
283
|
<pre>
|
284
284
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 83</span>
|
285
285
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">multiton_id</span>(<span class="ruby-identifier">arg</span>=<span class="ruby-value">0</span>, <span class="ruby-identifier">default</span>=<span class="ruby-value">0</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -299,11 +299,11 @@ Parses a constraint returning the operation as a lambda.
|
|
299
299
|
</div>
|
300
300
|
<div class="method">
|
301
301
|
<div class="title">
|
302
|
-
<a name="
|
302
|
+
<a name="M000556"></a><b>new</b>(arg=0, default=0, &blk)
|
303
303
|
</div>
|
304
304
|
<div class="sourcecode">
|
305
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
306
|
-
<div id="
|
305
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000556_source')" id="l_M000556_source">show source</a> ]</p>
|
306
|
+
<div id="M000556_source" class="dyn-source">
|
307
307
|
<pre>
|
308
308
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 95</span>
|
309
309
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">arg</span>=<span class="ruby-value">0</span>, <span class="ruby-identifier">default</span>=<span class="ruby-value">0</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
@@ -324,11 +324,11 @@ Parses a constraint returning the operation as a lambda.
|
|
324
324
|
</div>
|
325
325
|
<div class="method">
|
326
326
|
<div class="title">
|
327
|
-
<a name="
|
327
|
+
<a name="M000594"></a><b>parse_constraint</b>( constraint, &yld )
|
328
328
|
</div>
|
329
329
|
<div class="sourcecode">
|
330
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
331
|
-
<div id="
|
330
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000594_source')" id="l_M000594_source">show source</a> ]</p>
|
331
|
+
<div id="M000594_source" class="dyn-source">
|
332
332
|
<pre>
|
333
333
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 268</span>
|
334
334
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parse_constraint</span>( <span class="ruby-identifier">constraint</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">yld</span> )
|
@@ -355,7 +355,7 @@ Parses a constraint returning the operation as a lambda.
|
|
355
355
|
<div class="sectiontitle">Public Instance methods</div>
|
356
356
|
<div class="method">
|
357
357
|
<div class="title">
|
358
|
-
<a name="
|
358
|
+
<a name="M000574"></a><b><<</b>( obj )
|
359
359
|
</div>
|
360
360
|
<div class="description">
|
361
361
|
<p>
|
@@ -364,8 +364,8 @@ becuase <a href="Tuple.html">Tuple</a>‘s are immutable.
|
|
364
364
|
</p>
|
365
365
|
</div>
|
366
366
|
<div class="sourcecode">
|
367
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
368
|
-
<div id="
|
367
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000574_source')" id="l_M000574_source">show source</a> ]</p>
|
368
|
+
<div id="M000574_source" class="dyn-source">
|
369
369
|
<pre>
|
370
370
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 164</span>
|
371
371
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator"><<</span>( <span class="ruby-identifier">obj</span> )
|
@@ -377,11 +377,11 @@ becuase <a href="Tuple.html">Tuple</a>‘s are immutable.
|
|
377
377
|
</div>
|
378
378
|
<div class="method">
|
379
379
|
<div class="title">
|
380
|
-
<a name="
|
380
|
+
<a name="M000582"></a><b><=></b>( other )
|
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('M000582_source')" id="l_M000582_source">show source</a> ]</p>
|
384
|
+
<div id="M000582_source" class="dyn-source">
|
385
385
|
<pre>
|
386
386
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 190</span>
|
387
387
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator"><=></span>( <span class="ruby-identifier">other</span> )
|
@@ -398,7 +398,7 @@ becuase <a href="Tuple.html">Tuple</a>‘s are immutable.
|
|
398
398
|
</div>
|
399
399
|
<div class="method">
|
400
400
|
<div class="title">
|
401
|
-
<a name="
|
401
|
+
<a name="M000583"></a><b>=~</b>( other )
|
402
402
|
</div>
|
403
403
|
<div class="description">
|
404
404
|
<p>
|
@@ -406,8 +406,8 @@ For pessimistic constraint (like ’~>’ in gems)
|
|
406
406
|
</p>
|
407
407
|
</div>
|
408
408
|
<div class="sourcecode">
|
409
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
410
|
-
<div id="
|
409
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000583_source')" id="l_M000583_source">show source</a> ]</p>
|
410
|
+
<div id="M000583_source" class="dyn-source">
|
411
411
|
<pre>
|
412
412
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 200</span>
|
413
413
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">=~</span>( <span class="ruby-identifier">other</span> )
|
@@ -422,11 +422,11 @@ For pessimistic constraint (like ’~>’ in gems)
|
|
422
422
|
</div>
|
423
423
|
<div class="method">
|
424
424
|
<div class="title">
|
425
|
-
<a name="
|
425
|
+
<a name="M000570"></a><b>[]</b>(i)
|
426
426
|
</div>
|
427
427
|
<div class="sourcecode">
|
428
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
429
|
-
<div id="
|
428
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000570_source')" id="l_M000570_source">show source</a> ]</p>
|
429
|
+
<div id="M000570_source" class="dyn-source">
|
430
430
|
<pre>
|
431
431
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 151</span>
|
432
432
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">i</span>)
|
@@ -438,11 +438,11 @@ For pessimistic constraint (like ’~>’ in gems)
|
|
438
438
|
</div>
|
439
439
|
<div class="method">
|
440
440
|
<div class="title">
|
441
|
-
<a name="
|
441
|
+
<a name="M000571"></a><b>[]=</b>(i,v)
|
442
442
|
</div>
|
443
443
|
<div class="sourcecode">
|
444
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
445
|
-
<div id="
|
444
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000571_source')" id="l_M000571_source">show source</a> ]</p>
|
445
|
+
<div id="M000571_source" class="dyn-source">
|
446
446
|
<pre>
|
447
447
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 155</span>
|
448
448
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]=</span>(<span class="ruby-identifier">i</span>,<span class="ruby-identifier">v</span>)
|
@@ -454,11 +454,11 @@ For pessimistic constraint (like ’~>’ in gems)
|
|
454
454
|
</div>
|
455
455
|
<div class="method">
|
456
456
|
<div class="title">
|
457
|
-
<a name="
|
457
|
+
<a name="M000557"></a><b>divider</b>( set=nil )
|
458
458
|
</div>
|
459
459
|
<div class="sourcecode">
|
460
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
461
|
-
<div id="
|
460
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000557_source')" id="l_M000557_source">show source</a> ]</p>
|
461
|
+
<div id="M000557_source" class="dyn-source">
|
462
462
|
<pre>
|
463
463
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 110</span>
|
464
464
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">divider</span>( <span class="ruby-identifier">set</span>=<span class="ruby-keyword kw">nil</span> )
|
@@ -472,11 +472,11 @@ For pessimistic constraint (like ’~>’ in gems)
|
|
472
472
|
</div>
|
473
473
|
<div class="method">
|
474
474
|
<div class="title">
|
475
|
-
<a name="
|
475
|
+
<a name="M000568"></a><b>each</b>( &block )
|
476
476
|
</div>
|
477
477
|
<div class="sourcecode">
|
478
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
479
|
-
<div id="
|
478
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000568_source')" id="l_M000568_source">show source</a> ]</p>
|
479
|
+
<div id="M000568_source" class="dyn-source">
|
480
480
|
<pre>
|
481
481
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 143</span>
|
482
482
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each</span>( <span class="ruby-operator">&</span><span class="ruby-identifier">block</span> )
|
@@ -488,11 +488,11 @@ For pessimistic constraint (like ’~>’ in gems)
|
|
488
488
|
</div>
|
489
489
|
<div class="method">
|
490
490
|
<div class="title">
|
491
|
-
<a name="
|
491
|
+
<a name="M000569"></a><b>each_index</b>( &block )
|
492
492
|
</div>
|
493
493
|
<div class="sourcecode">
|
494
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
495
|
-
<div id="
|
494
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000569_source')" id="l_M000569_source">show source</a> ]</p>
|
495
|
+
<div id="M000569_source" class="dyn-source">
|
496
496
|
<pre>
|
497
497
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 147</span>
|
498
498
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_index</span>( <span class="ruby-operator">&</span><span class="ruby-identifier">block</span> )
|
@@ -504,11 +504,11 @@ For pessimistic constraint (like ’~>’ in gems)
|
|
504
504
|
</div>
|
505
505
|
<div class="method">
|
506
506
|
<div class="title">
|
507
|
-
<a name="
|
507
|
+
<a name="M000567"></a><b>empty?</b>()
|
508
508
|
</div>
|
509
509
|
<div class="sourcecode">
|
510
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
511
|
-
<div id="
|
510
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000567_source')" id="l_M000567_source">show source</a> ]</p>
|
511
|
+
<div id="M000567_source" class="dyn-source">
|
512
512
|
<pre>
|
513
513
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 137</span>
|
514
514
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">empty?</span>()
|
@@ -522,7 +522,7 @@ For pessimistic constraint (like ’~>’ in gems)
|
|
522
522
|
</div>
|
523
523
|
<div class="method">
|
524
524
|
<div class="title">
|
525
|
-
<a name="
|
525
|
+
<a name="M000581"></a><b>eql?</b>( other )
|
526
526
|
</div>
|
527
527
|
<div class="description">
|
528
528
|
<p>
|
@@ -530,8 +530,8 @@ Returns true if two tuple references are for the very same tuple.
|
|
530
530
|
</p>
|
531
531
|
</div>
|
532
532
|
<div class="sourcecode">
|
533
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
534
|
-
<div id="
|
533
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000581_source')" id="l_M000581_source">show source</a> ]</p>
|
534
|
+
<div id="M000581_source" class="dyn-source">
|
535
535
|
<pre>
|
536
536
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 185</span>
|
537
537
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">eql?</span>( <span class="ruby-identifier">other</span> )
|
@@ -544,11 +544,11 @@ Returns true if two tuple references are for the very same tuple.
|
|
544
544
|
</div>
|
545
545
|
<div class="method">
|
546
546
|
<div class="title">
|
547
|
-
<a name="
|
547
|
+
<a name="M000584"></a><b>first</b>()
|
548
548
|
</div>
|
549
549
|
<div class="sourcecode">
|
550
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
551
|
-
<div id="
|
550
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000584_source')" id="l_M000584_source">show source</a> ]</p>
|
551
|
+
<div id="M000584_source" class="dyn-source">
|
552
552
|
<pre>
|
553
553
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 207</span>
|
554
554
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">first</span>() <span class="ruby-ivar">@values</span>.<span class="ruby-identifier">first</span> <span class="ruby-keyword kw">end</span>
|
@@ -558,16 +558,16 @@ Returns true if two tuple references are for the very same tuple.
|
|
558
558
|
</div>
|
559
559
|
<div class="method">
|
560
560
|
<div class="title">
|
561
|
-
<a name="
|
561
|
+
<a name="M000589"></a><b>hash</b>()
|
562
562
|
</div>
|
563
563
|
<div class="description">
|
564
564
|
<p>
|
565
|
-
Unique <a href="Tuple.html#
|
565
|
+
Unique <a href="Tuple.html#M000589">hash</a> value.
|
566
566
|
</p>
|
567
567
|
</div>
|
568
568
|
<div class="sourcecode">
|
569
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
570
|
-
<div id="
|
569
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000589_source')" id="l_M000589_source">show source</a> ]</p>
|
570
|
+
<div id="M000589_source" class="dyn-source">
|
571
571
|
<pre>
|
572
572
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 216</span>
|
573
573
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">hash</span>
|
@@ -581,11 +581,11 @@ Unique <a href="Tuple.html#M000579">hash</a> value.
|
|
581
581
|
</div>
|
582
582
|
<div class="method">
|
583
583
|
<div class="title">
|
584
|
-
<a name="
|
584
|
+
<a name="M000572"></a><b>index</b>()
|
585
585
|
</div>
|
586
586
|
<div class="sourcecode">
|
587
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
588
|
-
<div id="
|
587
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000572_source')" id="l_M000572_source">show source</a> ]</p>
|
588
|
+
<div id="M000572_source" class="dyn-source">
|
589
589
|
<pre>
|
590
590
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 159</span>
|
591
591
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">index</span>() <span class="ruby-ivar">@values</span>.<span class="ruby-identifier">index</span> <span class="ruby-keyword kw">end</span>
|
@@ -595,11 +595,11 @@ Unique <a href="Tuple.html#M000579">hash</a> value.
|
|
595
595
|
</div>
|
596
596
|
<div class="method">
|
597
597
|
<div class="title">
|
598
|
-
<a name="
|
598
|
+
<a name="M000559"></a><b>inspect</b>()
|
599
599
|
</div>
|
600
600
|
<div class="sourcecode">
|
601
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
602
|
-
<div id="
|
601
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000559_source')" id="l_M000559_source">show source</a> ]</p>
|
602
|
+
<div id="M000559_source" class="dyn-source">
|
603
603
|
<pre>
|
604
604
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 122</span>
|
605
605
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inspect</span>() <span class="ruby-identifier">to_a</span>.<span class="ruby-identifier">inspect</span> <span class="ruby-keyword kw">end</span>
|
@@ -609,11 +609,11 @@ Unique <a href="Tuple.html#M000579">hash</a> value.
|
|
609
609
|
</div>
|
610
610
|
<div class="method">
|
611
611
|
<div class="title">
|
612
|
-
<a name="
|
612
|
+
<a name="M000585"></a><b>last</b>()
|
613
613
|
</div>
|
614
614
|
<div class="sourcecode">
|
615
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
616
|
-
<div id="
|
615
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000585_source')" id="l_M000585_source">show source</a> ]</p>
|
616
|
+
<div id="M000585_source" class="dyn-source">
|
617
617
|
<pre>
|
618
618
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 208</span>
|
619
619
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">last</span>() <span class="ruby-ivar">@values</span>.<span class="ruby-identifier">last</span> <span class="ruby-keyword kw">end</span>
|
@@ -623,11 +623,11 @@ Unique <a href="Tuple.html#M000579">hash</a> value.
|
|
623
623
|
</div>
|
624
624
|
<div class="method">
|
625
625
|
<div class="title">
|
626
|
-
<a name="
|
626
|
+
<a name="M000566"></a><b>length</b>()
|
627
627
|
</div>
|
628
628
|
<div class="sourcecode">
|
629
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
630
|
-
<div id="
|
629
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000566_source')" id="l_M000566_source">show source</a> ]</p>
|
630
|
+
<div id="M000566_source" class="dyn-source">
|
631
631
|
<pre>
|
632
632
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 135</span>
|
633
633
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">length</span>() <span class="ruby-ivar">@values</span>.<span class="ruby-identifier">size</span> <span class="ruby-keyword kw">end</span>
|
@@ -637,7 +637,7 @@ Unique <a href="Tuple.html#M000579">hash</a> value.
|
|
637
637
|
</div>
|
638
638
|
<div class="method">
|
639
639
|
<div class="title">
|
640
|
-
<a name="
|
640
|
+
<a name="M000586"></a><b>major</b>()
|
641
641
|
</div>
|
642
642
|
<div class="description">
|
643
643
|
<p>
|
@@ -645,8 +645,8 @@ These are useful for using a <a href="Tuple.html">Tuple</a> as a version.
|
|
645
645
|
</p>
|
646
646
|
</div>
|
647
647
|
<div class="sourcecode">
|
648
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
649
|
-
<div id="
|
648
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000586_source')" id="l_M000586_source">show source</a> ]</p>
|
649
|
+
<div id="M000586_source" class="dyn-source">
|
650
650
|
<pre>
|
651
651
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 211</span>
|
652
652
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">major</span>() <span class="ruby-ivar">@values</span>.<span class="ruby-identifier">first</span> <span class="ruby-keyword kw">end</span>
|
@@ -656,11 +656,11 @@ These are useful for using a <a href="Tuple.html">Tuple</a> as a version.
|
|
656
656
|
</div>
|
657
657
|
<div class="method">
|
658
658
|
<div class="title">
|
659
|
-
<a name="
|
659
|
+
<a name="M000587"></a><b>minor</b>()
|
660
660
|
</div>
|
661
661
|
<div class="sourcecode">
|
662
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
663
|
-
<div id="
|
662
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000587_source')" id="l_M000587_source">show source</a> ]</p>
|
663
|
+
<div id="M000587_source" class="dyn-source">
|
664
664
|
<pre>
|
665
665
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 212</span>
|
666
666
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">minor</span>() <span class="ruby-ivar">@values</span>.<span class="ruby-identifier">at</span>(<span class="ruby-value">1</span>) <span class="ruby-keyword kw">end</span>
|
@@ -670,11 +670,11 @@ These are useful for using a <a href="Tuple.html">Tuple</a> as a version.
|
|
670
670
|
</div>
|
671
671
|
<div class="method">
|
672
672
|
<div class="title">
|
673
|
-
<a name="
|
673
|
+
<a name="M000575"></a><b>pop</b>()
|
674
674
|
</div>
|
675
675
|
<div class="sourcecode">
|
676
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
677
|
-
<div id="
|
676
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000575_source')" id="l_M000575_source">show source</a> ]</p>
|
677
|
+
<div id="M000575_source" class="dyn-source">
|
678
678
|
<pre>
|
679
679
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 168</span>
|
680
680
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pop</span>() <span class="ruby-constant">Tuple</span>.<span class="ruby-identifier">instance</span>( <span class="ruby-identifier">to_a</span>.<span class="ruby-identifier">pop</span> ) <span class="ruby-keyword kw">end</span>
|
@@ -684,22 +684,22 @@ These are useful for using a <a href="Tuple.html">Tuple</a> as a version.
|
|
684
684
|
</div>
|
685
685
|
<div class="method">
|
686
686
|
<div class="title">
|
687
|
-
<a name="
|
687
|
+
<a name="M000578"></a><b>pot</b>( obj )
|
688
688
|
</div>
|
689
689
|
<div class="description">
|
690
690
|
<p>
|
691
691
|
Stands for "Put On Top". This method is the opposite of <a
|
692
|
-
href="Tuple.html#
|
693
|
-
href="Tuple.html#
|
692
|
+
href="Tuple.html#M000577">pull</a> and is otherwise known as <a
|
693
|
+
href="Tuple.html#M000579">unshift</a>.
|
694
694
|
</p>
|
695
695
|
</div>
|
696
696
|
<div class="aka">
|
697
697
|
This method is also aliased as
|
698
|
-
<a href="Tuple.html#
|
698
|
+
<a href="Tuple.html#M000579">unshift</a>
|
699
699
|
</div>
|
700
700
|
<div class="sourcecode">
|
701
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
702
|
-
<div id="
|
701
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000578_source')" id="l_M000578_source">show source</a> ]</p>
|
702
|
+
<div id="M000578_source" class="dyn-source">
|
703
703
|
<pre>
|
704
704
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 178</span>
|
705
705
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pot</span>( <span class="ruby-identifier">obj</span> ) <span class="ruby-constant">Tuple</span>.<span class="ruby-identifier">instance</span>( <span class="ruby-identifier">to_a</span>.<span class="ruby-identifier">unshift</span>(<span class="ruby-identifier">obj</span>) ) <span class="ruby-keyword kw">end</span>
|
@@ -709,21 +709,21 @@ href="Tuple.html#M000569">unshift</a>.
|
|
709
709
|
</div>
|
710
710
|
<div class="method">
|
711
711
|
<div class="title">
|
712
|
-
<a name="
|
712
|
+
<a name="M000577"></a><b>pull</b>()
|
713
713
|
</div>
|
714
714
|
<div class="description">
|
715
715
|
<p>
|
716
716
|
Pulls a value off the beginning of a tuple. This method is otherwsie known
|
717
|
-
as <a href="Tuple.html#
|
717
|
+
as <a href="Tuple.html#M000580">shift</a>.
|
718
718
|
</p>
|
719
719
|
</div>
|
720
720
|
<div class="aka">
|
721
721
|
This method is also aliased as
|
722
|
-
<a href="Tuple.html#
|
722
|
+
<a href="Tuple.html#M000580">shift</a>
|
723
723
|
</div>
|
724
724
|
<div class="sourcecode">
|
725
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
726
|
-
<div id="
|
725
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000577_source')" id="l_M000577_source">show source</a> ]</p>
|
726
|
+
<div id="M000577_source" class="dyn-source">
|
727
727
|
<pre>
|
728
728
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 174</span>
|
729
729
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pull</span>() <span class="ruby-constant">Tuple</span>.<span class="ruby-identifier">instance</span>( <span class="ruby-identifier">to_a</span>.<span class="ruby-identifier">shift</span> ) <span class="ruby-keyword kw">end</span>
|
@@ -733,11 +733,11 @@ as <a href="Tuple.html#M000570">shift</a>.
|
|
733
733
|
</div>
|
734
734
|
<div class="method">
|
735
735
|
<div class="title">
|
736
|
-
<a name="
|
736
|
+
<a name="M000576"></a><b>push</b>( obj )
|
737
737
|
</div>
|
738
738
|
<div class="sourcecode">
|
739
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
740
|
-
<div id="
|
739
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000576_source')" id="l_M000576_source">show source</a> ]</p>
|
740
|
+
<div id="M000576_source" class="dyn-source">
|
741
741
|
<pre>
|
742
742
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 170</span>
|
743
743
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">push</span>( <span class="ruby-identifier">obj</span> ) <span class="ruby-constant">Tuple</span>.<span class="ruby-identifier">instance</span>( <span class="ruby-identifier">to_a</span>.<span class="ruby-identifier">push</span>(<span class="ruby-identifier">obj</span>) ) <span class="ruby-keyword kw">end</span>
|
@@ -747,11 +747,11 @@ as <a href="Tuple.html#M000570">shift</a>.
|
|
747
747
|
</div>
|
748
748
|
<div class="method">
|
749
749
|
<div class="title">
|
750
|
-
<a name="
|
750
|
+
<a name="M000573"></a><b>rindex</b>()
|
751
751
|
</div>
|
752
752
|
<div class="sourcecode">
|
753
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
754
|
-
<div id="
|
753
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000573_source')" id="l_M000573_source">show source</a> ]</p>
|
754
|
+
<div id="M000573_source" class="dyn-source">
|
755
755
|
<pre>
|
756
756
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 160</span>
|
757
757
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rindex</span>() <span class="ruby-ivar">@values</span>.<span class="ruby-identifier">rindex</span> <span class="ruby-keyword kw">end</span>
|
@@ -761,21 +761,21 @@ as <a href="Tuple.html#M000570">shift</a>.
|
|
761
761
|
</div>
|
762
762
|
<div class="method">
|
763
763
|
<div class="title">
|
764
|
-
<a name="
|
764
|
+
<a name="M000580"></a><b>shift</b>()
|
765
765
|
</div>
|
766
766
|
<div class="description">
|
767
767
|
<p>
|
768
|
-
Alias for <a href="Tuple.html#
|
768
|
+
Alias for <a href="Tuple.html#M000577">pull</a>
|
769
769
|
</p>
|
770
770
|
</div>
|
771
771
|
</div>
|
772
772
|
<div class="method">
|
773
773
|
<div class="title">
|
774
|
-
<a name="
|
774
|
+
<a name="M000565"></a><b>size</b>()
|
775
775
|
</div>
|
776
776
|
<div class="sourcecode">
|
777
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
778
|
-
<div id="
|
777
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000565_source')" id="l_M000565_source">show source</a> ]</p>
|
778
|
+
<div id="M000565_source" class="dyn-source">
|
779
779
|
<pre>
|
780
780
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 134</span>
|
781
781
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">size</span>() <span class="ruby-ivar">@values</span>.<span class="ruby-identifier">size</span> <span class="ruby-keyword kw">end</span>
|
@@ -785,11 +785,11 @@ Alias for <a href="Tuple.html#M000567">pull</a>
|
|
785
785
|
</div>
|
786
786
|
<div class="method">
|
787
787
|
<div class="title">
|
788
|
-
<a name="
|
788
|
+
<a name="M000588"></a><b>teeny</b>()
|
789
789
|
</div>
|
790
790
|
<div class="sourcecode">
|
791
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
792
|
-
<div id="
|
791
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000588_source')" id="l_M000588_source">show source</a> ]</p>
|
792
|
+
<div id="M000588_source" class="dyn-source">
|
793
793
|
<pre>
|
794
794
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 213</span>
|
795
795
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">teeny</span>() <span class="ruby-ivar">@values</span>.<span class="ruby-identifier">at</span>(<span class="ruby-value">2</span>) <span class="ruby-keyword kw">end</span>
|
@@ -799,11 +799,11 @@ Alias for <a href="Tuple.html#M000567">pull</a>
|
|
799
799
|
</div>
|
800
800
|
<div class="method">
|
801
801
|
<div class="title">
|
802
|
-
<a name="
|
802
|
+
<a name="M000562"></a><b>to_a</b>()
|
803
803
|
</div>
|
804
804
|
<div class="sourcecode">
|
805
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
806
|
-
<div id="
|
805
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000562_source')" id="l_M000562_source">show source</a> ]</p>
|
806
|
+
<div id="M000562_source" class="dyn-source">
|
807
807
|
<pre>
|
808
808
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 127</span>
|
809
809
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_a</span>() <span class="ruby-constant">Array</span>(<span class="ruby-ivar">@values</span>) <span class="ruby-keyword kw">end</span>
|
@@ -813,11 +813,11 @@ Alias for <a href="Tuple.html#M000567">pull</a>
|
|
813
813
|
</div>
|
814
814
|
<div class="method">
|
815
815
|
<div class="title">
|
816
|
-
<a name="
|
816
|
+
<a name="M000563"></a><b>to_ary</b>()
|
817
817
|
</div>
|
818
818
|
<div class="sourcecode">
|
819
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
820
|
-
<div id="
|
819
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000563_source')" id="l_M000563_source">show source</a> ]</p>
|
820
|
+
<div id="M000563_source" class="dyn-source">
|
821
821
|
<pre>
|
822
822
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 128</span>
|
823
823
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_ary</span>() <span class="ruby-constant">Array</span>(<span class="ruby-ivar">@values</span>) <span class="ruby-keyword kw">end</span>
|
@@ -827,11 +827,11 @@ Alias for <a href="Tuple.html#M000567">pull</a>
|
|
827
827
|
</div>
|
828
828
|
<div class="method">
|
829
829
|
<div class="title">
|
830
|
-
<a name="
|
830
|
+
<a name="M000564"></a><b>to_s</b>( divider=nil )
|
831
831
|
</div>
|
832
832
|
<div class="sourcecode">
|
833
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
834
|
-
<div id="
|
833
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000564_source')" id="l_M000564_source">show source</a> ]</p>
|
834
|
+
<div id="M000564_source" class="dyn-source">
|
835
835
|
<pre>
|
836
836
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 130</span>
|
837
837
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>( <span class="ruby-identifier">divider</span>=<span class="ruby-keyword kw">nil</span> )
|
@@ -843,11 +843,11 @@ Alias for <a href="Tuple.html#M000567">pull</a>
|
|
843
843
|
</div>
|
844
844
|
<div class="method">
|
845
845
|
<div class="title">
|
846
|
-
<a name="
|
846
|
+
<a name="M000560"></a><b>to_t</b>()
|
847
847
|
</div>
|
848
848
|
<div class="sourcecode">
|
849
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
850
|
-
<div id="
|
849
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000560_source')" id="l_M000560_source">show source</a> ]</p>
|
850
|
+
<div id="M000560_source" class="dyn-source">
|
851
851
|
<pre>
|
852
852
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 124</span>
|
853
853
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_t</span>() <span class="ruby-keyword kw">self</span> <span class="ruby-keyword kw">end</span>
|
@@ -857,11 +857,11 @@ Alias for <a href="Tuple.html#M000567">pull</a>
|
|
857
857
|
</div>
|
858
858
|
<div class="method">
|
859
859
|
<div class="title">
|
860
|
-
<a name="
|
860
|
+
<a name="M000561"></a><b>to_tuple</b>()
|
861
861
|
</div>
|
862
862
|
<div class="sourcecode">
|
863
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
864
|
-
<div id="
|
863
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000561_source')" id="l_M000561_source">show source</a> ]</p>
|
864
|
+
<div id="M000561_source" class="dyn-source">
|
865
865
|
<pre>
|
866
866
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 125</span>
|
867
867
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_tuple</span>() <span class="ruby-keyword kw">self</span> <span class="ruby-keyword kw">end</span>
|
@@ -871,22 +871,22 @@ Alias for <a href="Tuple.html#M000567">pull</a>
|
|
871
871
|
</div>
|
872
872
|
<div class="method">
|
873
873
|
<div class="title">
|
874
|
-
<a name="
|
874
|
+
<a name="M000579"></a><b>unshift</b>( obj )
|
875
875
|
</div>
|
876
876
|
<div class="description">
|
877
877
|
<p>
|
878
|
-
Alias for <a href="Tuple.html#
|
878
|
+
Alias for <a href="Tuple.html#M000578">pot</a>
|
879
879
|
</p>
|
880
880
|
</div>
|
881
881
|
</div>
|
882
882
|
<div class="sectiontitle">Protected Instance methods</div>
|
883
883
|
<div class="method">
|
884
884
|
<div class="title">
|
885
|
-
<a name="
|
885
|
+
<a name="M000558"></a><b>values</b>()
|
886
886
|
</div>
|
887
887
|
<div class="sourcecode">
|
888
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
889
|
-
<div id="
|
888
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000558_source')" id="l_M000558_source">show source</a> ]</p>
|
889
|
+
<div id="M000558_source" class="dyn-source">
|
890
890
|
<pre>
|
891
891
|
<span class="ruby-comment cmt"># File lib/more/facets/tuple.rb, line 118</span>
|
892
892
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">values</span>() <span class="ruby-ivar">@values</span> <span class="ruby-keyword kw">end</span>
|