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
@@ -85,11 +85,11 @@ Object
|
|
85
85
|
|
86
86
|
|
87
87
|
<div class="sectiontitle">Methods</div>
|
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="#
|
88
|
+
<span style="padding-right: 5px;"><a href="#M000229">blank?</a></span>
|
89
|
+
<span style="padding-right: 5px;"><a href="#M000228">ergo</a></span>
|
90
|
+
<span style="padding-right: 5px;"><a href="#M000227">to_bool</a></span>
|
91
|
+
<span style="padding-right: 5px;"><a href="#M000226">to_f</a></span>
|
92
|
+
<span style="padding-right: 5px;"><a href="#M000225">to_h</a></span>
|
93
93
|
|
94
94
|
|
95
95
|
|
@@ -99,11 +99,11 @@ Object
|
|
99
99
|
<div class="sectiontitle">Public Instance methods</div>
|
100
100
|
<div class="method">
|
101
101
|
<div class="title">
|
102
|
-
<a name="
|
102
|
+
<a name="M000229"></a><b>blank?</b>()
|
103
103
|
</div>
|
104
104
|
<div class="sourcecode">
|
105
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
106
|
-
<div id="
|
105
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000229_source')" id="l_M000229_source">+</a> ]</p>
|
106
|
+
<div id="M000229_source" class="dyn-source">
|
107
107
|
<pre>
|
108
108
|
<span class="ruby-comment cmt"># File lib/core/facets/blank.rb, line 20</span>
|
109
109
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">blank?</span>
|
@@ -115,11 +115,11 @@ Object
|
|
115
115
|
</div>
|
116
116
|
<div class="method">
|
117
117
|
<div class="title">
|
118
|
-
<a name="
|
118
|
+
<a name="M000228"></a><b>ergo</b>()
|
119
119
|
</div>
|
120
120
|
<div class="description">
|
121
121
|
<p>
|
122
|
-
Compliments <a href="Kernel.html#
|
122
|
+
Compliments <a href="Kernel.html#M000380">Kernel#ergo</a>.
|
123
123
|
</p>
|
124
124
|
<pre>
|
125
125
|
"a".ergo{ |o| o.upcase } #=> "A"
|
@@ -130,8 +130,8 @@ CREDIT: Daniel DeLorme
|
|
130
130
|
</p>
|
131
131
|
</div>
|
132
132
|
<div class="sourcecode">
|
133
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
134
|
-
<div id="
|
133
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000228_source')" id="l_M000228_source">+</a> ]</p>
|
134
|
+
<div id="M000228_source" class="dyn-source">
|
135
135
|
<pre>
|
136
136
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/ergo.rb, line 36</span>
|
137
137
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ergo</span>
|
@@ -144,11 +144,11 @@ CREDIT: Daniel DeLorme
|
|
144
144
|
</div>
|
145
145
|
<div class="method">
|
146
146
|
<div class="title">
|
147
|
-
<a name="
|
147
|
+
<a name="M000227"></a><b>to_bool</b>()
|
148
148
|
</div>
|
149
149
|
<div class="sourcecode">
|
150
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
151
|
-
<div id="
|
150
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000227_source')" id="l_M000227_source">+</a> ]</p>
|
151
|
+
<div id="M000227_source" class="dyn-source">
|
152
152
|
<pre>
|
153
153
|
<span class="ruby-comment cmt"># File lib/core/facets/boolean.rb, line 153</span>
|
154
154
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_bool</span>
|
@@ -160,11 +160,11 @@ CREDIT: Daniel DeLorme
|
|
160
160
|
</div>
|
161
161
|
<div class="method">
|
162
162
|
<div class="title">
|
163
|
-
<a name="
|
163
|
+
<a name="M000226"></a><b>to_f</b>()
|
164
164
|
</div>
|
165
165
|
<div class="description">
|
166
166
|
<p>
|
167
|
-
Allows <tt>nil</tt> to respond to <a href="NilClass.html#
|
167
|
+
Allows <tt>nil</tt> to respond to <a href="NilClass.html#M000226">to_f</a>.
|
168
168
|
Always returns <tt>0</tt>.
|
169
169
|
</p>
|
170
170
|
<pre>
|
@@ -175,8 +175,8 @@ CREDIT: Matz
|
|
175
175
|
</p>
|
176
176
|
</div>
|
177
177
|
<div class="sourcecode">
|
178
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
179
|
-
<div id="
|
178
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000226_source')" id="l_M000226_source">+</a> ]</p>
|
179
|
+
<div id="M000226_source" class="dyn-source">
|
180
180
|
<pre>
|
181
181
|
<span class="ruby-comment cmt"># File lib/core/facets/nilclass/to_f.rb, line 12</span>
|
182
182
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_f</span>; <span class="ruby-value">0</span><span class="ruby-value">.0</span>; <span class="ruby-keyword kw">end</span>
|
@@ -186,7 +186,7 @@ CREDIT: Matz
|
|
186
186
|
</div>
|
187
187
|
<div class="method">
|
188
188
|
<div class="title">
|
189
|
-
<a name="
|
189
|
+
<a name="M000225"></a><b>to_h</b>()
|
190
190
|
</div>
|
191
191
|
<div class="description">
|
192
192
|
<p>
|
@@ -200,10 +200,10 @@ CREDIT: Trans
|
|
200
200
|
</p>
|
201
201
|
</div>
|
202
202
|
<div class="sourcecode">
|
203
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
204
|
-
<div id="
|
203
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000225_source')" id="l_M000225_source">+</a> ]</p>
|
204
|
+
<div id="M000225_source" class="dyn-source">
|
205
205
|
<pre>
|
206
|
-
<span class="ruby-comment cmt"># File lib/core/facets/to_hash.rb, line
|
206
|
+
<span class="ruby-comment cmt"># File lib/core/facets/to_hash.rb, line 284</span>
|
207
207
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_h</span>; {}; <span class="ruby-keyword kw">end</span>
|
208
208
|
</pre>
|
209
209
|
</div>
|
@@ -85,12 +85,12 @@ Object
|
|
85
85
|
|
86
86
|
|
87
87
|
<div class="sectiontitle">Methods</div>
|
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="#
|
88
|
+
<span style="padding-right: 5px;"><a href="#M000222">approx?</a></span>
|
89
|
+
<span style="padding-right: 5px;"><a href="#M000224">blank?</a></span>
|
90
|
+
<span style="padding-right: 5px;"><a href="#M000219">distance</a></span>
|
91
|
+
<span style="padding-right: 5px;"><a href="#M000220">round_at</a></span>
|
92
|
+
<span style="padding-right: 5px;"><a href="#M000221">round_to</a></span>
|
93
|
+
<span style="padding-right: 5px;"><a href="#M000223">to_b</a></span>
|
94
94
|
|
95
95
|
|
96
96
|
|
@@ -100,7 +100,7 @@ Object
|
|
100
100
|
<div class="sectiontitle">Public Instance methods</div>
|
101
101
|
<div class="method">
|
102
102
|
<div class="title">
|
103
|
-
<a name="
|
103
|
+
<a name="M000222"></a><b>approx?</b>(x, n=0.01)
|
104
104
|
</div>
|
105
105
|
<div class="description">
|
106
106
|
<p>
|
@@ -112,8 +112,8 @@ CREDIT: Trans
|
|
112
112
|
</p>
|
113
113
|
</div>
|
114
114
|
<div class="sourcecode">
|
115
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
116
|
-
<div id="
|
115
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000222_source')" id="l_M000222_source">+</a> ]</p>
|
116
|
+
<div id="M000222_source" class="dyn-source">
|
117
117
|
<pre>
|
118
118
|
<span class="ruby-comment cmt"># File lib/core/facets/numeric/approx.rb, line 9</span>
|
119
119
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">approx?</span>(<span class="ruby-identifier">x</span>, <span class="ruby-identifier">n</span>=<span class="ruby-value">0</span><span class="ruby-value">.01</span>)
|
@@ -126,11 +126,11 @@ CREDIT: Trans
|
|
126
126
|
</div>
|
127
127
|
<div class="method">
|
128
128
|
<div class="title">
|
129
|
-
<a name="
|
129
|
+
<a name="M000224"></a><b>blank?</b>()
|
130
130
|
</div>
|
131
131
|
<div class="sourcecode">
|
132
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
133
|
-
<div id="
|
132
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000224_source')" id="l_M000224_source">+</a> ]</p>
|
133
|
+
<div id="M000224_source" class="dyn-source">
|
134
134
|
<pre>
|
135
135
|
<span class="ruby-comment cmt"># File lib/core/facets/blank.rb, line 56</span>
|
136
136
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">blank?</span>
|
@@ -142,11 +142,11 @@ CREDIT: Trans
|
|
142
142
|
</div>
|
143
143
|
<div class="method">
|
144
144
|
<div class="title">
|
145
|
-
<a name="
|
145
|
+
<a name="M000219"></a><b>distance</b>(other)
|
146
146
|
</div>
|
147
147
|
<div class="description">
|
148
148
|
<p>
|
149
|
-
Returns the <a href="Numeric.html#
|
149
|
+
Returns the <a href="Numeric.html#M000219">distance</a> between self an
|
150
150
|
another value. This is the same as #- but it provides an alternative for
|
151
151
|
common naming between variant classes.
|
152
152
|
</p>
|
@@ -155,8 +155,8 @@ common naming between variant classes.
|
|
155
155
|
</pre>
|
156
156
|
</div>
|
157
157
|
<div class="sourcecode">
|
158
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
159
|
-
<div id="
|
158
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000219_source')" id="l_M000219_source">+</a> ]</p>
|
159
|
+
<div id="M000219_source" class="dyn-source">
|
160
160
|
<pre>
|
161
161
|
<span class="ruby-comment cmt"># File lib/core/facets/numeric/distance.rb, line 9</span>
|
162
162
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">distance</span>(<span class="ruby-identifier">other</span>)
|
@@ -168,7 +168,7 @@ common naming between variant classes.
|
|
168
168
|
</div>
|
169
169
|
<div class="method">
|
170
170
|
<div class="title">
|
171
|
-
<a name="
|
171
|
+
<a name="M000220"></a><b>round_at</b>(*args)
|
172
172
|
</div>
|
173
173
|
<div class="description">
|
174
174
|
<p>
|
@@ -180,12 +180,12 @@ lib is in the numeric folder, but we‘ll add this here for
|
|
180
180
|
convenience.
|
181
181
|
</p>
|
182
182
|
<p>
|
183
|
-
See <a href="Float.html#
|
183
|
+
See <a href="Float.html#M000217">Float#round_at</a>.
|
184
184
|
</p>
|
185
185
|
</div>
|
186
186
|
<div class="sourcecode">
|
187
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
188
|
-
<div id="
|
187
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000220_source')" id="l_M000220_source">+</a> ]</p>
|
188
|
+
<div id="M000220_source" class="dyn-source">
|
189
189
|
<pre>
|
190
190
|
<span class="ruby-comment cmt"># File lib/core/facets/numeric/round.rb, line 11</span>
|
191
191
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">round_at</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
@@ -197,16 +197,16 @@ See <a href="Float.html#M000206">Float#round_at</a>.
|
|
197
197
|
</div>
|
198
198
|
<div class="method">
|
199
199
|
<div class="title">
|
200
|
-
<a name="
|
200
|
+
<a name="M000221"></a><b>round_to</b>(*args)
|
201
201
|
</div>
|
202
202
|
<div class="description">
|
203
203
|
<p>
|
204
|
-
See <a href="Float.html#
|
204
|
+
See <a href="Float.html#M000218">Float#round_to</a>.
|
205
205
|
</p>
|
206
206
|
</div>
|
207
207
|
<div class="sourcecode">
|
208
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
209
|
-
<div id="
|
208
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000221_source')" id="l_M000221_source">+</a> ]</p>
|
209
|
+
<div id="M000221_source" class="dyn-source">
|
210
210
|
<pre>
|
211
211
|
<span class="ruby-comment cmt"># File lib/core/facets/numeric/round.rb, line 17</span>
|
212
212
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">round_to</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
@@ -218,7 +218,7 @@ See <a href="Float.html#M000207">Float#round_to</a>.
|
|
218
218
|
</div>
|
219
219
|
<div class="method">
|
220
220
|
<div class="title">
|
221
|
-
<a name="
|
221
|
+
<a name="M000223"></a><b>to_b</b>()
|
222
222
|
</div>
|
223
223
|
<div class="description">
|
224
224
|
<p>
|
@@ -232,8 +232,8 @@ true.
|
|
232
232
|
</pre>
|
233
233
|
</div>
|
234
234
|
<div class="sourcecode">
|
235
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
236
|
-
<div id="
|
235
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000223_source')" id="l_M000223_source">+</a> ]</p>
|
236
|
+
<div id="M000223_source" class="dyn-source">
|
237
237
|
<pre>
|
238
238
|
<span class="ruby-comment cmt"># File lib/core/facets/boolean.rb, line 76</span>
|
239
239
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_b</span>
|
@@ -82,8 +82,8 @@ Object
|
|
82
82
|
|
83
83
|
|
84
84
|
<div class="sectiontitle">Methods</div>
|
85
|
-
<span style="padding-right: 5px;"><a href="#
|
86
|
-
<span style="padding-right: 5px;"><a href="#
|
85
|
+
<span style="padding-right: 5px;"><a href="#M000236">instance_exec</a></span>
|
86
|
+
<span style="padding-right: 5px;"><a href="#M000235">to_bool</a></span>
|
87
87
|
|
88
88
|
<div class="sectiontitle">Included Modules</div>
|
89
89
|
<ul>
|
@@ -97,7 +97,7 @@ Object
|
|
97
97
|
<div class="sectiontitle">Public Instance methods</div>
|
98
98
|
<div class="method">
|
99
99
|
<div class="title">
|
100
|
-
<a name="
|
100
|
+
<a name="M000236"></a><b>instance_exec</b>(*args, &block)
|
101
101
|
</div>
|
102
102
|
<div class="description">
|
103
103
|
<p>
|
@@ -113,8 +113,8 @@ This version has been borrowed from Rails for compatibility sake.
|
|
113
113
|
</p>
|
114
114
|
</div>
|
115
115
|
<div class="sourcecode">
|
116
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
117
|
-
<div id="
|
116
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000236_source')" id="l_M000236_source">+</a> ]</p>
|
117
|
+
<div id="M000236_source" class="dyn-source">
|
118
118
|
<pre>
|
119
119
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_exec.rb, line 15</span>
|
120
120
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">instance_exec</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -139,11 +139,11 @@ This version has been borrowed from Rails for compatibility sake.
|
|
139
139
|
</div>
|
140
140
|
<div class="method">
|
141
141
|
<div class="title">
|
142
|
-
<a name="
|
142
|
+
<a name="M000235"></a><b>to_bool</b>()
|
143
143
|
</div>
|
144
144
|
<div class="sourcecode">
|
145
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
146
|
-
<div id="
|
145
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000235_source')" id="l_M000235_source">+</a> ]</p>
|
146
|
+
<div id="M000235_source" class="dyn-source">
|
147
147
|
<pre>
|
148
148
|
<span class="ruby-comment cmt"># File lib/core/facets/boolean.rb, line 135</span>
|
149
149
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_bool</span>
|
@@ -73,7 +73,7 @@
|
|
73
73
|
|
74
74
|
|
75
75
|
<div class="sectiontitle">Methods</div>
|
76
|
-
<span style="padding-right: 5px;"><a href="#
|
76
|
+
<span style="padding-right: 5px;"><a href="#M000328">classes</a></span>
|
77
77
|
|
78
78
|
|
79
79
|
|
@@ -83,18 +83,18 @@
|
|
83
83
|
<div class="sectiontitle">Public Class methods</div>
|
84
84
|
<div class="method">
|
85
85
|
<div class="title">
|
86
|
-
<a name="
|
86
|
+
<a name="M000328"></a><b>classes</b>()
|
87
87
|
</div>
|
88
88
|
<div class="description">
|
89
89
|
<p>
|
90
90
|
@return <<a href="Array.html">Array</a>[<a
|
91
91
|
href="Class.html">Class</a>]> All the <a
|
92
|
-
href="ObjectSpace.html#
|
92
|
+
href="ObjectSpace.html#M000328">classes</a> in the object space.
|
93
93
|
</p>
|
94
94
|
</div>
|
95
95
|
<div class="sourcecode">
|
96
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
97
|
-
<div id="
|
96
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000328_source')" id="l_M000328_source">+</a> ]</p>
|
97
|
+
<div id="M000328_source" class="dyn-source">
|
98
98
|
<pre>
|
99
99
|
<span class="ruby-comment cmt"># File lib/core/facets/objectspace/classes.rb, line 4</span>
|
100
100
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">classes</span>
|
@@ -85,11 +85,11 @@ Object
|
|
85
85
|
|
86
86
|
|
87
87
|
<div class="sectiontitle">Methods</div>
|
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="#
|
88
|
+
<span style="padding-right: 5px;"><a href="#M000169">*</a></span>
|
89
|
+
<span style="padding-right: 5px;"><a href="#M000171">bind</a></span>
|
90
|
+
<span style="padding-right: 5px;"><a href="#M000168">compose</a></span>
|
91
|
+
<span style="padding-right: 5px;"><a href="#M000167">curry</a></span>
|
92
|
+
<span style="padding-right: 5px;"><a href="#M000170">to_method</a></span>
|
93
93
|
|
94
94
|
|
95
95
|
|
@@ -99,11 +99,11 @@ Object
|
|
99
99
|
<div class="sectiontitle">Public Instance methods</div>
|
100
100
|
<div class="method">
|
101
101
|
<div class="title">
|
102
|
-
<a name="
|
102
|
+
<a name="M000169"></a><b>*</b>(x)
|
103
103
|
</div>
|
104
104
|
<div class="description">
|
105
105
|
<p>
|
106
|
-
Operator for <a href="Proc.html#
|
106
|
+
Operator for <a href="Proc.html#M000168">Proc#compose</a> and <a
|
107
107
|
href="Integer.html#M000016">Integer#times_collect</a>/of.
|
108
108
|
</p>
|
109
109
|
<pre>
|
@@ -118,8 +118,8 @@ CREDIT: Dave
|
|
118
118
|
</p>
|
119
119
|
</div>
|
120
120
|
<div class="sourcecode">
|
121
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
122
|
-
<div id="
|
121
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000169_source')" id="l_M000169_source">+</a> ]</p>
|
122
|
+
<div id="M000169_source" class="dyn-source">
|
123
123
|
<pre>
|
124
124
|
<span class="ruby-comment cmt"># File lib/core/facets/proc/compose.rb, line 29</span>
|
125
125
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">*</span>(<span class="ruby-identifier">x</span>)
|
@@ -139,7 +139,7 @@ CREDIT: Dave
|
|
139
139
|
</div>
|
140
140
|
<div class="method">
|
141
141
|
<div class="title">
|
142
|
-
<a name="
|
142
|
+
<a name="M000171"></a><b>bind</b>(object)
|
143
143
|
</div>
|
144
144
|
<div class="description">
|
145
145
|
<p>
|
@@ -155,8 +155,8 @@ NOTE: This version comes from Rails. The old Facets
|
|
155
155
|
</pre>
|
156
156
|
</div>
|
157
157
|
<div class="sourcecode">
|
158
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
159
|
-
<div id="
|
158
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000171_source')" id="l_M000171_source">+</a> ]</p>
|
159
|
+
<div id="M000171_source" class="dyn-source">
|
160
160
|
<pre>
|
161
161
|
<span class="ruby-comment cmt"># File lib/core/facets/proc/bind.rb, line 10</span>
|
162
162
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bind</span>(<span class="ruby-identifier">object</span>)
|
@@ -175,7 +175,7 @@ NOTE: This version comes from Rails. The old Facets
|
|
175
175
|
</div>
|
176
176
|
<div class="method">
|
177
177
|
<div class="title">
|
178
|
-
<a name="
|
178
|
+
<a name="M000168"></a><b>compose</b>(g)
|
179
179
|
</div>
|
180
180
|
<div class="description">
|
181
181
|
<p>
|
@@ -194,8 +194,8 @@ CREDIT: Dave
|
|
194
194
|
</p>
|
195
195
|
</div>
|
196
196
|
<div class="sourcecode">
|
197
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
198
|
-
<div id="
|
197
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000168_source')" id="l_M000168_source">+</a> ]</p>
|
198
|
+
<div id="M000168_source" class="dyn-source">
|
199
199
|
<pre>
|
200
200
|
<span class="ruby-comment cmt"># File lib/core/facets/proc/compose.rb, line 14</span>
|
201
201
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">compose</span>(<span class="ruby-identifier">g</span>)
|
@@ -208,7 +208,7 @@ CREDIT: Dave
|
|
208
208
|
</div>
|
209
209
|
<div class="method">
|
210
210
|
<div class="title">
|
211
|
-
<a name="
|
211
|
+
<a name="M000167"></a><b>curry</b>(*args)
|
212
212
|
</div>
|
213
213
|
<div class="description">
|
214
214
|
<p>
|
@@ -216,13 +216,13 @@ Curry <a href="Proc.html">Proc</a> object into new <a
|
|
216
216
|
href="Proc.html">Proc</a> object.
|
217
217
|
</p>
|
218
218
|
<p>
|
219
|
-
TODO: Utilize Ruby 1.9‘s <a href="Proc.html#
|
219
|
+
TODO: Utilize Ruby 1.9‘s <a href="Proc.html#M000167">curry</a>
|
220
220
|
method.
|
221
221
|
</p>
|
222
222
|
</div>
|
223
223
|
<div class="sourcecode">
|
224
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
225
|
-
<div id="
|
224
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000167_source')" id="l_M000167_source">+</a> ]</p>
|
225
|
+
<div id="M000167_source" class="dyn-source">
|
226
226
|
<pre>
|
227
227
|
<span class="ruby-comment cmt"># File lib/core/facets/proc/curry.rb, line 7</span>
|
228
228
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">curry</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
@@ -253,7 +253,7 @@ method.
|
|
253
253
|
</div>
|
254
254
|
<div class="method">
|
255
255
|
<div class="title">
|
256
|
-
<a name="
|
256
|
+
<a name="M000170"></a><b>to_method</b>(object, name=nil)
|
257
257
|
</div>
|
258
258
|
<div class="description">
|
259
259
|
<p>
|
@@ -266,8 +266,8 @@ Convert <a href="Proc.html">Proc</a> to method.
|
|
266
266
|
</pre>
|
267
267
|
</div>
|
268
268
|
<div class="sourcecode">
|
269
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
270
|
-
<div id="
|
269
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000170_source')" id="l_M000170_source">+</a> ]</p>
|
270
|
+
<div id="M000170_source" class="dyn-source">
|
271
271
|
<pre>
|
272
272
|
<span class="ruby-comment cmt"># File lib/core/facets/proc/to_method.rb, line 11</span>
|
273
273
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_method</span>(<span class="ruby-identifier">object</span>, <span class="ruby-identifier">name</span>=<span class="ruby-keyword kw">nil</span>)
|