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
@@ -242,7 +242,7 @@ href="OpenStruct.html">OpenStruct</a> object.
|
|
242
242
|
<p class="source-link">[ <a href="javascript:toggleSource('M000051_source')" id="l_M000051_source">+</a> ]</p>
|
243
243
|
<div id="M000051_source" class="dyn-source">
|
244
244
|
<pre>
|
245
|
-
<span class="ruby-comment cmt"># File lib/lore/facets/ostruct.rb, line
|
245
|
+
<span class="ruby-comment cmt"># File lib/lore/facets/ostruct.rb, line 185</span>
|
246
246
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">__merge__</span>(<span class="ruby-identifier">other</span>)
|
247
247
|
<span class="ruby-identifier">o</span> = <span class="ruby-identifier">dup</span>
|
248
248
|
<span class="ruby-identifier">o</span>.<span class="ruby-identifier">__update__</span>(<span class="ruby-identifier">other</span>)
|
@@ -270,8 +270,9 @@ Insert/update hash data on the fly.
|
|
270
270
|
<p class="source-link">[ <a href="javascript:toggleSource('M000050_source')" id="l_M000050_source">+</a> ]</p>
|
271
271
|
<div id="M000050_source" class="dyn-source">
|
272
272
|
<pre>
|
273
|
-
<span class="ruby-comment cmt"># File lib/lore/facets/ostruct.rb, line
|
273
|
+
<span class="ruby-comment cmt"># File lib/lore/facets/ostruct.rb, line 170</span>
|
274
274
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">__update__</span>(<span class="ruby-identifier">other</span>)
|
275
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">TypeError</span>, <span class="ruby-node">"can't modify frozen #{self.class}"</span>, <span class="ruby-identifier">caller</span>(<span class="ruby-value">1</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">frozen?</span>
|
275
276
|
<span class="ruby-comment cmt">#other = other.to_hash #to_h?</span>
|
276
277
|
<span class="ruby-keyword kw">for</span> <span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span> <span class="ruby-keyword kw">in</span> <span class="ruby-identifier">other</span>
|
277
278
|
<span class="ruby-ivar">@table</span>[<span class="ruby-identifier">k</span>.<span class="ruby-identifier">to_sym</span>] = <span class="ruby-identifier">v</span>
|
@@ -366,7 +367,7 @@ href="OpenStruct.html">OpenStruct</a> object.
|
|
366
367
|
<p class="source-link">[ <a href="javascript:toggleSource('M000049_source')" id="l_M000049_source">+</a> ]</p>
|
367
368
|
<div id="M000049_source" class="dyn-source">
|
368
369
|
<pre>
|
369
|
-
<span class="ruby-comment cmt"># File lib/lore/facets/ostruct.rb, line
|
370
|
+
<span class="ruby-comment cmt"># File lib/lore/facets/ostruct.rb, line 152</span>
|
370
371
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ostruct_merge</span>(<span class="ruby-identifier">other</span>)
|
371
372
|
<span class="ruby-identifier">o</span> = <span class="ruby-identifier">dup</span>
|
372
373
|
<span class="ruby-identifier">o</span>.<span class="ruby-identifier">ostruct_update</span>(<span class="ruby-identifier">other</span>)
|
@@ -394,8 +395,9 @@ Insert/update hash data on the fly.
|
|
394
395
|
<p class="source-link">[ <a href="javascript:toggleSource('M000048_source')" id="l_M000048_source">+</a> ]</p>
|
395
396
|
<div id="M000048_source" class="dyn-source">
|
396
397
|
<pre>
|
397
|
-
<span class="ruby-comment cmt"># File lib/lore/facets/ostruct.rb, line
|
398
|
+
<span class="ruby-comment cmt"># File lib/lore/facets/ostruct.rb, line 137</span>
|
398
399
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ostruct_update</span>(<span class="ruby-identifier">other</span>)
|
400
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">TypeError</span>, <span class="ruby-node">"can't modify frozen #{self.class}"</span>, <span class="ruby-identifier">caller</span>(<span class="ruby-value">1</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">frozen?</span>
|
399
401
|
<span class="ruby-comment cmt">#other = other.to_hash #to_h ?</span>
|
400
402
|
<span class="ruby-keyword kw">for</span> <span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span> <span class="ruby-keyword kw">in</span> <span class="ruby-identifier">other</span>
|
401
403
|
<span class="ruby-ivar">@table</span>[<span class="ruby-identifier">k</span>.<span class="ruby-identifier">to_sym</span>] = <span class="ruby-identifier">v</span>
|
data/doc/rdoc/lore/created.rid
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
Thu, 05 Mar 2009 17:45:06 -0500
|
@@ -63,7 +63,7 @@
|
|
63
63
|
</tr>
|
64
64
|
<tr>
|
65
65
|
<td>Modified:</td>
|
66
|
-
<td>
|
66
|
+
<td>Thu Nov 27 07:44:01 -0500 2008</td>
|
67
67
|
</tr>
|
68
68
|
</table>
|
69
69
|
</td></tr>
|
@@ -133,24 +133,15 @@ The easiest way to install is via RubyGems.
|
|
133
133
|
$ gem install facets
|
134
134
|
</pre>
|
135
135
|
<p>
|
136
|
-
To install manually,
|
137
|
-
|
136
|
+
To install manually, your will need Ruby Setup (<a
|
137
|
+
href="http::/setup.rubyforge.org">:/setup.rubyforge.org</a>). Then download
|
138
|
+
and unpack the .tar.gz package and run:
|
138
139
|
</p>
|
139
140
|
<pre>
|
140
141
|
$ tar -xvzf facets-2.x.x.tar.gz
|
141
142
|
$ cd facets-2.x.x
|
142
|
-
$ sudo
|
143
|
+
$ sudo setup.rb
|
143
144
|
</pre>
|
144
|
-
<p>
|
145
|
-
On Window the last step will be:
|
146
|
-
</p>
|
147
|
-
<pre>
|
148
|
-
C:\> ruby task/setup
|
149
|
-
</pre>
|
150
|
-
<p>
|
151
|
-
IMPORTANT! Note that setup.rb is no longer used b/c of Facets’ new
|
152
|
-
layout.
|
153
|
-
</p>
|
154
145
|
<h2>Compatibility with 1.x series.</h2>
|
155
146
|
<p>
|
156
147
|
Prior to 2.0, Facets was divided between CORE and MORE —standalone
|
@@ -161,19 +152,6 @@ loaded automatically when using ++require "facets"++. While still
|
|
161
152
|
primarily made up of extension methods modules and classes may now belong
|
162
153
|
to core as well.
|
163
154
|
</p>
|
164
|
-
<p>
|
165
|
-
The other significant change from 1.x to 2.0 is the removal of some
|
166
|
-
libraries that were considered too extraneous for a general purpose
|
167
|
-
library. Most of these were spun-off to their own projects. In particular,
|
168
|
-
the web-related libs are now part of Blow (<a
|
169
|
-
href="http://blow.rubyforge.org">blow.rubyforge.org</a>), inflection
|
170
|
-
libraries are in English (<a
|
171
|
-
href="http://english.rubyforge.org">english.rubyforge.org</a>), units.rb
|
172
|
-
along with constants.rb are in Stick (<a
|
173
|
-
href="http://stick.rubyforge.org">stick.rubyforge.org</a>), and the
|
174
|
-
persistance system in Opod (<a
|
175
|
-
href="http://opod.rubyforge.org">opod.rubyforge.org</a>).
|
176
|
-
</p>
|
177
155
|
<h2>Mission</h2>
|
178
156
|
<p>
|
179
157
|
Facets holds to the notion that the more we can reasonably integrate into a
|
@@ -282,10 +260,10 @@ the Ruby license (namely the GPL) or the original author has given
|
|
282
260
|
permission for inclusion of their code under such license.
|
283
261
|
</p>
|
284
262
|
<p>
|
285
|
-
|
263
|
+
Ruby Facets, Copyright (c)2005,2006,2007,2008 Thomas Sawyer / Tiger Ops
|
286
264
|
</p>
|
287
265
|
<p>
|
288
|
-
|
266
|
+
ALL YOUR BASE ARE BELONG TO RUBY!
|
289
267
|
</p>
|
290
268
|
<p>
|
291
269
|
Do you Ruby? (<a href="http://ruby-lang.org">ruby-lang.org</a>)
|
@@ -137,21 +137,21 @@ The following is a list of supported codes.
|
|
137
137
|
|
138
138
|
|
139
139
|
<div class="sectiontitle">Methods</div>
|
140
|
-
<span style="padding-right: 5px;"><a href="#
|
141
|
-
<span style="padding-right: 5px;"><a href="#
|
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="#
|
147
|
-
<span style="padding-right: 5px;"><a href="#
|
148
|
-
<span style="padding-right: 5px;"><a href="#
|
149
|
-
<span style="padding-right: 5px;"><a href="#
|
150
|
-
<span style="padding-right: 5px;"><a href="#
|
151
|
-
<span style="padding-right: 5px;"><a href="#
|
152
|
-
<span style="padding-right: 5px;"><a href="#
|
153
|
-
<span style="padding-right: 5px;"><a href="#
|
154
|
-
<span style="padding-right: 5px;"><a href="#
|
140
|
+
<span style="padding-right: 5px;"><a href="#M001074">clear_line</a></span>
|
141
|
+
<span style="padding-right: 5px;"><a href="#M001072">clear_screen</a></span>
|
142
|
+
<span style="padding-right: 5px;"><a href="#M001075">clr</a></span>
|
143
|
+
<span style="padding-right: 5px;"><a href="#M001073">cls</a></span>
|
144
|
+
<span style="padding-right: 5px;"><a href="#M001084">colors</a></span>
|
145
|
+
<span style="padding-right: 5px;"><a href="#M001082">define_ansicolor_method</a></span>
|
146
|
+
<span style="padding-right: 5px;"><a href="#M001081">display</a></span>
|
147
|
+
<span style="padding-right: 5px;"><a href="#M001078">down</a></span>
|
148
|
+
<span style="padding-right: 5px;"><a href="#M001079">left</a></span>
|
149
|
+
<span style="padding-right: 5px;"><a href="#M001076">move</a></span>
|
150
|
+
<span style="padding-right: 5px;"><a href="#M001071">restore</a></span>
|
151
|
+
<span style="padding-right: 5px;"><a href="#M001080">right</a></span>
|
152
|
+
<span style="padding-right: 5px;"><a href="#M001070">save</a></span>
|
153
|
+
<span style="padding-right: 5px;"><a href="#M001083">uncolored</a></span>
|
154
|
+
<span style="padding-right: 5px;"><a href="#M001077">up</a></span>
|
155
155
|
|
156
156
|
|
157
157
|
|
@@ -169,7 +169,7 @@ The following is a list of supported codes.
|
|
169
169
|
<div class="sectiontitle">Public Class methods</div>
|
170
170
|
<div class="method">
|
171
171
|
<div class="title">
|
172
|
-
<a name="
|
172
|
+
<a name="M001082"></a><b>define_ansicolor_method</b>(name,code)
|
173
173
|
</div>
|
174
174
|
<div class="description">
|
175
175
|
<p>
|
@@ -177,8 +177,8 @@ Define color codes.
|
|
177
177
|
</p>
|
178
178
|
</div>
|
179
179
|
<div class="sourcecode">
|
180
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
181
|
-
<div id="
|
180
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M001082_source')" id="l_M001082_source">+</a> ]</p>
|
181
|
+
<div id="M001082_source" class="dyn-source">
|
182
182
|
<pre>
|
183
183
|
<span class="ruby-comment cmt"># File lib/more/facets/ansicode.rb, line 240</span>
|
184
184
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">define_ansicolor_method</span>(<span class="ruby-identifier">name</span>,<span class="ruby-identifier">code</span>)
|
@@ -191,7 +191,7 @@ Define color codes.
|
|
191
191
|
<div class="sectiontitle">Public Instance methods</div>
|
192
192
|
<div class="method">
|
193
193
|
<div class="title">
|
194
|
-
<a name="
|
194
|
+
<a name="M001074"></a><b>clear_line</b>()
|
195
195
|
</div>
|
196
196
|
<div class="description">
|
197
197
|
<p>
|
@@ -200,11 +200,11 @@ Clear to the end of the current line.
|
|
200
200
|
</div>
|
201
201
|
<div class="aka">
|
202
202
|
This method is also aliased as
|
203
|
-
<a href="ANSICode.html#
|
203
|
+
<a href="ANSICode.html#M001075">clr</a>
|
204
204
|
</div>
|
205
205
|
<div class="sourcecode">
|
206
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
207
|
-
<div id="
|
206
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M001074_source')" id="l_M001074_source">+</a> ]</p>
|
207
|
+
<div id="M001074_source" class="dyn-source">
|
208
208
|
<pre>
|
209
209
|
<span class="ruby-comment cmt"># File lib/more/facets/ansicode.rb, line 178</span>
|
210
210
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clear_line</span>
|
@@ -216,21 +216,21 @@ Clear to the end of the current line.
|
|
216
216
|
</div>
|
217
217
|
<div class="method">
|
218
218
|
<div class="title">
|
219
|
-
<a name="
|
219
|
+
<a name="M001072"></a><b>clear_screen</b>()
|
220
220
|
</div>
|
221
221
|
<div class="description">
|
222
222
|
<p>
|
223
|
-
Clear the screen and <a href="ANSICode.html#
|
223
|
+
Clear the screen and <a href="ANSICode.html#M001076">move</a> cursor to
|
224
224
|
home.
|
225
225
|
</p>
|
226
226
|
</div>
|
227
227
|
<div class="aka">
|
228
228
|
This method is also aliased as
|
229
|
-
<a href="ANSICode.html#
|
229
|
+
<a href="ANSICode.html#M001073">cls</a>
|
230
230
|
</div>
|
231
231
|
<div class="sourcecode">
|
232
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
233
|
-
<div id="
|
232
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M001072_source')" id="l_M001072_source">+</a> ]</p>
|
233
|
+
<div id="M001072_source" class="dyn-source">
|
234
234
|
<pre>
|
235
235
|
<span class="ruby-comment cmt"># File lib/more/facets/ansicode.rb, line 171</span>
|
236
236
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clear_screen</span>
|
@@ -242,31 +242,31 @@ home.
|
|
242
242
|
</div>
|
243
243
|
<div class="method">
|
244
244
|
<div class="title">
|
245
|
-
<a name="
|
245
|
+
<a name="M001075"></a><b>clr</b>()
|
246
246
|
</div>
|
247
247
|
<div class="description">
|
248
248
|
<p>
|
249
|
-
Alias for <a href="ANSICode.html#
|
249
|
+
Alias for <a href="ANSICode.html#M001074">clear_line</a>
|
250
250
|
</p>
|
251
251
|
</div>
|
252
252
|
</div>
|
253
253
|
<div class="method">
|
254
254
|
<div class="title">
|
255
|
-
<a name="
|
255
|
+
<a name="M001073"></a><b>cls</b>()
|
256
256
|
</div>
|
257
257
|
<div class="description">
|
258
258
|
<p>
|
259
|
-
Alias for <a href="ANSICode.html#
|
259
|
+
Alias for <a href="ANSICode.html#M001072">clear_screen</a>
|
260
260
|
</p>
|
261
261
|
</div>
|
262
262
|
</div>
|
263
263
|
<div class="method">
|
264
264
|
<div class="title">
|
265
|
-
<a name="
|
265
|
+
<a name="M001084"></a><b>colors</b>()
|
266
266
|
</div>
|
267
267
|
<div class="sourcecode">
|
268
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
269
|
-
<div id="
|
268
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M001084_source')" id="l_M001084_source">+</a> ]</p>
|
269
|
+
<div id="M001084_source" class="dyn-source">
|
270
270
|
<pre>
|
271
271
|
<span class="ruby-comment cmt"># File lib/more/facets/ansicode.rb, line 311</span>
|
272
272
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">colors</span>
|
@@ -278,17 +278,17 @@ Alias for <a href="ANSICode.html#M001067">clear_screen</a>
|
|
278
278
|
</div>
|
279
279
|
<div class="method">
|
280
280
|
<div class="title">
|
281
|
-
<a name="
|
281
|
+
<a name="M001081"></a><b>display</b>( line, column=0, string=nil ) {|| ...}
|
282
282
|
</div>
|
283
283
|
<div class="description">
|
284
284
|
<p>
|
285
|
-
Like <tt><a href="ANSICode.html#
|
285
|
+
Like <tt><a href="ANSICode.html#M001076">move</a></tt> but returns to
|
286
286
|
original positon after yielding block or adding string argument.
|
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('M001081_source')" id="l_M001081_source">+</a> ]</p>
|
291
|
+
<div id="M001081_source" class="dyn-source">
|
292
292
|
<pre>
|
293
293
|
<span class="ruby-comment cmt"># File lib/more/facets/ansicode.rb, line 222</span>
|
294
294
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">display</span>( <span class="ruby-identifier">line</span>, <span class="ruby-identifier">column</span>=<span class="ruby-value">0</span>, <span class="ruby-identifier">string</span>=<span class="ruby-keyword kw">nil</span> ) <span class="ruby-comment cmt">#:yield:</span>
|
@@ -312,17 +312,17 @@ original positon after yielding block or adding string argument.
|
|
312
312
|
</div>
|
313
313
|
<div class="method">
|
314
314
|
<div class="title">
|
315
|
-
<a name="
|
315
|
+
<a name="M001078"></a><b>down</b>( spaces=1 )
|
316
316
|
</div>
|
317
317
|
<div class="description">
|
318
318
|
<p>
|
319
|
-
Move cursor <a href="ANSICode.html#
|
319
|
+
Move cursor <a href="ANSICode.html#M001078">down</a> a specificed number of
|
320
320
|
spaces.
|
321
321
|
</p>
|
322
322
|
</div>
|
323
323
|
<div class="sourcecode">
|
324
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
325
|
-
<div id="
|
324
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M001078_source')" id="l_M001078_source">+</a> ]</p>
|
325
|
+
<div id="M001078_source" class="dyn-source">
|
326
326
|
<pre>
|
327
327
|
<span class="ruby-comment cmt"># File lib/more/facets/ansicode.rb, line 203</span>
|
328
328
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">down</span>( <span class="ruby-identifier">spaces</span>=<span class="ruby-value">1</span> )
|
@@ -334,17 +334,17 @@ spaces.
|
|
334
334
|
</div>
|
335
335
|
<div class="method">
|
336
336
|
<div class="title">
|
337
|
-
<a name="
|
337
|
+
<a name="M001079"></a><b>left</b>( spaces=1 )
|
338
338
|
</div>
|
339
339
|
<div class="description">
|
340
340
|
<p>
|
341
|
-
Move cursor <a href="ANSICode.html#
|
341
|
+
Move cursor <a href="ANSICode.html#M001079">left</a> a specificed number of
|
342
342
|
spaces.
|
343
343
|
</p>
|
344
344
|
</div>
|
345
345
|
<div class="sourcecode">
|
346
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
347
|
-
<div id="
|
346
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M001079_source')" id="l_M001079_source">+</a> ]</p>
|
347
|
+
<div id="M001079_source" class="dyn-source">
|
348
348
|
<pre>
|
349
349
|
<span class="ruby-comment cmt"># File lib/more/facets/ansicode.rb, line 209</span>
|
350
350
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">left</span>( <span class="ruby-identifier">spaces</span>=<span class="ruby-value">1</span> )
|
@@ -356,7 +356,7 @@ spaces.
|
|
356
356
|
</div>
|
357
357
|
<div class="method">
|
358
358
|
<div class="title">
|
359
|
-
<a name="
|
359
|
+
<a name="M001076"></a><b>move</b>( line, column=0 )
|
360
360
|
</div>
|
361
361
|
<div class="description">
|
362
362
|
<p>
|
@@ -364,8 +364,8 @@ Move curose to line and column.
|
|
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('M001076_source')" id="l_M001076_source">+</a> ]</p>
|
368
|
+
<div id="M001076_source" class="dyn-source">
|
369
369
|
<pre>
|
370
370
|
<span class="ruby-comment cmt"># File lib/more/facets/ansicode.rb, line 191</span>
|
371
371
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">move</span>( <span class="ruby-identifier">line</span>, <span class="ruby-identifier">column</span>=<span class="ruby-value">0</span> )
|
@@ -377,7 +377,7 @@ Move curose to line and column.
|
|
377
377
|
</div>
|
378
378
|
<div class="method">
|
379
379
|
<div class="title">
|
380
|
-
<a name="
|
380
|
+
<a name="M001071"></a><b>restore</b>()
|
381
381
|
</div>
|
382
382
|
<div class="description">
|
383
383
|
<p>
|
@@ -385,8 +385,8 @@ Restore saved cursor positon.
|
|
385
385
|
</p>
|
386
386
|
</div>
|
387
387
|
<div class="sourcecode">
|
388
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
389
|
-
<div id="
|
388
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M001071_source')" id="l_M001071_source">+</a> ]</p>
|
389
|
+
<div id="M001071_source" class="dyn-source">
|
390
390
|
<pre>
|
391
391
|
<span class="ruby-comment cmt"># File lib/more/facets/ansicode.rb, line 165</span>
|
392
392
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">restore</span>
|
@@ -398,17 +398,17 @@ Restore saved cursor positon.
|
|
398
398
|
</div>
|
399
399
|
<div class="method">
|
400
400
|
<div class="title">
|
401
|
-
<a name="
|
401
|
+
<a name="M001080"></a><b>right</b>( spaces=1 )
|
402
402
|
</div>
|
403
403
|
<div class="description">
|
404
404
|
<p>
|
405
|
-
Move cursor <a href="ANSICode.html#
|
405
|
+
Move cursor <a href="ANSICode.html#M001080">right</a> a specificed number
|
406
406
|
of spaces.
|
407
407
|
</p>
|
408
408
|
</div>
|
409
409
|
<div class="sourcecode">
|
410
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
411
|
-
<div id="
|
410
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M001080_source')" id="l_M001080_source">+</a> ]</p>
|
411
|
+
<div id="M001080_source" class="dyn-source">
|
412
412
|
<pre>
|
413
413
|
<span class="ruby-comment cmt"># File lib/more/facets/ansicode.rb, line 215</span>
|
414
414
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">right</span>( <span class="ruby-identifier">spaces</span>=<span class="ruby-value">1</span> )
|
@@ -420,7 +420,7 @@ of spaces.
|
|
420
420
|
</div>
|
421
421
|
<div class="method">
|
422
422
|
<div class="title">
|
423
|
-
<a name="
|
423
|
+
<a name="M001070"></a><b>save</b>()
|
424
424
|
</div>
|
425
425
|
<div class="description">
|
426
426
|
<p>
|
@@ -428,8 +428,8 @@ Save current cursor positon.
|
|
428
428
|
</p>
|
429
429
|
</div>
|
430
430
|
<div class="sourcecode">
|
431
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
432
|
-
<div id="
|
431
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M001070_source')" id="l_M001070_source">+</a> ]</p>
|
432
|
+
<div id="M001070_source" class="dyn-source">
|
433
433
|
<pre>
|
434
434
|
<span class="ruby-comment cmt"># File lib/more/facets/ansicode.rb, line 159</span>
|
435
435
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">save</span>
|
@@ -441,11 +441,11 @@ Save current cursor positon.
|
|
441
441
|
</div>
|
442
442
|
<div class="method">
|
443
443
|
<div class="title">
|
444
|
-
<a name="
|
444
|
+
<a name="M001083"></a><b>uncolored</b>(string = nil) {|.gsub(ColoredRegexp, '')| ...}
|
445
445
|
</div>
|
446
446
|
<div class="sourcecode">
|
447
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
448
|
-
<div id="
|
447
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M001083_source')" id="l_M001083_source">+</a> ]</p>
|
448
|
+
<div id="M001083_source" class="dyn-source">
|
449
449
|
<pre>
|
450
450
|
<span class="ruby-comment cmt"># File lib/more/facets/ansicode.rb, line 297</span>
|
451
451
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">uncolored</span>(<span class="ruby-identifier">string</span> = <span class="ruby-keyword kw">nil</span>)
|
@@ -465,17 +465,17 @@ Save current cursor positon.
|
|
465
465
|
</div>
|
466
466
|
<div class="method">
|
467
467
|
<div class="title">
|
468
|
-
<a name="
|
468
|
+
<a name="M001077"></a><b>up</b>( spaces=1 )
|
469
469
|
</div>
|
470
470
|
<div class="description">
|
471
471
|
<p>
|
472
|
-
Move cursor <a href="ANSICode.html#
|
472
|
+
Move cursor <a href="ANSICode.html#M001077">up</a> a specificed number of
|
473
473
|
spaces.
|
474
474
|
</p>
|
475
475
|
</div>
|
476
476
|
<div class="sourcecode">
|
477
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
478
|
-
<div id="
|
477
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M001077_source')" id="l_M001077_source">+</a> ]</p>
|
478
|
+
<div id="M001077_source" class="dyn-source">
|
479
479
|
<pre>
|
480
480
|
<span class="ruby-comment cmt"># File lib/more/facets/ansicode.rb, line 197</span>
|
481
481
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">up</span>( <span class="ruby-identifier">spaces</span>=<span class="ruby-value">1</span> )
|
@@ -72,23 +72,23 @@
|
|
72
72
|
<div class="description"><h1><a href="Advisable.html">Advisable</a></h1>
|
73
73
|
<p>
|
74
74
|
<a href="Advisable.html">Advisable</a> provides a means of using <a
|
75
|
-
href="Advisable.html#
|
76
|
-
href="Advisable.html#
|
77
|
-
href="Advisable.html#
|
75
|
+
href="Advisable.html#M000752">before</a>, <a
|
76
|
+
href="Advisable.html#M000753">after</a> and <a
|
77
|
+
href="Advisable.html#M000754">around</a> adivce.
|
78
78
|
</p>
|
79
79
|
</div>
|
80
80
|
|
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="#
|
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="#
|
84
|
+
<span style="padding-right: 5px;"><a href="#M000750">advice_after</a></span>
|
85
|
+
<span style="padding-right: 5px;"><a href="#M000751">advice_around</a></span>
|
86
|
+
<span style="padding-right: 5px;"><a href="#M000749">advice_before</a></span>
|
87
|
+
<span style="padding-right: 5px;"><a href="#M000755">advise</a></span>
|
88
|
+
<span style="padding-right: 5px;"><a href="#M000753">after</a></span>
|
89
|
+
<span style="padding-right: 5px;"><a href="#M000754">around</a></span>
|
90
|
+
<span style="padding-right: 5px;"><a href="#M000752">before</a></span>
|
91
|
+
<span style="padding-right: 5px;"><a href="#M000756">method_added</a></span>
|
92
92
|
|
93
93
|
|
94
94
|
|
@@ -101,11 +101,11 @@ href="Advisable.html#M000752">around</a> adivce.
|
|
101
101
|
<div class="sectiontitle">Public Instance methods</div>
|
102
102
|
<div class="method">
|
103
103
|
<div class="title">
|
104
|
-
<a name="
|
104
|
+
<a name="M000750"></a><b>advice_after</b>()
|
105
105
|
</div>
|
106
106
|
<div class="sourcecode">
|
107
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
108
|
-
<div id="
|
107
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000750_source')" id="l_M000750_source">+</a> ]</p>
|
108
|
+
<div id="M000750_source" class="dyn-source">
|
109
109
|
<pre>
|
110
110
|
<span class="ruby-comment cmt"># File lib/more/facets/advisable.rb, line 36</span>
|
111
111
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">advice_after</span>
|
@@ -117,11 +117,11 @@ href="Advisable.html#M000752">around</a> adivce.
|
|
117
117
|
</div>
|
118
118
|
<div class="method">
|
119
119
|
<div class="title">
|
120
|
-
<a name="
|
120
|
+
<a name="M000751"></a><b>advice_around</b>()
|
121
121
|
</div>
|
122
122
|
<div class="sourcecode">
|
123
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
124
|
-
<div id="
|
123
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000751_source')" id="l_M000751_source">+</a> ]</p>
|
124
|
+
<div id="M000751_source" class="dyn-source">
|
125
125
|
<pre>
|
126
126
|
<span class="ruby-comment cmt"># File lib/more/facets/advisable.rb, line 40</span>
|
127
127
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">advice_around</span>
|
@@ -133,11 +133,11 @@ href="Advisable.html#M000752">around</a> adivce.
|
|
133
133
|
</div>
|
134
134
|
<div class="method">
|
135
135
|
<div class="title">
|
136
|
-
<a name="
|
136
|
+
<a name="M000749"></a><b>advice_before</b>()
|
137
137
|
</div>
|
138
138
|
<div class="sourcecode">
|
139
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
140
|
-
<div id="
|
139
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000749_source')" id="l_M000749_source">+</a> ]</p>
|
140
|
+
<div id="M000749_source" class="dyn-source">
|
141
141
|
<pre>
|
142
142
|
<span class="ruby-comment cmt"># File lib/more/facets/advisable.rb, line 32</span>
|
143
143
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">advice_before</span>
|
@@ -149,7 +149,7 @@ href="Advisable.html#M000752">around</a> adivce.
|
|
149
149
|
</div>
|
150
150
|
<div class="method">
|
151
151
|
<div class="title">
|
152
|
-
<a name="
|
152
|
+
<a name="M000755"></a><b>advise</b>(meth)
|
153
153
|
</div>
|
154
154
|
<div class="description">
|
155
155
|
<p>
|
@@ -157,8 +157,8 @@ Advise a method.
|
|
157
157
|
</p>
|
158
158
|
</div>
|
159
159
|
<div class="sourcecode">
|
160
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
161
|
-
<div id="
|
160
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000755_source')" id="l_M000755_source">+</a> ]</p>
|
161
|
+
<div id="M000755_source" class="dyn-source">
|
162
162
|
<pre>
|
163
163
|
<span class="ruby-comment cmt"># File lib/more/facets/advisable.rb, line 64</span>
|
164
164
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">advise</span>(<span class="ruby-identifier">meth</span>)
|
@@ -173,11 +173,11 @@ Advise a method.
|
|
173
173
|
</div>
|
174
174
|
<div class="method">
|
175
175
|
<div class="title">
|
176
|
-
<a name="
|
176
|
+
<a name="M000753"></a><b>after</b>(meth, &block)
|
177
177
|
</div>
|
178
178
|
<div class="sourcecode">
|
179
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
180
|
-
<div id="
|
179
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000753_source')" id="l_M000753_source">+</a> ]</p>
|
180
|
+
<div id="M000753_source" class="dyn-source">
|
181
181
|
<pre>
|
182
182
|
<span class="ruby-comment cmt"># File lib/more/facets/advisable.rb, line 50</span>
|
183
183
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">after</span>(<span class="ruby-identifier">meth</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -191,11 +191,11 @@ Advise a method.
|
|
191
191
|
</div>
|
192
192
|
<div class="method">
|
193
193
|
<div class="title">
|
194
|
-
<a name="
|
194
|
+
<a name="M000754"></a><b>around</b>(meth, &block)
|
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('M000754_source')" id="l_M000754_source">+</a> ]</p>
|
198
|
+
<div id="M000754_source" class="dyn-source">
|
199
199
|
<pre>
|
200
200
|
<span class="ruby-comment cmt"># File lib/more/facets/advisable.rb, line 56</span>
|
201
201
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">around</span>(<span class="ruby-identifier">meth</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -209,11 +209,11 @@ Advise a method.
|
|
209
209
|
</div>
|
210
210
|
<div class="method">
|
211
211
|
<div class="title">
|
212
|
-
<a name="
|
212
|
+
<a name="M000752"></a><b>before</b>(meth, &block)
|
213
213
|
</div>
|
214
214
|
<div class="sourcecode">
|
215
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
216
|
-
<div id="
|
215
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000752_source')" id="l_M000752_source">+</a> ]</p>
|
216
|
+
<div id="M000752_source" class="dyn-source">
|
217
217
|
<pre>
|
218
218
|
<span class="ruby-comment cmt"># File lib/more/facets/advisable.rb, line 44</span>
|
219
219
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">before</span>(<span class="ruby-identifier">meth</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -227,12 +227,12 @@ Advise a method.
|
|
227
227
|
</div>
|
228
228
|
<div class="method">
|
229
229
|
<div class="title">
|
230
|
-
<a name="
|
230
|
+
<a name="M000756"></a><b>method_added</b>(meth)
|
231
231
|
</div>
|
232
232
|
<div class="description">
|
233
233
|
<p>
|
234
|
-
<a href="Advisable.html#
|
235
|
-
href="Advisable.html#
|
234
|
+
<a href="Advisable.html#M000753">after</a> :<a
|
235
|
+
href="Advisable.html#M000756">method_added</a> do |meth|
|
236
236
|
</p>
|
237
237
|
<pre>
|
238
238
|
advise(meth) unless defined?("#{meth}_orig")
|
@@ -242,8 +242,8 @@ end
|
|
242
242
|
</p>
|
243
243
|
</div>
|
244
244
|
<div class="sourcecode">
|
245
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
246
|
-
<div id="
|
245
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000756_source')" id="l_M000756_source">+</a> ]</p>
|
246
|
+
<div id="M000756_source" class="dyn-source">
|
247
247
|
<pre>
|
248
248
|
<span class="ruby-comment cmt"># File lib/more/facets/advisable.rb, line 93</span>
|
249
249
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">method_added</span>(<span class="ruby-identifier">meth</span>)
|