facets 2.4.2 → 2.4.3
Sign up to get free protection for your applications and to get access to all the features.
- data/AUTHORS +1 -1
- data/CHANGES +25 -5
- data/MANIFEST +67 -34
- data/METADATA +2 -2
- data/NEWS +54 -46
- data/doc/news/NEWS-2.4.0 +52 -0
- data/doc/rdoc/core/classes/Array.html +198 -198
- data/doc/rdoc/core/classes/Binding.html +86 -192
- data/doc/rdoc/core/classes/Class.html +136 -136
- data/doc/rdoc/core/classes/Comparable.html +45 -45
- data/doc/rdoc/core/classes/Dir.html +64 -64
- data/doc/rdoc/core/classes/Enumerable.html +287 -281
- data/doc/rdoc/core/classes/Exception.html +16 -16
- data/doc/rdoc/core/classes/FalseClass.html +8 -8
- data/doc/rdoc/core/classes/File.html +100 -100
- data/doc/rdoc/core/classes/FileTest.html +8 -8
- data/doc/rdoc/core/classes/Float.html +32 -32
- data/doc/rdoc/core/classes/Friend.html +8 -8
- data/doc/rdoc/core/classes/Functor.html +12 -12
- data/doc/rdoc/core/classes/Hash.html +439 -847
- data/doc/rdoc/{more → core}/classes/Indexable.html +115 -115
- data/doc/rdoc/core/classes/InstanceVariables.html +88 -88
- data/doc/rdoc/core/classes/Integer.html +142 -142
- data/doc/rdoc/core/classes/Kernel.html +602 -600
- data/doc/rdoc/core/classes/Lazy/Promise.html +1 -1
- data/doc/rdoc/core/classes/MatchData.html +30 -30
- data/doc/rdoc/core/classes/Module.html +379 -327
- data/doc/rdoc/core/classes/NilClass.html +32 -32
- data/doc/rdoc/core/classes/Numeric.html +46 -46
- data/doc/rdoc/core/classes/Object.html +4 -4
- data/doc/rdoc/core/classes/Proc.html +46 -134
- data/doc/rdoc/core/classes/Range.html +60 -60
- data/doc/rdoc/core/classes/Regexp.html +28 -28
- data/doc/rdoc/{more → core}/classes/Stackable.html +38 -38
- data/doc/rdoc/core/classes/String.html +844 -504
- data/doc/rdoc/core/classes/Symbol.html +62 -62
- data/doc/rdoc/core/classes/Time.html +112 -112
- data/doc/rdoc/core/classes/TrueClass.html +8 -8
- data/doc/rdoc/core/classes/UnboundMethod.html +22 -22
- data/doc/rdoc/core/created.rid +1 -1
- data/doc/rdoc/core/files/lib/core/facets/array_rb.html +4 -1
- data/doc/rdoc/core/files/lib/core/facets/binding_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/boolean_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/class/methodize_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/class/pathize_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/class_rb.html +5 -1
- data/doc/rdoc/core/files/lib/core/facets/dir_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/{class/to_methodname_rb.html → enumerable/commonality_rb.html} +4 -4
- data/doc/rdoc/core/files/lib/core/facets/enumerable/entropy_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/{class/to_pathname_rb.html → enumerable/frequency_rb.html} +4 -4
- data/doc/rdoc/core/files/lib/core/facets/enumerable/probability_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable_rb.html +6 -2
- data/doc/rdoc/core/files/lib/core/facets/file_rb.html +2 -1
- data/doc/rdoc/core/files/lib/core/facets/hash_rb.html +7 -1
- data/doc/rdoc/{more/files/lib/more → core/files/lib/core}/facets/indexable_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/require_all_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/require_local_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel_rb.html +15 -2
- data/doc/rdoc/core/files/lib/core/facets/module/integrate_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/module/methodize_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/module/module_load_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/pathize_rb.html +5 -1
- data/doc/rdoc/core/files/lib/core/facets/module/redefine_method_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module/redirect_method_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module/rename_method_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module/revise_rb.html +8 -1
- data/doc/rdoc/core/files/lib/core/facets/module/wrap_method_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module_rb.html +8 -5
- data/doc/rdoc/core/files/lib/core/facets/numeric_rb.html +2 -1
- data/doc/rdoc/core/files/lib/core/facets/proc_rb.html +3 -5
- data/doc/rdoc/{more/files/lib/more → core/files/lib/core}/facets/stackable_rb.html +3 -4
- data/doc/rdoc/core/files/lib/core/facets/string/each_word_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/{module/clone_rb.html → string/methodize_rb.html} +4 -4
- data/doc/rdoc/core/files/lib/core/facets/{kernel/load_rb.html → string/pathize_rb.html} +4 -4
- data/doc/rdoc/core/files/lib/core/facets/string/word_wrap_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/words_rb.html +1 -5
- data/doc/rdoc/core/files/lib/core/facets/string_rb.html +8 -3
- data/doc/rdoc/core/files/lib/core/facets/symbol_rb.html +2 -1
- data/doc/rdoc/core/fr_class_index.html +2 -3
- data/doc/rdoc/core/fr_file_index.html +36 -16
- data/doc/rdoc/core/fr_method_index.html +778 -784
- data/doc/rdoc/lore/created.rid +1 -1
- data/doc/rdoc/more/classes/ANSICode.html +66 -66
- data/doc/rdoc/more/classes/Advisable.html +37 -37
- data/doc/rdoc/more/classes/Advisable/Method.html +20 -20
- data/doc/rdoc/more/classes/Archive/Tar/Minitar.html +27 -27
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Input.html +28 -28
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Output.html +19 -19
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Reader.html +31 -31
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Writer.html +33 -33
- data/doc/rdoc/more/classes/Association.html +28 -28
- data/doc/rdoc/more/classes/Association/Kernel.html +8 -8
- data/doc/rdoc/more/classes/Autoarray.html +12 -12
- data/doc/rdoc/more/classes/BBCode.html +34 -34
- data/doc/rdoc/more/classes/BaseX.html +16 -16
- data/doc/rdoc/more/classes/BiCrypt.html +67 -67
- data/doc/rdoc/more/classes/BigDuration.html +30 -30
- data/doc/rdoc/more/classes/BinReadable.html +85 -85
- data/doc/rdoc/more/classes/BinReadable/ByteOrder.html +25 -25
- data/doc/rdoc/more/classes/Binding.html +201 -0
- data/doc/rdoc/more/classes/Buildable.html +4 -4
- data/doc/rdoc/more/classes/BuildingBlock.html +32 -32
- data/doc/rdoc/more/classes/CLI.html +108 -0
- data/doc/rdoc/more/classes/CLI/Arguments.html +76 -76
- data/doc/rdoc/more/classes/CLI/Command.html +22 -22
- data/doc/rdoc/more/classes/CLI/NoCommandError.html +4 -4
- data/doc/rdoc/more/classes/CLI/NoOptionError.html +4 -4
- data/doc/rdoc/more/classes/CacheDecorator.html +21 -21
- data/doc/rdoc/more/classes/Capsule.html +41 -41
- data/doc/rdoc/more/classes/Chain.html +17 -17
- data/doc/rdoc/more/classes/Cloneable.html +4 -4
- data/doc/rdoc/more/classes/ConsoleUtils.html +18 -18
- data/doc/rdoc/more/classes/Coroutine.html +28 -28
- data/doc/rdoc/more/classes/Crypt.html +16 -16
- data/doc/rdoc/more/classes/CssFilter.html +45 -45
- data/doc/rdoc/more/classes/CssTree.html +8 -8
- data/doc/rdoc/more/classes/Dictionary.html +228 -228
- data/doc/rdoc/more/classes/DictionaryMatcher.html +38 -38
- data/doc/rdoc/more/classes/DictionaryMatcher/MatchData.html +4 -4
- data/doc/rdoc/more/classes/Downloader.html +56 -56
- data/doc/rdoc/more/classes/Duration.html +68 -68
- data/doc/rdoc/more/classes/Enumerable.html +44 -44
- data/doc/rdoc/more/classes/Enumerable/Elementor.html +16 -16
- data/doc/rdoc/more/classes/Enumerable/Enumerator.html +4 -4
- data/doc/rdoc/more/classes/EnumerablePass.html +15 -15
- data/doc/rdoc/more/classes/Equatable.html +16 -16
- data/doc/rdoc/more/classes/EventHook.html +8 -8
- data/doc/rdoc/more/classes/Expirable.html +17 -17
- data/doc/rdoc/more/classes/FileList.html +125 -125
- data/doc/rdoc/more/classes/FileShell.html +147 -147
- data/doc/rdoc/more/classes/Fileable.html +14 -14
- data/doc/rdoc/more/classes/Fileable/DSL.html +41 -41
- data/doc/rdoc/more/classes/Hash.html +306 -14
- data/doc/rdoc/more/classes/Hash2Xml.html +4 -4
- data/doc/rdoc/more/classes/HtmlFilter.html +9 -9
- data/doc/rdoc/more/classes/IORedirect.html +19 -19
- data/doc/rdoc/more/classes/InfinityClass.html +36 -36
- data/doc/rdoc/more/classes/InfinityClass/Numeric.html +23 -23
- data/doc/rdoc/more/classes/Ini.html +37 -37
- data/doc/rdoc/more/classes/Instantiable.html +9 -9
- data/doc/rdoc/more/classes/Instantise.html +8 -8
- data/doc/rdoc/more/classes/Interval.html +187 -187
- data/doc/rdoc/more/classes/It.html +12 -12
- data/doc/rdoc/more/classes/Kernel.html +77 -77
- data/doc/rdoc/more/classes/LRUCache.html +38 -38
- data/doc/rdoc/more/classes/LinkedList.html +68 -68
- data/doc/rdoc/more/classes/LinkedList/Node.html +4 -4
- data/doc/rdoc/{core → more}/classes/MissingArgument.html +1 -2
- data/doc/rdoc/more/classes/Module.html +171 -171
- data/doc/rdoc/more/classes/Multiton.html +12 -12
- data/doc/rdoc/more/classes/Multiton/MetaMethods.html +28 -28
- data/doc/rdoc/more/classes/Net/SMTP.html +19 -19
- data/doc/rdoc/more/classes/NullClass.html +24 -24
- data/doc/rdoc/more/classes/ObjectReflection.html +12 -12
- data/doc/rdoc/more/classes/OpEsc.html +5 -5
- data/doc/rdoc/more/classes/OpenCascade.html +4 -4
- data/doc/rdoc/more/classes/OpenCollection.html +8 -8
- data/doc/rdoc/more/classes/OpenHash.html +9 -9
- data/doc/rdoc/more/classes/OpenObject.html +95 -95
- data/doc/rdoc/more/classes/PQueue.html +84 -84
- data/doc/rdoc/more/classes/Paramix.html +11 -11
- data/doc/rdoc/more/classes/Paramix/Delegator.html +16 -16
- data/doc/rdoc/more/classes/PathList.html +8 -8
- data/doc/rdoc/more/classes/PathList/Finder.html +8 -8
- data/doc/rdoc/more/classes/Platform.html +46 -46
- data/doc/rdoc/more/classes/Pool.html +18 -18
- data/doc/rdoc/more/classes/Proc.html +48 -4
- data/doc/rdoc/more/classes/ProgressBar.html +52 -52
- data/doc/rdoc/more/classes/Prototype.html +28 -28
- data/doc/rdoc/more/classes/RWDelegator.html +16 -16
- data/doc/rdoc/more/classes/Random.html +9 -9
- data/doc/rdoc/more/classes/Random/Array.html +37 -37
- data/doc/rdoc/more/classes/Random/Hash.html +52 -52
- data/doc/rdoc/more/classes/Random/Object.html +4 -4
- data/doc/rdoc/more/classes/Random/String.html +34 -34
- data/doc/rdoc/more/classes/Random/String/Self.html +9 -9
- data/doc/rdoc/more/classes/Recorder.html +16 -16
- data/doc/rdoc/more/classes/Reference.html +19 -19
- data/doc/rdoc/more/classes/Registerable.html +13 -13
- data/doc/rdoc/more/classes/Semaphore.html +36 -36
- data/doc/rdoc/more/classes/Settings.html +28 -28
- data/doc/rdoc/more/classes/Settings/Setting.html +13 -13
- data/doc/rdoc/more/classes/Settings/SettingCollection.html +4 -4
- data/doc/rdoc/more/classes/SimpleStringIO.html +8 -8
- data/doc/rdoc/more/classes/Snapshot.html +16 -16
- data/doc/rdoc/more/classes/Snapshot/ValueHolder.html +12 -12
- data/doc/rdoc/more/classes/String/Style.html +113 -113
- data/doc/rdoc/{core → more}/classes/String/Words.html +78 -78
- data/doc/rdoc/more/classes/Struct.html +8 -8
- data/doc/rdoc/more/classes/SyncArray.html +4 -4
- data/doc/rdoc/more/classes/SyncHash.html +4 -4
- data/doc/rdoc/more/classes/SyncHash/Delegator.html +28 -28
- data/doc/rdoc/more/classes/SyncHash/Inheritor.html +28 -28
- data/doc/rdoc/more/classes/System.html +253 -253
- data/doc/rdoc/more/classes/Timer.html +48 -48
- data/doc/rdoc/more/classes/Timer/Dummy.html +9 -9
- data/doc/rdoc/more/classes/TracePoint.html +64 -62
- data/doc/rdoc/more/classes/Tuple.html +170 -170
- data/doc/rdoc/more/classes/TypeCast/Class.html +4 -4
- data/doc/rdoc/more/classes/TypeCast/Object.html +4 -4
- data/doc/rdoc/more/classes/Uninheritable.html +6 -6
- data/doc/rdoc/more/classes/UploadUtils.html +49 -49
- data/doc/rdoc/more/classes/VersionNumber.html +53 -53
- data/doc/rdoc/more/classes/Weekdays.html +28 -28
- data/doc/rdoc/more/classes/XOXO.html +9 -9
- data/doc/rdoc/more/classes/ZipUtils.html +58 -58
- data/doc/rdoc/more/classes/ZipUtils/DryRun.html +28 -28
- data/doc/rdoc/more/classes/ZipUtils/NoWrite.html +28 -28
- data/doc/rdoc/more/classes/ZipUtils/Verbose.html +28 -28
- data/doc/rdoc/more/created.rid +1 -1
- data/doc/rdoc/more/files/lib/more/facets/ansicode_rb.html +1 -1
- data/doc/rdoc/{core/files/lib/core → more/files/lib/more}/facets/binding/opvars_rb.html +2 -2
- data/doc/rdoc/{core/files/lib/core → more/files/lib/more}/facets/hash/stringify_keys_rb.html +2 -2
- data/doc/rdoc/{core/files/lib/core → more/files/lib/more}/facets/hash/symbolize_keys_rb.html +2 -2
- data/doc/rdoc/{core/files/lib/core/facets/proc → more/files/lib/more/facets}/partial_rb.html +8 -7
- data/doc/rdoc/more/files/lib/more/facets/snapshot_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/string/words_rb.html +96 -0
- data/doc/rdoc/more/files/lib/more/facets/tracepoint_rb.html +13 -8
- data/doc/rdoc/more/fr_class_index.html +4 -2
- data/doc/rdoc/more/fr_file_index.html +9 -2
- data/doc/rdoc/more/fr_method_index.html +1013 -1009
- data/doc/ri/CLI/cdesc-CLI.yaml +7 -2
- data/doc/ri/Enumerable/probability-i.yaml +1 -1
- data/doc/ri/Module/append_features-i.yaml +4 -3
- data/doc/ri/Module/cdesc-Module.yaml +4 -3
- data/doc/ri/Module/methodize-i.yaml +14 -0
- data/doc/ri/Module/redefine_method-i.yaml +1 -1
- data/doc/ri/Module/redirect_method-i.yaml +3 -1
- data/doc/ri/Module/rename_method-i.yaml +1 -1
- data/doc/ri/created.rid +1 -1
- data/lib/core/facets/array.rb +3 -0
- data/lib/core/facets/binding.rb +0 -1
- data/lib/core/facets/class.rb +4 -4
- data/lib/core/facets/class/{to_methodname.rb → methodize.rb} +5 -2
- data/lib/core/facets/class/pathize.rb +14 -0
- data/lib/core/facets/enumerable.rb +5 -2
- data/lib/core/facets/enumerable/commonality.rb +33 -0
- data/lib/core/facets/enumerable/entropy.rb +37 -0
- data/lib/core/facets/enumerable/frequency.rb +18 -0
- data/lib/core/facets/enumerable/probability.rb +1 -98
- data/lib/core/facets/file.rb +1 -1
- data/lib/core/facets/hash.rb +6 -0
- data/lib/{more → core}/facets/indexable.rb +0 -0
- data/lib/core/facets/kernel.rb +15 -1
- data/lib/core/facets/kernel/require_all.rb +21 -0
- data/lib/core/facets/kernel/{load.rb → require_local.rb} +6 -23
- data/lib/core/facets/module.rb +7 -3
- data/lib/core/facets/module/integrate.rb +2 -0
- data/lib/core/facets/module/methodize.rb +14 -0
- data/lib/core/facets/module/pathize.rb +10 -7
- data/lib/core/facets/module/redefine_method.rb +35 -0
- data/lib/core/facets/module/redirect_method.rb +45 -0
- data/lib/core/facets/module/rename_method.rb +20 -0
- data/lib/core/facets/module/revise.rb +7 -113
- data/lib/core/facets/module/wrap_method.rb +28 -0
- data/lib/core/facets/numeric.rb +1 -1
- data/lib/core/facets/proc.rb +2 -3
- data/lib/{more → core}/facets/stackable.rb +0 -0
- data/lib/core/facets/string.rb +8 -6
- data/lib/core/facets/string/each_word.rb +13 -0
- data/lib/core/facets/string/methodize.rb +12 -0
- data/lib/core/facets/string/pathize.rb +12 -0
- data/lib/core/facets/string/word_wrap.rb +34 -0
- data/lib/core/facets/string/words.rb +6 -167
- data/lib/core/facets/symbol.rb +1 -0
- data/lib/more/facets/ansicode.rb +4 -4
- data/lib/{core → more}/facets/binding/opvars.rb +0 -0
- data/lib/{core → more}/facets/hash/stringify_keys.rb +0 -0
- data/lib/{core → more}/facets/hash/symbolize_keys.rb +5 -6
- data/lib/{core/facets/proc → more/facets}/partial.rb +0 -0
- data/lib/more/facets/string/words.rb +173 -0
- data/test/core/dir/test_multiglob.rb +1 -0
- data/test/core/dir/test_recurse.rb +1 -0
- data/test/core/enumerable/test_commonality.rb +15 -0
- data/test/core/enumerable/test_entropy.rb +15 -0
- data/test/core/enumerable/test_frequency.rb +11 -0
- data/test/core/enumerable/test_probability.rb +1 -34
- data/test/core/string/test_each_word.rb +14 -0
- data/test/core/string/test_fold.rb +1 -1
- data/test/core/string/test_word_wrap.rb +35 -0
- data/test/core/string/test_words.rb +12 -61
- data/test/more/test_command.rb +7 -9
- data/test/more/test_paramix.rb +4 -1
- data/test/{core/proc → more}/test_partial.rb +1 -1
- metadata +75 -38
- data/doc/rdoc/core/classes/Module/CloneExtensions.html +0 -287
- data/doc/ri/Module/CloneExtensions/cdesc-CloneExtensions.yaml +0 -20
- data/doc/ri/Module/CloneExtensions/clone_removing-i.yaml +0 -14
- data/doc/ri/Module/CloneExtensions/clone_renaming-i.yaml +0 -14
- data/doc/ri/Module/CloneExtensions/clone_using-i.yaml +0 -14
- data/lib/core/facets/class/to_pathname.rb +0 -12
- data/lib/core/facets/module/clone.rb +0 -57
- data/test/core/module/test_clone.rb +0 -45
@@ -57,8 +57,8 @@
|
|
57
57
|
<tr valign="top">
|
58
58
|
<td>In:</td>
|
59
59
|
<td>
|
60
|
-
<a href="../../files/lib/
|
61
|
-
<a href="../../files/lib/
|
60
|
+
<a href="../../files/lib/more/facets/string/words_rb.html">lib/more/facets/string/words.rb</a>
|
61
|
+
<a href="../../files/lib/more/facets/string/words_rb.html">lib/more/facets/string/words.rb</a>
|
62
62
|
</td>
|
63
63
|
</tr>
|
64
64
|
</table>
|
@@ -75,20 +75,20 @@
|
|
75
75
|
|
76
76
|
<div class="sectiontitle">Methods</div>
|
77
77
|
<ul>
|
78
|
-
<li><a href="#
|
79
|
-
<li><a href="#
|
80
|
-
<li><a href="#
|
81
|
-
<li><a href="#
|
82
|
-
<li><a href="#
|
83
|
-
<li><a href="#
|
84
|
-
<li><a href="#
|
85
|
-
<li><a href="#
|
86
|
-
<li><a href="#
|
87
|
-
<li><a href="#
|
88
|
-
<li><a href="#
|
89
|
-
<li><a href="#
|
90
|
-
<li><a href="#
|
91
|
-
<li><a href="#
|
78
|
+
<li><a href="#M000630">brief</a></li>
|
79
|
+
<li><a href="#M000623">brief</a></li>
|
80
|
+
<li><a href="#M000625">each_word</a></li>
|
81
|
+
<li><a href="#M000618">each_word</a></li>
|
82
|
+
<li><a href="#M000626">word_filter</a></li>
|
83
|
+
<li><a href="#M000619">word_filter</a></li>
|
84
|
+
<li><a href="#M000627">word_filter!</a></li>
|
85
|
+
<li><a href="#M000620">word_filter!</a></li>
|
86
|
+
<li><a href="#M000621">word_wrap</a></li>
|
87
|
+
<li><a href="#M000628">word_wrap</a></li>
|
88
|
+
<li><a href="#M000622">word_wrap!</a></li>
|
89
|
+
<li><a href="#M000629">word_wrap!</a></li>
|
90
|
+
<li><a href="#M000624">words</a></li>
|
91
|
+
<li><a href="#M000617">words</a></li>
|
92
92
|
</ul>
|
93
93
|
|
94
94
|
|
@@ -99,7 +99,7 @@
|
|
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="M000630"></a><b>brief</b>(range=76, ellipsis="...")
|
103
103
|
</div>
|
104
104
|
<div class="description">
|
105
105
|
<p>
|
@@ -114,10 +114,10 @@ The string is chopped at the nearest word if possible, and appended by
|
|
114
114
|
</pre>
|
115
115
|
</div>
|
116
116
|
<div class="sourcecode">
|
117
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
118
|
-
<div id="
|
117
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000630_source')" id="l_M000630_source">show source</a> ]</p>
|
118
|
+
<div id="M000630_source" class="dyn-source">
|
119
119
|
<pre>
|
120
|
-
<span class="ruby-comment cmt"># File lib/
|
120
|
+
<span class="ruby-comment cmt"># File lib/more/facets/string/words.rb, line 148</span>
|
121
121
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">brief</span>(<span class="ruby-identifier">range</span>=<span class="ruby-value">76</span>, <span class="ruby-identifier">ellipsis</span>=<span class="ruby-value str">"..."</span>)
|
122
122
|
<span class="ruby-keyword kw">if</span> <span class="ruby-constant">Range</span><span class="ruby-operator">===</span><span class="ruby-identifier">range</span>
|
123
123
|
<span class="ruby-identifier">min</span> = <span class="ruby-identifier">range</span>.<span class="ruby-identifier">first</span>
|
@@ -143,7 +143,7 @@ The string is chopped at the nearest word if possible, and appended by
|
|
143
143
|
</div>
|
144
144
|
<div class="method">
|
145
145
|
<div class="title">
|
146
|
-
<a name="
|
146
|
+
<a name="M000623"></a><b>brief</b>(range=76, ellipsis="...")
|
147
147
|
</div>
|
148
148
|
<div class="description">
|
149
149
|
<p>
|
@@ -158,10 +158,10 @@ The string is chopped at the nearest word if possible, and appended by
|
|
158
158
|
</pre>
|
159
159
|
</div>
|
160
160
|
<div class="sourcecode">
|
161
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
162
|
-
<div id="
|
161
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000623_source')" id="l_M000623_source">show source</a> ]</p>
|
162
|
+
<div id="M000623_source" class="dyn-source">
|
163
163
|
<pre>
|
164
|
-
<span class="ruby-comment cmt"># File lib/
|
164
|
+
<span class="ruby-comment cmt"># File lib/more/facets/string/words.rb, line 148</span>
|
165
165
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">brief</span>(<span class="ruby-identifier">range</span>=<span class="ruby-value">76</span>, <span class="ruby-identifier">ellipsis</span>=<span class="ruby-value str">"..."</span>)
|
166
166
|
<span class="ruby-keyword kw">if</span> <span class="ruby-constant">Range</span><span class="ruby-operator">===</span><span class="ruby-identifier">range</span>
|
167
167
|
<span class="ruby-identifier">min</span> = <span class="ruby-identifier">range</span>.<span class="ruby-identifier">first</span>
|
@@ -187,7 +187,7 @@ The string is chopped at the nearest word if possible, and appended by
|
|
187
187
|
</div>
|
188
188
|
<div class="method">
|
189
189
|
<div class="title">
|
190
|
-
<a name="
|
190
|
+
<a name="M000625"></a><b>each_word</b>( &yld )
|
191
191
|
</div>
|
192
192
|
<div class="description">
|
193
193
|
<p>
|
@@ -198,10 +198,10 @@ Iterate through each word of a string.
|
|
198
198
|
</pre>
|
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('M000625_source')" id="l_M000625_source">show source</a> ]</p>
|
202
|
+
<div id="M000625_source" class="dyn-source">
|
203
203
|
<pre>
|
204
|
-
<span class="ruby-comment cmt"># File lib/
|
204
|
+
<span class="ruby-comment cmt"># File lib/more/facets/string/words.rb, line 19</span>
|
205
205
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_word</span>( <span class="ruby-operator">&</span><span class="ruby-identifier">yld</span> )
|
206
206
|
<span class="ruby-identifier">rest_of_string</span> = <span class="ruby-keyword kw">self</span>
|
207
207
|
<span class="ruby-identifier">wordfind</span> = <span class="ruby-regexp re">/([-'\w]+)/</span>
|
@@ -225,7 +225,7 @@ Iterate through each word of a string.
|
|
225
225
|
</div>
|
226
226
|
<div class="method">
|
227
227
|
<div class="title">
|
228
|
-
<a name="
|
228
|
+
<a name="M000618"></a><b>each_word</b>( &yld )
|
229
229
|
</div>
|
230
230
|
<div class="description">
|
231
231
|
<p>
|
@@ -236,10 +236,10 @@ Iterate through each word of a string.
|
|
236
236
|
</pre>
|
237
237
|
</div>
|
238
238
|
<div class="sourcecode">
|
239
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
240
|
-
<div id="
|
239
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000618_source')" id="l_M000618_source">show source</a> ]</p>
|
240
|
+
<div id="M000618_source" class="dyn-source">
|
241
241
|
<pre>
|
242
|
-
<span class="ruby-comment cmt"># File lib/
|
242
|
+
<span class="ruby-comment cmt"># File lib/more/facets/string/words.rb, line 19</span>
|
243
243
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_word</span>( <span class="ruby-operator">&</span><span class="ruby-identifier">yld</span> )
|
244
244
|
<span class="ruby-identifier">rest_of_string</span> = <span class="ruby-keyword kw">self</span>
|
245
245
|
<span class="ruby-identifier">wordfind</span> = <span class="ruby-regexp re">/([-'\w]+)/</span>
|
@@ -263,11 +263,11 @@ Iterate through each word of a string.
|
|
263
263
|
</div>
|
264
264
|
<div class="method">
|
265
265
|
<div class="title">
|
266
|
-
<a name="
|
266
|
+
<a name="M000626"></a><b>word_filter</b>( &blk )
|
267
267
|
</div>
|
268
268
|
<div class="description">
|
269
269
|
<p>
|
270
|
-
Filters out <a href="Words.html#
|
270
|
+
Filters out <a href="Words.html#M000617">words</a> from a string based on
|
271
271
|
block test.
|
272
272
|
</p>
|
273
273
|
<pre>
|
@@ -277,10 +277,10 @@ block test.
|
|
277
277
|
</pre>
|
278
278
|
</div>
|
279
279
|
<div class="sourcecode">
|
280
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
281
|
-
<div id="
|
280
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000626_source')" id="l_M000626_source">show source</a> ]</p>
|
281
|
+
<div id="M000626_source" class="dyn-source">
|
282
282
|
<pre>
|
283
|
-
<span class="ruby-comment cmt"># File lib/
|
283
|
+
<span class="ruby-comment cmt"># File lib/more/facets/string/words.rb, line 43</span>
|
284
284
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">word_filter</span>( <span class="ruby-operator">&</span><span class="ruby-identifier">blk</span> )
|
285
285
|
<span class="ruby-identifier">s</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>
|
286
286
|
<span class="ruby-identifier">s</span>.<span class="ruby-identifier">word_filter!</span>( <span class="ruby-operator">&</span><span class="ruby-identifier">blk</span> )
|
@@ -291,11 +291,11 @@ block test.
|
|
291
291
|
</div>
|
292
292
|
<div class="method">
|
293
293
|
<div class="title">
|
294
|
-
<a name="
|
294
|
+
<a name="M000619"></a><b>word_filter</b>( &blk )
|
295
295
|
</div>
|
296
296
|
<div class="description">
|
297
297
|
<p>
|
298
|
-
Filters out <a href="Words.html#
|
298
|
+
Filters out <a href="Words.html#M000617">words</a> from a string based on
|
299
299
|
block test.
|
300
300
|
</p>
|
301
301
|
<pre>
|
@@ -305,10 +305,10 @@ block test.
|
|
305
305
|
</pre>
|
306
306
|
</div>
|
307
307
|
<div class="sourcecode">
|
308
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
309
|
-
<div id="
|
308
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000619_source')" id="l_M000619_source">show source</a> ]</p>
|
309
|
+
<div id="M000619_source" class="dyn-source">
|
310
310
|
<pre>
|
311
|
-
<span class="ruby-comment cmt"># File lib/
|
311
|
+
<span class="ruby-comment cmt"># File lib/more/facets/string/words.rb, line 43</span>
|
312
312
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">word_filter</span>( <span class="ruby-operator">&</span><span class="ruby-identifier">blk</span> )
|
313
313
|
<span class="ruby-identifier">s</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>
|
314
314
|
<span class="ruby-identifier">s</span>.<span class="ruby-identifier">word_filter!</span>( <span class="ruby-operator">&</span><span class="ruby-identifier">blk</span> )
|
@@ -319,11 +319,11 @@ block test.
|
|
319
319
|
</div>
|
320
320
|
<div class="method">
|
321
321
|
<div class="title">
|
322
|
-
<a name="
|
322
|
+
<a name="M000627"></a><b>word_filter!</b>( {|| ...}
|
323
323
|
</div>
|
324
324
|
<div class="description">
|
325
325
|
<p>
|
326
|
-
In place version of <a href="Words.html#
|
326
|
+
In place version of <a href="Words.html#M000619">word_filter</a>.
|
327
327
|
</p>
|
328
328
|
<pre>
|
329
329
|
"a string".word_filter { |word| ... }
|
@@ -332,10 +332,10 @@ In place version of <a href="Words.html#M000590">word_filter</a>.
|
|
332
332
|
</pre>
|
333
333
|
</div>
|
334
334
|
<div class="sourcecode">
|
335
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
336
|
-
<div id="
|
335
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000627_source')" id="l_M000627_source">show source</a> ]</p>
|
336
|
+
<div id="M000627_source" class="dyn-source">
|
337
337
|
<pre>
|
338
|
-
<span class="ruby-comment cmt"># File lib/
|
338
|
+
<span class="ruby-comment cmt"># File lib/more/facets/string/words.rb, line 54</span>
|
339
339
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">word_filter!</span> <span class="ruby-comment cmt">#:yield:</span>
|
340
340
|
<span class="ruby-identifier">rest_of_string</span> = <span class="ruby-keyword kw">self</span>
|
341
341
|
<span class="ruby-identifier">wordfind</span> = <span class="ruby-regexp re">/(\w+)/</span>
|
@@ -355,11 +355,11 @@ In place version of <a href="Words.html#M000590">word_filter</a>.
|
|
355
355
|
</div>
|
356
356
|
<div class="method">
|
357
357
|
<div class="title">
|
358
|
-
<a name="
|
358
|
+
<a name="M000620"></a><b>word_filter!</b>( {|| ...}
|
359
359
|
</div>
|
360
360
|
<div class="description">
|
361
361
|
<p>
|
362
|
-
In place version of <a href="Words.html#
|
362
|
+
In place version of <a href="Words.html#M000619">word_filter</a>.
|
363
363
|
</p>
|
364
364
|
<pre>
|
365
365
|
"a string".word_filter { |word| ... }
|
@@ -368,10 +368,10 @@ In place version of <a href="Words.html#M000590">word_filter</a>.
|
|
368
368
|
</pre>
|
369
369
|
</div>
|
370
370
|
<div class="sourcecode">
|
371
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
372
|
-
<div id="
|
371
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000620_source')" id="l_M000620_source">show source</a> ]</p>
|
372
|
+
<div id="M000620_source" class="dyn-source">
|
373
373
|
<pre>
|
374
|
-
<span class="ruby-comment cmt"># File lib/
|
374
|
+
<span class="ruby-comment cmt"># File lib/more/facets/string/words.rb, line 54</span>
|
375
375
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">word_filter!</span> <span class="ruby-comment cmt">#:yield:</span>
|
376
376
|
<span class="ruby-identifier">rest_of_string</span> = <span class="ruby-keyword kw">self</span>
|
377
377
|
<span class="ruby-identifier">wordfind</span> = <span class="ruby-regexp re">/(\w+)/</span>
|
@@ -391,7 +391,7 @@ In place version of <a href="Words.html#M000590">word_filter</a>.
|
|
391
391
|
</div>
|
392
392
|
<div class="method">
|
393
393
|
<div class="title">
|
394
|
-
<a name="
|
394
|
+
<a name="M000621"></a><b>word_wrap</b>( col_width=80 )
|
395
395
|
</div>
|
396
396
|
<div class="description">
|
397
397
|
<p>
|
@@ -413,10 +413,10 @@ Word wrap a string not exceeding max width.
|
|
413
413
|
</pre>
|
414
414
|
</div>
|
415
415
|
<div class="sourcecode">
|
416
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
417
|
-
<div id="
|
416
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000621_source')" id="l_M000621_source">show source</a> ]</p>
|
417
|
+
<div id="M000621_source" class="dyn-source">
|
418
418
|
<pre>
|
419
|
-
<span class="ruby-comment cmt"># File lib/
|
419
|
+
<span class="ruby-comment cmt"># File lib/more/facets/string/words.rb, line 110</span>
|
420
420
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">word_wrap</span>( <span class="ruby-identifier">col_width</span>=<span class="ruby-value">80</span> )
|
421
421
|
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">word_wrap!</span>( <span class="ruby-identifier">col_width</span> )
|
422
422
|
<span class="ruby-keyword kw">end</span>
|
@@ -426,7 +426,7 @@ Word wrap a string not exceeding max width.
|
|
426
426
|
</div>
|
427
427
|
<div class="method">
|
428
428
|
<div class="title">
|
429
|
-
<a name="
|
429
|
+
<a name="M000628"></a><b>word_wrap</b>( col_width=80 )
|
430
430
|
</div>
|
431
431
|
<div class="description">
|
432
432
|
<p>
|
@@ -448,10 +448,10 @@ Word wrap a string not exceeding max width.
|
|
448
448
|
</pre>
|
449
449
|
</div>
|
450
450
|
<div class="sourcecode">
|
451
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
452
|
-
<div id="
|
451
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000628_source')" id="l_M000628_source">show source</a> ]</p>
|
452
|
+
<div id="M000628_source" class="dyn-source">
|
453
453
|
<pre>
|
454
|
-
<span class="ruby-comment cmt"># File lib/
|
454
|
+
<span class="ruby-comment cmt"># File lib/more/facets/string/words.rb, line 110</span>
|
455
455
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">word_wrap</span>( <span class="ruby-identifier">col_width</span>=<span class="ruby-value">80</span> )
|
456
456
|
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">word_wrap!</span>( <span class="ruby-identifier">col_width</span> )
|
457
457
|
<span class="ruby-keyword kw">end</span>
|
@@ -461,11 +461,11 @@ Word wrap a string not exceeding max width.
|
|
461
461
|
</div>
|
462
462
|
<div class="method">
|
463
463
|
<div class="title">
|
464
|
-
<a name="
|
464
|
+
<a name="M000622"></a><b>word_wrap!</b>( col_width=80 )
|
465
465
|
</div>
|
466
466
|
<div class="description">
|
467
467
|
<p>
|
468
|
-
As with <a href="Words.html#
|
468
|
+
As with <a href="Words.html#M000621">word_wrap</a>, but modifies the string
|
469
469
|
in place.
|
470
470
|
</p>
|
471
471
|
<pre>
|
@@ -474,10 +474,10 @@ in place.
|
|
474
474
|
</pre>
|
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('M000622_source')" id="l_M000622_source">show source</a> ]</p>
|
478
|
+
<div id="M000622_source" class="dyn-source">
|
479
479
|
<pre>
|
480
|
-
<span class="ruby-comment cmt"># File lib/
|
480
|
+
<span class="ruby-comment cmt"># File lib/more/facets/string/words.rb, line 119</span>
|
481
481
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">word_wrap!</span>( <span class="ruby-identifier">col_width</span>=<span class="ruby-value">80</span> )
|
482
482
|
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">gsub!</span>( <span class="ruby-node">/(\S{#{col_width}})(?=\S)/</span>, <span class="ruby-value str">'\1 '</span> )
|
483
483
|
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">gsub!</span>( <span class="ruby-node">/(.{1,#{col_width}})(?:\s+|$)/</span>, <span class="ruby-value str">"\\1\n"</span> )
|
@@ -489,11 +489,11 @@ in place.
|
|
489
489
|
</div>
|
490
490
|
<div class="method">
|
491
491
|
<div class="title">
|
492
|
-
<a name="
|
492
|
+
<a name="M000629"></a><b>word_wrap!</b>( col_width=80 )
|
493
493
|
</div>
|
494
494
|
<div class="description">
|
495
495
|
<p>
|
496
|
-
As with <a href="Words.html#
|
496
|
+
As with <a href="Words.html#M000621">word_wrap</a>, but modifies the string
|
497
497
|
in place.
|
498
498
|
</p>
|
499
499
|
<pre>
|
@@ -502,10 +502,10 @@ in place.
|
|
502
502
|
</pre>
|
503
503
|
</div>
|
504
504
|
<div class="sourcecode">
|
505
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
506
|
-
<div id="
|
505
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000629_source')" id="l_M000629_source">show source</a> ]</p>
|
506
|
+
<div id="M000629_source" class="dyn-source">
|
507
507
|
<pre>
|
508
|
-
<span class="ruby-comment cmt"># File lib/
|
508
|
+
<span class="ruby-comment cmt"># File lib/more/facets/string/words.rb, line 119</span>
|
509
509
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">word_wrap!</span>( <span class="ruby-identifier">col_width</span>=<span class="ruby-value">80</span> )
|
510
510
|
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">gsub!</span>( <span class="ruby-node">/(\S{#{col_width}})(?=\S)/</span>, <span class="ruby-value str">'\1 '</span> )
|
511
511
|
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">gsub!</span>( <span class="ruby-node">/(.{1,#{col_width}})(?:\s+|$)/</span>, <span class="ruby-value str">"\\1\n"</span> )
|
@@ -517,7 +517,7 @@ in place.
|
|
517
517
|
</div>
|
518
518
|
<div class="method">
|
519
519
|
<div class="title">
|
520
|
-
<a name="
|
520
|
+
<a name="M000624"></a><b>words</b>()
|
521
521
|
</div>
|
522
522
|
<div class="description">
|
523
523
|
<p>
|
@@ -528,10 +528,10 @@ Returns an array of characters.
|
|
528
528
|
</pre>
|
529
529
|
</div>
|
530
530
|
<div class="sourcecode">
|
531
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
532
|
-
<div id="
|
531
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000624_source')" id="l_M000624_source">show source</a> ]</p>
|
532
|
+
<div id="M000624_source" class="dyn-source">
|
533
533
|
<pre>
|
534
|
-
<span class="ruby-comment cmt"># File lib/
|
534
|
+
<span class="ruby-comment cmt"># File lib/more/facets/string/words.rb, line 11</span>
|
535
535
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">words</span>
|
536
536
|
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">split</span>(<span class="ruby-regexp re">/\s+/</span>)
|
537
537
|
<span class="ruby-keyword kw">end</span>
|
@@ -541,7 +541,7 @@ Returns an array of characters.
|
|
541
541
|
</div>
|
542
542
|
<div class="method">
|
543
543
|
<div class="title">
|
544
|
-
<a name="
|
544
|
+
<a name="M000617"></a><b>words</b>()
|
545
545
|
</div>
|
546
546
|
<div class="description">
|
547
547
|
<p>
|
@@ -552,10 +552,10 @@ Returns an array of characters.
|
|
552
552
|
</pre>
|
553
553
|
</div>
|
554
554
|
<div class="sourcecode">
|
555
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
556
|
-
<div id="
|
555
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000617_source')" id="l_M000617_source">show source</a> ]</p>
|
556
|
+
<div id="M000617_source" class="dyn-source">
|
557
557
|
<pre>
|
558
|
-
<span class="ruby-comment cmt"># File lib/
|
558
|
+
<span class="ruby-comment cmt"># File lib/more/facets/string/words.rb, line 11</span>
|
559
559
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">words</span>
|
560
560
|
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">split</span>(<span class="ruby-regexp re">/\s+/</span>)
|
561
561
|
<span class="ruby-keyword kw">end</span>
|
@@ -80,8 +80,8 @@ Object
|
|
80
80
|
|
81
81
|
<div class="sectiontitle">Methods</div>
|
82
82
|
<ul>
|
83
|
-
<li><a href="#
|
84
|
-
<li><a href="#
|
83
|
+
<li><a href="#M000038">restore_snapshot</a></li>
|
84
|
+
<li><a href="#M000037">take_snapshot</a></li>
|
85
85
|
</ul>
|
86
86
|
|
87
87
|
|
@@ -92,11 +92,11 @@ Object
|
|
92
92
|
<div class="sectiontitle">Public Instance methods</div>
|
93
93
|
<div class="method">
|
94
94
|
<div class="title">
|
95
|
-
<a name="
|
95
|
+
<a name="M000038"></a><b>restore_snapshot</b>(snap)
|
96
96
|
</div>
|
97
97
|
<div class="sourcecode">
|
98
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
99
|
-
<div id="
|
98
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000038_source')" id="l_M000038_source">show source</a> ]</p>
|
99
|
+
<div id="M000038_source" class="dyn-source">
|
100
100
|
<pre>
|
101
101
|
<span class="ruby-comment cmt"># File lib/more/facets/snapshot.rb, line 205</span>
|
102
102
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">restore_snapshot</span>(<span class="ruby-identifier">snap</span>)
|
@@ -108,11 +108,11 @@ Object
|
|
108
108
|
</div>
|
109
109
|
<div class="method">
|
110
110
|
<div class="title">
|
111
|
-
<a name="
|
111
|
+
<a name="M000037"></a><b>take_snapshot</b>()
|
112
112
|
</div>
|
113
113
|
<div class="sourcecode">
|
114
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
115
|
-
<div id="
|
114
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000037_source')" id="l_M000037_source">show source</a> ]</p>
|
115
|
+
<div id="M000037_source" class="dyn-source">
|
116
116
|
<pre>
|
117
117
|
<span class="ruby-comment cmt"># File lib/more/facets/snapshot.rb, line 199</span>
|
118
118
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">take_snapshot</span>
|
@@ -80,7 +80,7 @@ Array
|
|
80
80
|
|
81
81
|
<div class="sectiontitle">Methods</div>
|
82
82
|
<ul>
|
83
|
-
<li><a href="#
|
83
|
+
<li><a href="#M000063">new</a></li>
|
84
84
|
</ul>
|
85
85
|
|
86
86
|
|
@@ -101,7 +101,7 @@ Array
|
|
101
101
|
<div class="sectiontitle">Public Class methods</div>
|
102
102
|
<div class="method">
|
103
103
|
<div class="title">
|
104
|
-
<a name="
|
104
|
+
<a name="M000063"></a><b>new</b>(delegator = nil)
|
105
105
|
</div>
|
106
106
|
<div class="description">
|
107
107
|
<p>
|
@@ -109,8 +109,8 @@ gmosx: delegator is not yet used.
|
|
109
109
|
</p>
|
110
110
|
</div>
|
111
111
|
<div class="sourcecode">
|
112
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
113
|
-
<div id="
|
112
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000063_source')" id="l_M000063_source">show source</a> ]</p>
|
113
|
+
<div id="M000063_source" class="dyn-source">
|
114
114
|
<pre>
|
115
115
|
<span class="ruby-comment cmt"># File lib/more/facets/syncarray.rb, line 51</span>
|
116
116
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">delegator</span> = <span class="ruby-keyword kw">nil</span>)
|