facets 2.5.0 → 2.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/AUTHORS +1 -1
- data/CHANGES +28 -45
- data/MANIFEST +35 -4
- data/README +3 -14
- data/RELEASE +36 -70
- data/VERSION +1 -1
- data/doc/archive/RELEASE-2.5.0 +83 -0
- data/doc/log/basic_stats/index.html +4 -4
- data/doc/log/changelog.html +509 -2
- data/doc/log/changelog.txt +130 -1522
- data/doc/rdoc/core/classes/Array.html +366 -141
- data/doc/rdoc/core/classes/Binding.html +45 -45
- data/doc/rdoc/core/classes/Class.html +38 -38
- data/doc/rdoc/core/classes/Comparable.html +26 -26
- data/doc/rdoc/core/classes/Enumerable.html +174 -170
- data/doc/rdoc/core/classes/Enumerable/Enumerator.html +130 -0
- data/doc/rdoc/core/classes/Enumerator.html +132 -0
- data/doc/rdoc/core/classes/Exception.html +8 -8
- data/doc/rdoc/core/classes/File.html +58 -58
- data/doc/rdoc/core/classes/FileTest.html +4 -4
- data/doc/rdoc/core/classes/Float.html +8 -8
- data/doc/rdoc/core/classes/Functor.html +12 -12
- data/doc/rdoc/core/classes/Hash.html +447 -263
- data/doc/rdoc/core/classes/Indexable.html +110 -110
- data/doc/rdoc/core/classes/Integer.html +2 -2
- data/doc/rdoc/core/classes/Kernel.html +329 -329
- data/doc/rdoc/core/classes/Lazy/Promise.html +1 -1
- data/doc/rdoc/core/classes/MatchData.html +15 -15
- data/doc/rdoc/core/classes/Module.html +176 -157
- data/doc/rdoc/core/classes/NilClass.html +23 -23
- data/doc/rdoc/core/classes/Numeric.html +27 -27
- data/doc/rdoc/core/classes/Object.html +8 -8
- data/doc/rdoc/core/classes/ObjectSpace.html +5 -5
- data/doc/rdoc/core/classes/Proc.html +22 -22
- data/doc/rdoc/core/classes/Regexp.html +1 -1
- data/doc/rdoc/core/classes/Stackable.html +31 -31
- data/doc/rdoc/core/classes/String.html +332 -291
- data/doc/rdoc/core/classes/Symbol.html +1 -1
- data/doc/rdoc/core/classes/TrueClass.html +8 -8
- data/doc/rdoc/core/classes/UnboundMethod.html +18 -13
- data/doc/rdoc/core/created.rid +1 -1
- data/doc/rdoc/core/files/README.html +7 -29
- data/doc/rdoc/core/files/lib/core/facets/array/product_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/collect_rb.html +10 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/compact_map_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/enumerable/map_with_index_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/enumerable/split_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/collate_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/group_by_value_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/new_with_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module/conflict_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/extend_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/align_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/file_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/string/xor_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/to_hash_rb.html +5 -1
- data/doc/rdoc/core/files/lib/core/facets/unboundmethod/name_rb.html +1 -1
- data/doc/rdoc/core/fr_class_index.html +2 -0
- data/doc/rdoc/core/fr_file_index.html +6 -0
- data/doc/rdoc/core/fr_method_index.html +386 -373
- data/doc/rdoc/lore/classes/OpenStruct.html +6 -4
- data/doc/rdoc/lore/created.rid +1 -1
- data/doc/rdoc/lore/files/README.html +7 -29
- data/doc/rdoc/lore/files/lib/lore/facets/ostruct_rb.html +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 +67 -53
- data/doc/rdoc/more/classes/Association/Kernel.html +11 -12
- data/doc/rdoc/more/classes/BBCode.html +36 -36
- data/doc/rdoc/more/classes/BaseX.html +16 -16
- data/doc/rdoc/more/classes/BiCrypt.html +67 -67
- 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 +8 -8
- data/doc/rdoc/more/classes/Buildable.html +4 -4
- data/doc/rdoc/more/classes/Cloneable.html +4 -4
- data/doc/rdoc/more/classes/ConsoleUtils.html +18 -18
- data/doc/rdoc/more/classes/Crypt.html +16 -16
- data/doc/rdoc/more/classes/CssTree.html +8 -8
- data/doc/rdoc/more/classes/Dictionary.html +52 -45
- data/doc/rdoc/more/classes/Enumerable.html +50 -50
- 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/Enumerable/Filterable.html +30 -30
- data/doc/rdoc/more/classes/EnumerablePass.html +15 -15
- data/doc/rdoc/more/classes/Equatable.html +16 -16
- data/doc/rdoc/more/classes/Expirable.html +17 -17
- data/doc/rdoc/more/classes/Fileable.html +14 -14
- data/doc/rdoc/more/classes/Fileable/DSL.html +41 -41
- data/doc/rdoc/more/classes/Hash2Xml.html +4 -4
- data/doc/rdoc/more/classes/Hook.html +162 -0
- data/doc/rdoc/more/classes/HtmlFilter.html +9 -9
- data/doc/rdoc/more/classes/Instantiable.html +9 -9
- data/doc/rdoc/more/classes/Instantize.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/Matcher.html +38 -38
- data/doc/rdoc/more/classes/Matcher/MatchData.html +4 -4
- data/doc/rdoc/more/classes/Memoizer.html +21 -21
- 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 +8 -8
- data/doc/rdoc/more/classes/OpEsc.html +5 -5
- data/doc/rdoc/more/classes/OpenCascade.html +4 -4
- data/doc/rdoc/more/classes/OpenHash.html +9 -9
- data/doc/rdoc/more/classes/OpenStructable.html +36 -36
- data/doc/rdoc/more/classes/PQueue.html +84 -84
- data/doc/rdoc/more/classes/Paramix.html +16 -16
- data/doc/rdoc/more/classes/Paramix/Delegator.html +16 -16
- data/doc/rdoc/more/classes/RWDelegator.html +16 -16
- data/doc/rdoc/more/classes/Random.html +5 -5
- 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/Registerable.html +13 -13
- data/doc/rdoc/more/classes/Stash.html +28 -28
- data/doc/rdoc/more/classes/String/Mask.html +72 -72
- data/doc/rdoc/more/classes/String/Words.html +31 -31
- 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/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/X.html +117 -0
- data/doc/rdoc/more/classes/XOXO.html +11 -11
- data/doc/rdoc/more/classes/ZipUtils.html +88 -88
- data/doc/rdoc/more/classes/ZipUtils/DryRun.html +68 -68
- data/doc/rdoc/more/classes/ZipUtils/NoWrite.html +68 -68
- data/doc/rdoc/more/classes/ZipUtils/Verbose.html +60 -60
- data/doc/rdoc/more/created.rid +1 -1
- data/doc/rdoc/more/files/README.html +7 -29
- data/doc/rdoc/more/files/lib/more/facets/association_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/dictionary_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/hook_rb.html +96 -0
- data/doc/rdoc/more/files/lib/more/facets/paramix_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/xoxo_rb.html +2 -2
- data/doc/rdoc/more/fr_class_index.html +2 -0
- data/doc/rdoc/more/fr_file_index.html +1 -0
- data/doc/rdoc/more/fr_method_index.html +686 -681
- data/lib/core/facets/array/product.rb +6 -23
- data/lib/core/facets/enumerable/collect.rb +3 -53
- data/lib/core/facets/enumerable/compact_map.rb +35 -0
- data/lib/core/facets/enumerable/map_with_index.rb +23 -0
- data/lib/core/facets/enumerable/split.rb +3 -3
- data/lib/core/facets/hash/collate.rb +45 -14
- data/lib/core/facets/hash/group_by_value.rb +65 -0
- data/lib/core/facets/hash/new_with.rb +15 -0
- data/lib/core/facets/module/extend.rb +11 -0
- data/lib/core/facets/string/align.rb +19 -18
- data/lib/core/facets/string/file.rb +17 -0
- data/lib/core/facets/string/xor.rb +9 -3
- data/lib/core/facets/to_hash.rb +274 -17
- data/lib/core/facets/unboundmethod/name.rb +4 -2
- data/lib/lore/facets/ostruct.rb +3 -0
- data/lib/more/facets/association.rb +28 -12
- data/lib/more/facets/dictionary.rb +10 -4
- data/lib/more/facets/hook.rb +65 -0
- data/lib/more/facets/paramix.rb +5 -5
- data/meta/abstract +13 -0
- data/meta/authors +1 -0
- data/meta/contact +1 -0
- data/meta/contributors +48 -0
- data/meta/created +1 -0
- data/meta/homepage +1 -0
- data/meta/license +1 -0
- data/meta/loadpath +3 -0
- data/meta/releases +14 -0
- data/meta/slogan +1 -0
- data/meta/summary +1 -0
- data/task/test.rake +116 -18
- data/test/core/array/test_product.rb +0 -6
- data/test/core/binding/test_local_variables.rb +9 -3
- data/test/core/enumerable/test_split.rb +19 -0
- data/test/core/module/test_conflict.rb +8 -3
- data/test/core/test_to_hash.rb +152 -0
- data/test/core/unboundmethod/test_arguments.rb +1 -1
- data/test/core/unboundmethod/test_name.rb +2 -2
- metadata +39 -8
- data/doc/log/bstats/stats.html +0 -39
- data/doc/log/stats.html +0 -25
- data/test/more/test_to_hash.rb +0 -58
@@ -81,9 +81,9 @@ Object
|
|
81
81
|
|
82
82
|
|
83
83
|
<div class="sectiontitle">Methods</div>
|
84
|
-
<span style="padding-right: 5px;"><a href="#
|
85
|
-
<span style="padding-right: 5px;"><a href="#
|
86
|
-
<span style="padding-right: 5px;"><a href="#
|
84
|
+
<span style="padding-right: 5px;"><a href="#M000546">first?</a></span>
|
85
|
+
<span style="padding-right: 5px;"><a href="#M000547">last?</a></span>
|
86
|
+
<span style="padding-right: 5px;"><a href="#M000545">new</a></span>
|
87
87
|
|
88
88
|
|
89
89
|
|
@@ -124,11 +124,11 @@ Object
|
|
124
124
|
<div class="sectiontitle">Public Class methods</div>
|
125
125
|
<div class="method">
|
126
126
|
<div class="title">
|
127
|
-
<a name="
|
127
|
+
<a name="M000545"></a><b>new</b>(array)
|
128
128
|
</div>
|
129
129
|
<div class="sourcecode">
|
130
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
131
|
-
<div id="
|
130
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000545_source')" id="l_M000545_source">+</a> ]</p>
|
131
|
+
<div id="M000545_source" class="dyn-source">
|
132
132
|
<pre>
|
133
133
|
<span class="ruby-comment cmt"># File lib/more/facets/iteration.rb, line 7</span>
|
134
134
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">array</span>)
|
@@ -145,11 +145,11 @@ Object
|
|
145
145
|
<div class="sectiontitle">Public Instance methods</div>
|
146
146
|
<div class="method">
|
147
147
|
<div class="title">
|
148
|
-
<a name="
|
148
|
+
<a name="M000546"></a><b>first?</b>()
|
149
149
|
</div>
|
150
150
|
<div class="sourcecode">
|
151
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
152
|
-
<div id="
|
151
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000546_source')" id="l_M000546_source">+</a> ]</p>
|
152
|
+
<div id="M000546_source" class="dyn-source">
|
153
153
|
<pre>
|
154
154
|
<span class="ruby-comment cmt"># File lib/more/facets/iteration.rb, line 14</span>
|
155
155
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">first?</span> ; <span class="ruby-ivar">@index</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span> ; <span class="ruby-keyword kw">end</span>
|
@@ -159,11 +159,11 @@ Object
|
|
159
159
|
</div>
|
160
160
|
<div class="method">
|
161
161
|
<div class="title">
|
162
|
-
<a name="
|
162
|
+
<a name="M000547"></a><b>last?</b>()
|
163
163
|
</div>
|
164
164
|
<div class="sourcecode">
|
165
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
166
|
-
<div id="
|
165
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000547_source')" id="l_M000547_source">+</a> ]</p>
|
166
|
+
<div id="M000547_source" class="dyn-source">
|
167
167
|
<pre>
|
168
168
|
<span class="ruby-comment cmt"># File lib/more/facets/iteration.rb, line 15</span>
|
169
169
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">last?</span>
|
@@ -84,15 +84,15 @@ Object
|
|
84
84
|
|
85
85
|
|
86
86
|
<div class="sectiontitle">Methods</div>
|
87
|
-
<span style="padding-right: 5px;"><a href="#
|
88
|
-
<span style="padding-right: 5px;"><a href="#
|
89
|
-
<span style="padding-right: 5px;"><a href="#
|
90
|
-
<span style="padding-right: 5px;"><a href="#
|
91
|
-
<span style="padding-right: 5px;"><a href="#
|
92
|
-
<span style="padding-right: 5px;"><a href="#
|
93
|
-
<span style="padding-right: 5px;"><a href="#
|
94
|
-
<span style="padding-right: 5px;"><a href="#
|
95
|
-
<span style="padding-right: 5px;"><a href="#
|
87
|
+
<span style="padding-right: 5px;"><a href="#M000569"><<</a></span>
|
88
|
+
<span style="padding-right: 5px;"><a href="#M000574">===</a></span>
|
89
|
+
<span style="padding-right: 5px;"><a href="#M000571">=~</a></span>
|
90
|
+
<span style="padding-right: 5px;"><a href="#M000568">add</a></span>
|
91
|
+
<span style="padding-right: 5px;"><a href="#M000570">include?</a></span>
|
92
|
+
<span style="padding-right: 5px;"><a href="#M000566">inspect</a></span>
|
93
|
+
<span style="padding-right: 5px;"><a href="#M000572">match</a></span>
|
94
|
+
<span style="padding-right: 5px;"><a href="#M000567">new</a></span>
|
95
|
+
<span style="padding-right: 5px;"><a href="#M000573">scan</a></span>
|
96
96
|
|
97
97
|
|
98
98
|
|
@@ -115,7 +115,7 @@ Object
|
|
115
115
|
<div class="sectiontitle">Public Class methods</div>
|
116
116
|
<div class="method">
|
117
117
|
<div class="title">
|
118
|
-
<a name="
|
118
|
+
<a name="M000567"></a><b>new</b>()
|
119
119
|
</div>
|
120
120
|
<div class="description">
|
121
121
|
<p>
|
@@ -123,8 +123,8 @@ Create a DictionaryMatcher with no words in it
|
|
123
123
|
</p>
|
124
124
|
</div>
|
125
125
|
<div class="sourcecode">
|
126
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
127
|
-
<div id="
|
126
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000567_source')" id="l_M000567_source">+</a> ]</p>
|
127
|
+
<div id="M000567_source" class="dyn-source">
|
128
128
|
<pre>
|
129
129
|
<span class="ruby-comment cmt"># File lib/more/facets/matcher.rb, line 20</span>
|
130
130
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
|
@@ -138,17 +138,17 @@ Create a DictionaryMatcher with no words in it
|
|
138
138
|
<div class="sectiontitle">Public Instance methods</div>
|
139
139
|
<div class="method">
|
140
140
|
<div class="title">
|
141
|
-
<a name="
|
141
|
+
<a name="M000569"></a><b><<</b>(word)
|
142
142
|
</div>
|
143
143
|
<div class="description">
|
144
144
|
<p>
|
145
|
-
Alias for <a href="Matcher.html#
|
145
|
+
Alias for <a href="Matcher.html#M000568">add</a>
|
146
146
|
</p>
|
147
147
|
</div>
|
148
148
|
</div>
|
149
149
|
<div class="method">
|
150
150
|
<div class="title">
|
151
|
-
<a name="
|
151
|
+
<a name="M000574"></a><b>===</b>(text)
|
152
152
|
</div>
|
153
153
|
<div class="description">
|
154
154
|
<p>
|
@@ -158,22 +158,22 @@ Alias for #=~
|
|
158
158
|
</div>
|
159
159
|
<div class="method">
|
160
160
|
<div class="title">
|
161
|
-
<a name="
|
161
|
+
<a name="M000571"></a><b>=~</b>(text)
|
162
162
|
</div>
|
163
163
|
<div class="description">
|
164
164
|
<p>
|
165
165
|
Determines whether one of the words in the DictionaryMatcher is a substring
|
166
166
|
of <tt>string</tt>. Returns the index of the <a
|
167
|
-
href="Matcher.html#
|
167
|
+
href="Matcher.html#M000572">match</a> if found, <tt>nil</tt> if not found.
|
168
168
|
</p>
|
169
169
|
</div>
|
170
170
|
<div class="aka">
|
171
171
|
This method is also aliased as
|
172
|
-
<a href="Matcher.html#
|
172
|
+
<a href="Matcher.html#M000574">===</a>
|
173
173
|
</div>
|
174
174
|
<div class="sourcecode">
|
175
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
176
|
-
<div id="
|
175
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000571_source')" id="l_M000571_source">+</a> ]</p>
|
176
|
+
<div id="M000571_source" class="dyn-source">
|
177
177
|
<pre>
|
178
178
|
<span class="ruby-comment cmt"># File lib/more/facets/matcher.rb, line 83</span>
|
179
179
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">=~</span> <span class="ruby-identifier">text</span>
|
@@ -186,7 +186,7 @@ href="Matcher.html#M000570">match</a> if found, <tt>nil</tt> if not found.
|
|
186
186
|
</div>
|
187
187
|
<div class="method">
|
188
188
|
<div class="title">
|
189
|
-
<a name="
|
189
|
+
<a name="M000568"></a><b>add</b>(word)
|
190
190
|
</div>
|
191
191
|
<div class="description">
|
192
192
|
<p>
|
@@ -195,11 +195,11 @@ Add a word to the DictionaryMatcher
|
|
195
195
|
</div>
|
196
196
|
<div class="aka">
|
197
197
|
This method is also aliased as
|
198
|
-
<a href="Matcher.html#
|
198
|
+
<a href="Matcher.html#M000569"><<</a>
|
199
199
|
</div>
|
200
200
|
<div class="sourcecode">
|
201
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
202
|
-
<div id="
|
201
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000568_source')" id="l_M000568_source">+</a> ]</p>
|
202
|
+
<div id="M000568_source" class="dyn-source">
|
203
203
|
<pre>
|
204
204
|
<span class="ruby-comment cmt"># File lib/more/facets/matcher.rb, line 26</span>
|
205
205
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add</span>(<span class="ruby-identifier">word</span>)
|
@@ -234,17 +234,17 @@ Add a word to the DictionaryMatcher
|
|
234
234
|
</div>
|
235
235
|
<div class="method">
|
236
236
|
<div class="title">
|
237
|
-
<a name="
|
237
|
+
<a name="M000570"></a><b>include?</b>(word)
|
238
238
|
</div>
|
239
239
|
<div class="description">
|
240
240
|
<p>
|
241
241
|
Determine whether <tt>string</tt> was previously <tt><a
|
242
|
-
href="Matcher.html#
|
242
|
+
href="Matcher.html#M000568">add</a></tt>ed to the Trie.
|
243
243
|
</p>
|
244
244
|
</div>
|
245
245
|
<div class="sourcecode">
|
246
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
247
|
-
<div id="
|
246
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000570_source')" id="l_M000570_source">+</a> ]</p>
|
247
|
+
<div id="M000570_source" class="dyn-source">
|
248
248
|
<pre>
|
249
249
|
<span class="ruby-comment cmt"># File lib/more/facets/matcher.rb, line 70</span>
|
250
250
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">include?</span>(<span class="ruby-identifier">word</span>)
|
@@ -261,11 +261,11 @@ href="Matcher.html#M000566">add</a></tt>ed to the Trie.
|
|
261
261
|
</div>
|
262
262
|
<div class="method">
|
263
263
|
<div class="title">
|
264
|
-
<a name="
|
264
|
+
<a name="M000566"></a><b>inspect</b>()
|
265
265
|
</div>
|
266
266
|
<div class="sourcecode">
|
267
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
268
|
-
<div id="
|
267
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000566_source')" id="l_M000566_source">+</a> ]</p>
|
268
|
+
<div id="M000566_source" class="dyn-source">
|
269
269
|
<pre>
|
270
270
|
<span class="ruby-comment cmt"># File lib/more/facets/matcher.rb, line 15</span>
|
271
271
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inspect</span>
|
@@ -277,7 +277,7 @@ href="Matcher.html#M000566">add</a></tt>ed to the Trie.
|
|
277
277
|
</div>
|
278
278
|
<div class="method">
|
279
279
|
<div class="title">
|
280
|
-
<a name="
|
280
|
+
<a name="M000572"></a><b>match</b>(text)
|
281
281
|
</div>
|
282
282
|
<div class="description">
|
283
283
|
<p>
|
@@ -287,8 +287,8 @@ of <tt>string</tt>. Returns a DictionaryMatcher::MatchData object if found,
|
|
287
287
|
</p>
|
288
288
|
</div>
|
289
289
|
<div class="sourcecode">
|
290
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
291
|
-
<div id="
|
290
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000572_source')" id="l_M000572_source">+</a> ]</p>
|
291
|
+
<div id="M000572_source" class="dyn-source">
|
292
292
|
<pre>
|
293
293
|
<span class="ruby-comment cmt"># File lib/more/facets/matcher.rb, line 92</span>
|
294
294
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">match</span> <span class="ruby-identifier">text</span>
|
@@ -301,20 +301,20 @@ of <tt>string</tt>. Returns a DictionaryMatcher::MatchData object if found,
|
|
301
301
|
</div>
|
302
302
|
<div class="method">
|
303
303
|
<div class="title">
|
304
|
-
<a name="
|
304
|
+
<a name="M000573"></a><b>scan</b>(text, &block)
|
305
305
|
</div>
|
306
306
|
<div class="description">
|
307
307
|
<p>
|
308
308
|
Scans <tt>string</tt> for all occurrances of strings in the
|
309
309
|
DictionaryMatcher. Overlapping matches are skipped (only the first one is
|
310
310
|
yielded), and when some strings in the DictionaryMatcher are substrings of
|
311
|
-
others, only the shortest <a href="Matcher.html#
|
311
|
+
others, only the shortest <a href="Matcher.html#M000572">match</a> at a
|
312
312
|
given position is found.
|
313
313
|
</p>
|
314
314
|
</div>
|
315
315
|
<div class="sourcecode">
|
316
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
317
|
-
<div id="
|
316
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000573_source')" id="l_M000573_source">+</a> ]</p>
|
317
|
+
<div id="M000573_source" class="dyn-source">
|
318
318
|
<pre>
|
319
319
|
<span class="ruby-comment cmt"># File lib/more/facets/matcher.rb, line 130</span>
|
320
320
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">scan</span>(<span class="ruby-identifier">text</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -83,7 +83,7 @@ Contains the index matched, and the word matched
|
|
83
83
|
|
84
84
|
|
85
85
|
<div class="sectiontitle">Methods</div>
|
86
|
-
<span style="padding-right: 5px;"><a href="#
|
86
|
+
<span style="padding-right: 5px;"><a href="#M000575">inspect</a></span>
|
87
87
|
|
88
88
|
|
89
89
|
|
@@ -93,11 +93,11 @@ Contains the index matched, and the word matched
|
|
93
93
|
<div class="sectiontitle">Public Instance methods</div>
|
94
94
|
<div class="method">
|
95
95
|
<div class="title">
|
96
|
-
<a name="
|
96
|
+
<a name="M000575"></a><b>inspect</b>()
|
97
97
|
</div>
|
98
98
|
<div class="sourcecode">
|
99
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
100
|
-
<div id="
|
99
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000575_source')" id="l_M000575_source">+</a> ]</p>
|
100
|
+
<div id="M000575_source" class="dyn-source">
|
101
101
|
<pre>
|
102
102
|
<span class="ruby-comment cmt"># File lib/more/facets/matcher.rb, line 10</span>
|
103
103
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inspect</span>
|
@@ -97,7 +97,7 @@ calls.
|
|
97
97
|
x.memo.tick #=> 2
|
98
98
|
</pre>
|
99
99
|
<p>
|
100
|
-
You can also use to <a href="Memoizer.html#
|
100
|
+
You can also use to <a href="Memoizer.html#M000703">cache</a> a collections
|
101
101
|
of objects to gain code speed ups.
|
102
102
|
</p>
|
103
103
|
<pre>
|
@@ -139,11 +139,11 @@ Copyright (c) 2006 Erik Veenstra
|
|
139
139
|
|
140
140
|
|
141
141
|
<div class="sectiontitle">Methods</div>
|
142
|
-
<span style="padding-right: 5px;"><a href="#
|
143
|
-
<span style="padding-right: 5px;"><a href="#
|
144
|
-
<span style="padding-right: 5px;"><a href="#
|
145
|
-
<span style="padding-right: 5px;"><a href="#
|
146
|
-
<span style="padding-right: 5px;"><a href="#
|
142
|
+
<span style="padding-right: 5px;"><a href="#M000703">cache</a></span>
|
143
|
+
<span style="padding-right: 5px;"><a href="#M000701">method_missing</a></span>
|
144
|
+
<span style="padding-right: 5px;"><a href="#M000700">new</a></span>
|
145
|
+
<span style="padding-right: 5px;"><a href="#M000702">self</a></span>
|
146
|
+
<span style="padding-right: 5px;"><a href="#M000704">uncache</a></span>
|
147
147
|
|
148
148
|
|
149
149
|
|
@@ -153,11 +153,11 @@ Copyright (c) 2006 Erik Veenstra
|
|
153
153
|
<div class="sectiontitle">Public Class methods</div>
|
154
154
|
<div class="method">
|
155
155
|
<div class="title">
|
156
|
-
<a name="
|
156
|
+
<a name="M000703"></a><b>cache</b>(object)
|
157
157
|
</div>
|
158
158
|
<div class="sourcecode">
|
159
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
160
|
-
<div id="
|
159
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000703_source')" id="l_M000703_source">+</a> ]</p>
|
160
|
+
<div id="M000703_source" class="dyn-source">
|
161
161
|
<pre>
|
162
162
|
<span class="ruby-comment cmt"># File lib/more/facets/memoizer.rb, line 65</span>
|
163
163
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">cache</span>(<span class="ruby-identifier">object</span>)
|
@@ -169,11 +169,11 @@ Copyright (c) 2006 Erik Veenstra
|
|
169
169
|
</div>
|
170
170
|
<div class="method">
|
171
171
|
<div class="title">
|
172
|
-
<a name="
|
172
|
+
<a name="M000700"></a><b>new</b>(object)
|
173
173
|
</div>
|
174
174
|
<div class="sourcecode">
|
175
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
176
|
-
<div id="
|
175
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000700_source')" id="l_M000700_source">+</a> ]</p>
|
176
|
+
<div id="M000700_source" class="dyn-source">
|
177
177
|
<pre>
|
178
178
|
<span class="ruby-comment cmt"># File lib/more/facets/memoizer.rb, line 53</span>
|
179
179
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">object</span>)
|
@@ -186,11 +186,11 @@ Copyright (c) 2006 Erik Veenstra
|
|
186
186
|
</div>
|
187
187
|
<div class="method">
|
188
188
|
<div class="title">
|
189
|
-
<a name="
|
189
|
+
<a name="M000704"></a><b>uncache</b>(cached_object)
|
190
190
|
</div>
|
191
191
|
<div class="sourcecode">
|
192
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
193
|
-
<div id="
|
192
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000704_source')" id="l_M000704_source">+</a> ]</p>
|
193
|
+
<div id="M000704_source" class="dyn-source">
|
194
194
|
<pre>
|
195
195
|
<span class="ruby-comment cmt"># File lib/more/facets/memoizer.rb, line 69</span>
|
196
196
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">uncache</span>(<span class="ruby-identifier">cached_object</span>)
|
@@ -203,11 +203,11 @@ Copyright (c) 2006 Erik Veenstra
|
|
203
203
|
<div class="sectiontitle">Public Instance methods</div>
|
204
204
|
<div class="method">
|
205
205
|
<div class="title">
|
206
|
-
<a name="
|
206
|
+
<a name="M000701"></a><b>method_missing</b>(method_name, *args, &block)
|
207
207
|
</div>
|
208
208
|
<div class="sourcecode">
|
209
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
210
|
-
<div id="
|
209
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000701_source')" id="l_M000701_source">+</a> ]</p>
|
210
|
+
<div id="M000701_source" class="dyn-source">
|
211
211
|
<pre>
|
212
212
|
<span class="ruby-comment cmt"># File lib/more/facets/memoizer.rb, line 58</span>
|
213
213
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">method_missing</span>(<span class="ruby-identifier">method_name</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -220,11 +220,11 @@ Copyright (c) 2006 Erik Veenstra
|
|
220
220
|
</div>
|
221
221
|
<div class="method">
|
222
222
|
<div class="title">
|
223
|
-
<a name="
|
223
|
+
<a name="M000702"></a><b>self</b>()
|
224
224
|
</div>
|
225
225
|
<div class="sourcecode">
|
226
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
227
|
-
<div id="
|
226
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000702_source')" id="l_M000702_source">+</a> ]</p>
|
227
|
+
<div id="M000702_source" class="dyn-source">
|
228
228
|
<pre>
|
229
229
|
<span class="ruby-comment cmt"># File lib/more/facets/memoizer.rb, line 63</span>
|
230
230
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>; <span class="ruby-ivar">@self</span>; <span class="ruby-keyword kw">end</span>
|
@@ -122,9 +122,9 @@ constructed as (not) unique.
|
|
122
122
|
|
123
123
|
|
124
124
|
<div class="sectiontitle">Methods</div>
|
125
|
-
<span style="padding-right: 5px;"><a href="#
|
126
|
-
<span style="padding-right: 5px;"><a href="#
|
127
|
-
<span style="padding-right: 5px;"><a href="#
|
125
|
+
<span style="padding-right: 5px;"><a href="#M000903">_dump</a></span>
|
126
|
+
<span style="padding-right: 5px;"><a href="#M000901">clone</a></span>
|
127
|
+
<span style="padding-right: 5px;"><a href="#M000902">dup</a></span>
|
128
128
|
|
129
129
|
|
130
130
|
|
@@ -138,7 +138,7 @@ Module <a href="Multiton/MetaMethods.html" class="link">Multiton::MetaMethods</a
|
|
138
138
|
<div class="sectiontitle">Public Instance methods</div>
|
139
139
|
<div class="method">
|
140
140
|
<div class="title">
|
141
|
-
<a name="
|
141
|
+
<a name="M000901"></a><b>clone</b>()
|
142
142
|
</div>
|
143
143
|
<div class="description">
|
144
144
|
<p>
|
@@ -146,8 +146,8 @@ disable build-in copying methods
|
|
146
146
|
</p>
|
147
147
|
</div>
|
148
148
|
<div class="sourcecode">
|
149
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
150
|
-
<div id="
|
149
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000901_source')" id="l_M000901_source">+</a> ]</p>
|
150
|
+
<div id="M000901_source" class="dyn-source">
|
151
151
|
<pre>
|
152
152
|
<span class="ruby-comment cmt"># File lib/more/facets/multiton.rb, line 135</span>
|
153
153
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clone</span>
|
@@ -160,11 +160,11 @@ disable build-in copying methods
|
|
160
160
|
</div>
|
161
161
|
<div class="method">
|
162
162
|
<div class="title">
|
163
|
-
<a name="
|
163
|
+
<a name="M000902"></a><b>dup</b>()
|
164
164
|
</div>
|
165
165
|
<div class="sourcecode">
|
166
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
167
|
-
<div id="
|
166
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000902_source')" id="l_M000902_source">+</a> ]</p>
|
167
|
+
<div id="M000902_source" class="dyn-source">
|
168
168
|
<pre>
|
169
169
|
<span class="ruby-comment cmt"># File lib/more/facets/multiton.rb, line 140</span>
|
170
170
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dup</span>
|
@@ -178,7 +178,7 @@ disable build-in copying methods
|
|
178
178
|
<div class="sectiontitle">Protected Instance methods</div>
|
179
179
|
<div class="method">
|
180
180
|
<div class="title">
|
181
|
-
<a name="
|
181
|
+
<a name="M000903"></a><b>_dump</b>(depth=-1)
|
182
182
|
</div>
|
183
183
|
<div class="description">
|
184
184
|
<p>
|
@@ -186,8 +186,8 @@ default marshalling strategy
|
|
186
186
|
</p>
|
187
187
|
</div>
|
188
188
|
<div class="sourcecode">
|
189
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
190
|
-
<div id="
|
189
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000903_source')" id="l_M000903_source">+</a> ]</p>
|
190
|
+
<div id="M000903_source" class="dyn-source">
|
191
191
|
<pre>
|
192
192
|
<span class="ruby-comment cmt"># File lib/more/facets/multiton.rb, line 149</span>
|
193
193
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">_dump</span>(<span class="ruby-identifier">depth</span>=<span class="ruby-value">-1</span>)
|
@@ -73,13 +73,13 @@
|
|
73
73
|
|
74
74
|
|
75
75
|
<div class="sectiontitle">Methods</div>
|
76
|
-
<span style="padding-right: 5px;"><a href="#
|
77
|
-
<span style="padding-right: 5px;"><a href="#
|
78
|
-
<span style="padding-right: 5px;"><a href="#
|
79
|
-
<span style="padding-right: 5px;"><a href="#
|
80
|
-
<span style="padding-right: 5px;"><a href="#
|
81
|
-
<span style="padding-right: 5px;"><a href="#
|
82
|
-
<span style="padding-right: 5px;"><a href="#
|
76
|
+
<span style="padding-right: 5px;"><a href="#M000910">_load</a></span>
|
77
|
+
<span style="padding-right: 5px;"><a href="#M000906">initialized?</a></span>
|
78
|
+
<span style="padding-right: 5px;"><a href="#M000904">instance</a></span>
|
79
|
+
<span style="padding-right: 5px;"><a href="#M000907">multiton_instance</a></span>
|
80
|
+
<span style="padding-right: 5px;"><a href="#M000908">multiton_mutex</a></span>
|
81
|
+
<span style="padding-right: 5px;"><a href="#M000905">new</a></span>
|
82
|
+
<span style="padding-right: 5px;"><a href="#M000909">reinitialize</a></span>
|
83
83
|
|
84
84
|
<div class="sectiontitle">Included Modules</div>
|
85
85
|
<ul>
|
@@ -93,11 +93,11 @@
|
|
93
93
|
<div class="sectiontitle">Public Instance methods</div>
|
94
94
|
<div class="method">
|
95
95
|
<div class="title">
|
96
|
-
<a name="
|
96
|
+
<a name="M000906"></a><b>initialized?</b>(*e, &b)
|
97
97
|
</div>
|
98
98
|
<div class="sourcecode">
|
99
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
100
|
-
<div id="
|
99
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000906_source')" id="l_M000906_source">+</a> ]</p>
|
100
|
+
<div id="M000906_source" class="dyn-source">
|
101
101
|
<pre>
|
102
102
|
<span class="ruby-comment cmt"># File lib/more/facets/multiton.rb, line 230</span>
|
103
103
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialized?</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">e</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">b</span>)
|
@@ -109,15 +109,15 @@
|
|
109
109
|
</div>
|
110
110
|
<div class="method">
|
111
111
|
<div class="title">
|
112
|
-
<a name="
|
112
|
+
<a name="M000904"></a><b>instance</b>(*e, &b)
|
113
113
|
</div>
|
114
114
|
<div class="aka">
|
115
115
|
This method is also aliased as
|
116
|
-
<a href="MetaMethods.html#
|
116
|
+
<a href="MetaMethods.html#M000905">new</a>
|
117
117
|
</div>
|
118
118
|
<div class="sourcecode">
|
119
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
120
|
-
<div id="
|
119
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000904_source')" id="l_M000904_source">+</a> ]</p>
|
120
|
+
<div id="M000904_source" class="dyn-source">
|
121
121
|
<pre>
|
122
122
|
<span class="ruby-comment cmt"># File lib/more/facets/multiton.rb, line 215</span>
|
123
123
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">instance</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">e</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">b</span>)
|
@@ -139,22 +139,22 @@
|
|
139
139
|
</div>
|
140
140
|
<div class="method">
|
141
141
|
<div class="title">
|
142
|
-
<a name="
|
142
|
+
<a name="M000905"></a><b>new</b>(*e, &b)
|
143
143
|
</div>
|
144
144
|
<div class="description">
|
145
145
|
<p>
|
146
|
-
Alias for <a href="MetaMethods.html#
|
146
|
+
Alias for <a href="MetaMethods.html#M000904">instance</a>
|
147
147
|
</p>
|
148
148
|
</div>
|
149
149
|
</div>
|
150
150
|
<div class="sectiontitle">Protected Instance methods</div>
|
151
151
|
<div class="method">
|
152
152
|
<div class="title">
|
153
|
-
<a name="
|
153
|
+
<a name="M000910"></a><b>_load</b>(str)
|
154
154
|
</div>
|
155
155
|
<div class="sourcecode">
|
156
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
157
|
-
<div id="
|
156
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000910_source')" id="l_M000910_source">+</a> ]</p>
|
157
|
+
<div id="M000910_source" class="dyn-source">
|
158
158
|
<pre>
|
159
159
|
<span class="ruby-comment cmt"># File lib/more/facets/multiton.rb, line 249</span>
|
160
160
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">_load</span>(<span class="ruby-identifier">str</span>)
|
@@ -166,11 +166,11 @@ Alias for <a href="MetaMethods.html#M000899">instance</a>
|
|
166
166
|
</div>
|
167
167
|
<div class="method">
|
168
168
|
<div class="title">
|
169
|
-
<a name="
|
169
|
+
<a name="M000907"></a><b>multiton_instance</b>()
|
170
170
|
</div>
|
171
171
|
<div class="sourcecode">
|
172
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
173
|
-
<div id="
|
172
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000907_source')" id="l_M000907_source">+</a> ]</p>
|
173
|
+
<div id="M000907_source" class="dyn-source">
|
174
174
|
<pre>
|
175
175
|
<span class="ruby-comment cmt"># File lib/more/facets/multiton.rb, line 236</span>
|
176
176
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">multiton_instance</span>
|
@@ -182,11 +182,11 @@ Alias for <a href="MetaMethods.html#M000899">instance</a>
|
|
182
182
|
</div>
|
183
183
|
<div class="method">
|
184
184
|
<div class="title">
|
185
|
-
<a name="
|
185
|
+
<a name="M000908"></a><b>multiton_mutex</b>()
|
186
186
|
</div>
|
187
187
|
<div class="sourcecode">
|
188
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
189
|
-
<div id="
|
188
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000908_source')" id="l_M000908_source">+</a> ]</p>
|
189
|
+
<div id="M000908_source" class="dyn-source">
|
190
190
|
<pre>
|
191
191
|
<span class="ruby-comment cmt"># File lib/more/facets/multiton.rb, line 240</span>
|
192
192
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">multiton_mutex</span>
|
@@ -198,11 +198,11 @@ Alias for <a href="MetaMethods.html#M000899">instance</a>
|
|
198
198
|
</div>
|
199
199
|
<div class="method">
|
200
200
|
<div class="title">
|
201
|
-
<a name="
|
201
|
+
<a name="M000909"></a><b>reinitialize</b>()
|
202
202
|
</div>
|
203
203
|
<div class="sourcecode">
|
204
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
205
|
-
<div id="
|
204
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000909_source')" id="l_M000909_source">+</a> ]</p>
|
205
|
+
<div id="M000909_source" class="dyn-source">
|
206
206
|
<pre>
|
207
207
|
<span class="ruby-comment cmt"># File lib/more/facets/multiton.rb, line 244</span>
|
208
208
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reinitialize</span>
|