facets 2.4.2 → 2.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
@@ -85,10 +85,10 @@ Object
|
|
85
85
|
|
86
86
|
<div class="sectiontitle">Methods</div>
|
87
87
|
<ul>
|
88
|
-
<li><a href="#
|
89
|
-
<li><a href="#
|
90
|
-
<li><a href="#
|
91
|
-
<li><a href="#
|
88
|
+
<li><a href="#M000397">detail</a></li>
|
89
|
+
<li><a href="#M000395">detail</a></li>
|
90
|
+
<li><a href="#M000396">suppress</a></li>
|
91
|
+
<li><a href="#M000394">suppress</a></li>
|
92
92
|
</ul>
|
93
93
|
|
94
94
|
|
@@ -99,7 +99,7 @@ Object
|
|
99
99
|
<div class="sectiontitle">Public Class methods</div>
|
100
100
|
<div class="method">
|
101
101
|
<div class="title">
|
102
|
-
<a name="
|
102
|
+
<a name="M000396"></a><b>suppress</b>(*exception_classes) {|| ...}
|
103
103
|
</div>
|
104
104
|
<div class="description">
|
105
105
|
<p>
|
@@ -111,8 +111,8 @@ Supress errors while executing a block, with execptions.
|
|
111
111
|
</pre>
|
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('M000396_source')" id="l_M000396_source">show source</a> ]</p>
|
115
|
+
<div id="M000396_source" class="dyn-source">
|
116
116
|
<pre>
|
117
117
|
<span class="ruby-comment cmt"># File lib/core/facets/exception/suppress.rb, line 8</span>
|
118
118
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">suppress</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">exception_classes</span>)
|
@@ -132,7 +132,7 @@ Supress errors while executing a block, with execptions.
|
|
132
132
|
</div>
|
133
133
|
<div class="method">
|
134
134
|
<div class="title">
|
135
|
-
<a name="
|
135
|
+
<a name="M000394"></a><b>suppress</b>(*exception_classes) {|| ...}
|
136
136
|
</div>
|
137
137
|
<div class="description">
|
138
138
|
<p>
|
@@ -144,8 +144,8 @@ Supress errors while executing a block, with execptions.
|
|
144
144
|
</pre>
|
145
145
|
</div>
|
146
146
|
<div class="sourcecode">
|
147
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
148
|
-
<div id="
|
147
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000394_source')" id="l_M000394_source">show source</a> ]</p>
|
148
|
+
<div id="M000394_source" class="dyn-source">
|
149
149
|
<pre>
|
150
150
|
<span class="ruby-comment cmt"># File lib/core/facets/exception/suppress.rb, line 8</span>
|
151
151
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">suppress</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">exception_classes</span>)
|
@@ -166,7 +166,7 @@ Supress errors while executing a block, with execptions.
|
|
166
166
|
<div class="sectiontitle">Public Instance methods</div>
|
167
167
|
<div class="method">
|
168
168
|
<div class="title">
|
169
|
-
<a name="
|
169
|
+
<a name="M000397"></a><b>detail</b>()
|
170
170
|
</div>
|
171
171
|
<div class="description">
|
172
172
|
<p>
|
@@ -184,8 +184,8 @@ Output: The pretty printed string
|
|
184
184
|
</pre>
|
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('M000397_source')" id="l_M000397_source">show source</a> ]</p>
|
188
|
+
<div id="M000397_source" class="dyn-source">
|
189
189
|
<pre>
|
190
190
|
<span class="ruby-comment cmt"># File lib/core/facets/exception/detail.rb, line 14</span>
|
191
191
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">detail</span>
|
@@ -197,7 +197,7 @@ Output: The pretty printed string
|
|
197
197
|
</div>
|
198
198
|
<div class="method">
|
199
199
|
<div class="title">
|
200
|
-
<a name="
|
200
|
+
<a name="M000395"></a><b>detail</b>()
|
201
201
|
</div>
|
202
202
|
<div class="description">
|
203
203
|
<p>
|
@@ -215,8 +215,8 @@ Output: The pretty printed string
|
|
215
215
|
</pre>
|
216
216
|
</div>
|
217
217
|
<div class="sourcecode">
|
218
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
219
|
-
<div id="
|
218
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000395_source')" id="l_M000395_source">show source</a> ]</p>
|
219
|
+
<div id="M000395_source" class="dyn-source">
|
220
220
|
<pre>
|
221
221
|
<span class="ruby-comment cmt"># File lib/core/facets/exception/detail.rb, line 14</span>
|
222
222
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">detail</span>
|
@@ -83,8 +83,8 @@ Object
|
|
83
83
|
|
84
84
|
<div class="sectiontitle">Methods</div>
|
85
85
|
<ul>
|
86
|
-
<li><a href="#
|
87
|
-
<li><a href="#
|
86
|
+
<li><a href="#M000128">blank?</a></li>
|
87
|
+
<li><a href="#M000127">to_bool</a></li>
|
88
88
|
</ul>
|
89
89
|
|
90
90
|
|
@@ -95,11 +95,11 @@ Object
|
|
95
95
|
<div class="sectiontitle">Public Instance methods</div>
|
96
96
|
<div class="method">
|
97
97
|
<div class="title">
|
98
|
-
<a name="
|
98
|
+
<a name="M000128"></a><b>blank?</b>()
|
99
99
|
</div>
|
100
100
|
<div class="sourcecode">
|
101
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
102
|
-
<div id="
|
101
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000128_source')" id="l_M000128_source">show source</a> ]</p>
|
102
|
+
<div id="M000128_source" class="dyn-source">
|
103
103
|
<pre>
|
104
104
|
<span class="ruby-comment cmt"># File lib/core/facets/blank.rb, line 26</span>
|
105
105
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">blank?</span>
|
@@ -111,11 +111,11 @@ Object
|
|
111
111
|
</div>
|
112
112
|
<div class="method">
|
113
113
|
<div class="title">
|
114
|
-
<a name="
|
114
|
+
<a name="M000127"></a><b>to_bool</b>()
|
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('M000127_source')" id="l_M000127_source">show source</a> ]</p>
|
118
|
+
<div id="M000127_source" class="dyn-source">
|
119
119
|
<pre>
|
120
120
|
<span class="ruby-comment cmt"># File lib/core/facets/boolean.rb, line 147</span>
|
121
121
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_bool</span>
|
@@ -91,28 +91,28 @@ Object
|
|
91
91
|
|
92
92
|
<div class="sectiontitle">Methods</div>
|
93
93
|
<ul>
|
94
|
-
<li><a href="#
|
95
|
-
<li><a href="#
|
96
|
-
<li><a href="#
|
97
|
-
<li><a href="#
|
98
|
-
<li><a href="#
|
99
|
-
<li><a href="#
|
100
|
-
<li><a href="#
|
101
|
-
<li><a href="#
|
102
|
-
<li><a href="#
|
103
|
-
<li><a href="#
|
104
|
-
<li><a href="#
|
105
|
-
<li><a href="#
|
106
|
-
<li><a href="#
|
107
|
-
<li><a href="#
|
108
|
-
<li><a href="#
|
109
|
-
<li><a href="#
|
110
|
-
<li><a href="#
|
111
|
-
<li><a href="#
|
112
|
-
<li><a href="#
|
113
|
-
<li><a href="#
|
114
|
-
<li><a href="#
|
115
|
-
<li><a href="#
|
94
|
+
<li><a href="#M000436">append</a></li>
|
95
|
+
<li><a href="#M000425">append</a></li>
|
96
|
+
<li><a href="#M000426">create</a></li>
|
97
|
+
<li><a href="#M000437">create</a></li>
|
98
|
+
<li><a href="#M000435">null</a></li>
|
99
|
+
<li><a href="#M000424">null</a></li>
|
100
|
+
<li><a href="#M000432">read_binary</a></li>
|
101
|
+
<li><a href="#M000443">read_binary</a></li>
|
102
|
+
<li><a href="#M000433">read_list</a></li>
|
103
|
+
<li><a href="#M000444">read_list</a></li>
|
104
|
+
<li><a href="#M000440">rewrite</a></li>
|
105
|
+
<li><a href="#M000429">rewrite</a></li>
|
106
|
+
<li><a href="#M000441">rewrite!</a></li>
|
107
|
+
<li><a href="#M000430">rewrite!</a></li>
|
108
|
+
<li><a href="#M000434">rootname</a></li>
|
109
|
+
<li><a href="#M000423">rootname</a></li>
|
110
|
+
<li><a href="#M000431">sanitize</a></li>
|
111
|
+
<li><a href="#M000442">sanitize</a></li>
|
112
|
+
<li><a href="#M000427">write</a></li>
|
113
|
+
<li><a href="#M000438">write</a></li>
|
114
|
+
<li><a href="#M000439">writelines</a></li>
|
115
|
+
<li><a href="#M000428">writelines</a></li>
|
116
116
|
</ul>
|
117
117
|
|
118
118
|
|
@@ -123,7 +123,7 @@ Object
|
|
123
123
|
<div class="sectiontitle">Public Class methods</div>
|
124
124
|
<div class="method">
|
125
125
|
<div class="title">
|
126
|
-
<a name="
|
126
|
+
<a name="M000436"></a><b>append</b>( file, str )
|
127
127
|
</div>
|
128
128
|
<div class="description">
|
129
129
|
<p>
|
@@ -134,8 +134,8 @@ Append to a file.
|
|
134
134
|
</pre>
|
135
135
|
</div>
|
136
136
|
<div class="sourcecode">
|
137
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
138
|
-
<div id="
|
137
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000436_source')" id="l_M000436_source">show source</a> ]</p>
|
138
|
+
<div id="M000436_source" class="dyn-source">
|
139
139
|
<pre>
|
140
140
|
<span class="ruby-comment cmt"># File lib/core/facets/file/write.rb, line 7</span>
|
141
141
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">append</span>( <span class="ruby-identifier">file</span>, <span class="ruby-identifier">str</span> )
|
@@ -149,7 +149,7 @@ Append to a file.
|
|
149
149
|
</div>
|
150
150
|
<div class="method">
|
151
151
|
<div class="title">
|
152
|
-
<a name="
|
152
|
+
<a name="M000425"></a><b>append</b>( file, str )
|
153
153
|
</div>
|
154
154
|
<div class="description">
|
155
155
|
<p>
|
@@ -160,8 +160,8 @@ Append to a file.
|
|
160
160
|
</pre>
|
161
161
|
</div>
|
162
162
|
<div class="sourcecode">
|
163
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
164
|
-
<div id="
|
163
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000425_source')" id="l_M000425_source">show source</a> ]</p>
|
164
|
+
<div id="M000425_source" class="dyn-source">
|
165
165
|
<pre>
|
166
166
|
<span class="ruby-comment cmt"># File lib/core/facets/file/write.rb, line 7</span>
|
167
167
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">append</span>( <span class="ruby-identifier">file</span>, <span class="ruby-identifier">str</span> )
|
@@ -175,7 +175,7 @@ Append to a file.
|
|
175
175
|
</div>
|
176
176
|
<div class="method">
|
177
177
|
<div class="title">
|
178
|
-
<a name="
|
178
|
+
<a name="M000426"></a><b>create</b>(path, str='', &blk)
|
179
179
|
</div>
|
180
180
|
<div class="description">
|
181
181
|
<p>
|
@@ -191,8 +191,8 @@ into it. Can also take a block just like File#open, which is yielded
|
|
191
191
|
</pre>
|
192
192
|
</div>
|
193
193
|
<div class="sourcecode">
|
194
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
195
|
-
<div id="
|
194
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000426_source')" id="l_M000426_source">show source</a> ]</p>
|
195
|
+
<div id="M000426_source" class="dyn-source">
|
196
196
|
<pre>
|
197
197
|
<span class="ruby-comment cmt"># File lib/core/facets/file/write.rb, line 23</span>
|
198
198
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">create</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">str</span>=<span class="ruby-value str">''</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
@@ -207,7 +207,7 @@ into it. Can also take a block just like File#open, which is yielded
|
|
207
207
|
</div>
|
208
208
|
<div class="method">
|
209
209
|
<div class="title">
|
210
|
-
<a name="
|
210
|
+
<a name="M000437"></a><b>create</b>(path, str='', &blk)
|
211
211
|
</div>
|
212
212
|
<div class="description">
|
213
213
|
<p>
|
@@ -223,8 +223,8 @@ into it. Can also take a block just like File#open, which is yielded
|
|
223
223
|
</pre>
|
224
224
|
</div>
|
225
225
|
<div class="sourcecode">
|
226
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
227
|
-
<div id="
|
226
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000437_source')" id="l_M000437_source">show source</a> ]</p>
|
227
|
+
<div id="M000437_source" class="dyn-source">
|
228
228
|
<pre>
|
229
229
|
<span class="ruby-comment cmt"># File lib/core/facets/file/write.rb, line 23</span>
|
230
230
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">create</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">str</span>=<span class="ruby-value str">''</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
@@ -239,19 +239,19 @@ into it. Can also take a block just like File#open, which is yielded
|
|
239
239
|
</div>
|
240
240
|
<div class="method">
|
241
241
|
<div class="title">
|
242
|
-
<a name="
|
242
|
+
<a name="M000435"></a><b>null</b>()
|
243
243
|
</div>
|
244
244
|
<div class="description">
|
245
245
|
<p>
|
246
|
-
Platform dependent <a href="File.html#
|
246
|
+
Platform dependent <a href="File.html#M000424">null</a> device.
|
247
247
|
</p>
|
248
248
|
<pre>
|
249
249
|
CREDIT: Daniel Burger
|
250
250
|
</pre>
|
251
251
|
</div>
|
252
252
|
<div class="sourcecode">
|
253
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
254
|
-
<div id="
|
253
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000435_source')" id="l_M000435_source">show source</a> ]</p>
|
254
|
+
<div id="M000435_source" class="dyn-source">
|
255
255
|
<pre>
|
256
256
|
<span class="ruby-comment cmt"># File lib/core/facets/file/null.rb, line 7</span>
|
257
257
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">null</span>
|
@@ -272,19 +272,19 @@ Platform dependent <a href="File.html#M000452">null</a> device.
|
|
272
272
|
</div>
|
273
273
|
<div class="method">
|
274
274
|
<div class="title">
|
275
|
-
<a name="
|
275
|
+
<a name="M000424"></a><b>null</b>()
|
276
276
|
</div>
|
277
277
|
<div class="description">
|
278
278
|
<p>
|
279
|
-
Platform dependent <a href="File.html#
|
279
|
+
Platform dependent <a href="File.html#M000424">null</a> device.
|
280
280
|
</p>
|
281
281
|
<pre>
|
282
282
|
CREDIT: Daniel Burger
|
283
283
|
</pre>
|
284
284
|
</div>
|
285
285
|
<div class="sourcecode">
|
286
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
287
|
-
<div id="
|
286
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000424_source')" id="l_M000424_source">show source</a> ]</p>
|
287
|
+
<div id="M000424_source" class="dyn-source">
|
288
288
|
<pre>
|
289
289
|
<span class="ruby-comment cmt"># File lib/core/facets/file/null.rb, line 7</span>
|
290
290
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">null</span>
|
@@ -305,7 +305,7 @@ Platform dependent <a href="File.html#M000452">null</a> device.
|
|
305
305
|
</div>
|
306
306
|
<div class="method">
|
307
307
|
<div class="title">
|
308
|
-
<a name="
|
308
|
+
<a name="M000432"></a><b>read_binary</b>(fname)
|
309
309
|
</div>
|
310
310
|
<div class="description">
|
311
311
|
<p>
|
@@ -316,8 +316,8 @@ Read in a file as binary data.
|
|
316
316
|
</pre>
|
317
317
|
</div>
|
318
318
|
<div class="sourcecode">
|
319
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
320
|
-
<div id="
|
319
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000432_source')" id="l_M000432_source">show source</a> ]</p>
|
320
|
+
<div id="M000432_source" class="dyn-source">
|
321
321
|
<pre>
|
322
322
|
<span class="ruby-comment cmt"># File lib/core/facets/file/read.rb, line 18</span>
|
323
323
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">read_binary</span>(<span class="ruby-identifier">fname</span>)
|
@@ -331,7 +331,7 @@ Read in a file as binary data.
|
|
331
331
|
</div>
|
332
332
|
<div class="method">
|
333
333
|
<div class="title">
|
334
|
-
<a name="
|
334
|
+
<a name="M000443"></a><b>read_binary</b>(fname)
|
335
335
|
</div>
|
336
336
|
<div class="description">
|
337
337
|
<p>
|
@@ -342,8 +342,8 @@ Read in a file as binary data.
|
|
342
342
|
</pre>
|
343
343
|
</div>
|
344
344
|
<div class="sourcecode">
|
345
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
346
|
-
<div id="
|
345
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000443_source')" id="l_M000443_source">show source</a> ]</p>
|
346
|
+
<div id="M000443_source" class="dyn-source">
|
347
347
|
<pre>
|
348
348
|
<span class="ruby-comment cmt"># File lib/core/facets/file/read.rb, line 18</span>
|
349
349
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">read_binary</span>(<span class="ruby-identifier">fname</span>)
|
@@ -357,7 +357,7 @@ Read in a file as binary data.
|
|
357
357
|
</div>
|
358
358
|
<div class="method">
|
359
359
|
<div class="title">
|
360
|
-
<a name="
|
360
|
+
<a name="M000433"></a><b>read_list</b>(filepath, chomp_string='')
|
361
361
|
</div>
|
362
362
|
<div class="description">
|
363
363
|
<p>
|
@@ -369,8 +369,8 @@ Reads in a file, removes blank lines and remarks (lines starting with
|
|
369
369
|
</pre>
|
370
370
|
</div>
|
371
371
|
<div class="sourcecode">
|
372
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
373
|
-
<div id="
|
372
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000433_source')" id="l_M000433_source">show source</a> ]</p>
|
373
|
+
<div id="M000433_source" class="dyn-source">
|
374
374
|
<pre>
|
375
375
|
<span class="ruby-comment cmt"># File lib/core/facets/file/read.rb, line 30</span>
|
376
376
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">read_list</span>(<span class="ruby-identifier">filepath</span>, <span class="ruby-identifier">chomp_string</span>=<span class="ruby-value str">''</span>)
|
@@ -388,7 +388,7 @@ Reads in a file, removes blank lines and remarks (lines starting with
|
|
388
388
|
</div>
|
389
389
|
<div class="method">
|
390
390
|
<div class="title">
|
391
|
-
<a name="
|
391
|
+
<a name="M000444"></a><b>read_list</b>(filepath, chomp_string='')
|
392
392
|
</div>
|
393
393
|
<div class="description">
|
394
394
|
<p>
|
@@ -400,8 +400,8 @@ Reads in a file, removes blank lines and remarks (lines starting with
|
|
400
400
|
</pre>
|
401
401
|
</div>
|
402
402
|
<div class="sourcecode">
|
403
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
404
|
-
<div id="
|
403
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000444_source')" id="l_M000444_source">show source</a> ]</p>
|
404
|
+
<div id="M000444_source" class="dyn-source">
|
405
405
|
<pre>
|
406
406
|
<span class="ruby-comment cmt"># File lib/core/facets/file/read.rb, line 30</span>
|
407
407
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">read_list</span>(<span class="ruby-identifier">filepath</span>, <span class="ruby-identifier">chomp_string</span>=<span class="ruby-value str">''</span>)
|
@@ -419,7 +419,7 @@ Reads in a file, removes blank lines and remarks (lines starting with
|
|
419
419
|
</div>
|
420
420
|
<div class="method">
|
421
421
|
<div class="title">
|
422
|
-
<a name="
|
422
|
+
<a name="M000440"></a><b>rewrite</b>(name, mode = "") {|| ...}
|
423
423
|
</div>
|
424
424
|
<div class="description">
|
425
425
|
<p>
|
@@ -437,7 +437,7 @@ exception.
|
|
437
437
|
<p>
|
438
438
|
Mode can either be "b" or "+" and specifies to open the
|
439
439
|
file in binary mode (no mapping of the plattform‘s newlines to
|
440
|
-
"\n" is done) or to <a href="File.html#
|
440
|
+
"\n" is done) or to <a href="File.html#M000425">append</a> to it.
|
441
441
|
</p>
|
442
442
|
<pre>
|
443
443
|
# Reverse contents of "message"
|
@@ -448,7 +448,7 @@ file in binary mode (no mapping of the plattform‘s newlines to
|
|
448
448
|
</pre>
|
449
449
|
<p>
|
450
450
|
IMPORTANT: The old version of this method required in place modification of
|
451
|
-
the file string. The new version will <a href="File.html#
|
451
|
+
the file string. The new version will <a href="File.html#M000427">write</a>
|
452
452
|
whatever the block returns instead!!!
|
453
453
|
</p>
|
454
454
|
<pre>
|
@@ -456,8 +456,8 @@ whatever the block returns instead!!!
|
|
456
456
|
</pre>
|
457
457
|
</div>
|
458
458
|
<div class="sourcecode">
|
459
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
460
|
-
<div id="
|
459
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000440_source')" id="l_M000440_source">show source</a> ]</p>
|
460
|
+
<div id="M000440_source" class="dyn-source">
|
461
461
|
<pre>
|
462
462
|
<span class="ruby-comment cmt"># File lib/core/facets/file/rewrite.rb, line 28</span>
|
463
463
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">rewrite</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">mode</span> = <span class="ruby-value str">""</span>) <span class="ruby-comment cmt">#:yield:</span>
|
@@ -490,7 +490,7 @@ whatever the block returns instead!!!
|
|
490
490
|
</div>
|
491
491
|
<div class="method">
|
492
492
|
<div class="title">
|
493
|
-
<a name="
|
493
|
+
<a name="M000429"></a><b>rewrite</b>(name, mode = "") {|| ...}
|
494
494
|
</div>
|
495
495
|
<div class="description">
|
496
496
|
<p>
|
@@ -508,7 +508,7 @@ exception.
|
|
508
508
|
<p>
|
509
509
|
Mode can either be "b" or "+" and specifies to open the
|
510
510
|
file in binary mode (no mapping of the plattform‘s newlines to
|
511
|
-
"\n" is done) or to <a href="File.html#
|
511
|
+
"\n" is done) or to <a href="File.html#M000425">append</a> to it.
|
512
512
|
</p>
|
513
513
|
<pre>
|
514
514
|
# Reverse contents of "message"
|
@@ -519,7 +519,7 @@ file in binary mode (no mapping of the plattform‘s newlines to
|
|
519
519
|
</pre>
|
520
520
|
<p>
|
521
521
|
IMPORTANT: The old version of this method required in place modification of
|
522
|
-
the file string. The new version will <a href="File.html#
|
522
|
+
the file string. The new version will <a href="File.html#M000427">write</a>
|
523
523
|
whatever the block returns instead!!!
|
524
524
|
</p>
|
525
525
|
<pre>
|
@@ -527,8 +527,8 @@ whatever the block returns instead!!!
|
|
527
527
|
</pre>
|
528
528
|
</div>
|
529
529
|
<div class="sourcecode">
|
530
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
531
|
-
<div id="
|
530
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000429_source')" id="l_M000429_source">show source</a> ]</p>
|
531
|
+
<div id="M000429_source" class="dyn-source">
|
532
532
|
<pre>
|
533
533
|
<span class="ruby-comment cmt"># File lib/core/facets/file/rewrite.rb, line 28</span>
|
534
534
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">rewrite</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">mode</span> = <span class="ruby-value str">""</span>) <span class="ruby-comment cmt">#:yield:</span>
|
@@ -561,11 +561,11 @@ whatever the block returns instead!!!
|
|
561
561
|
</div>
|
562
562
|
<div class="method">
|
563
563
|
<div class="title">
|
564
|
-
<a name="
|
564
|
+
<a name="M000441"></a><b>rewrite!</b>(name, mode = "") {|| ...}
|
565
565
|
</div>
|
566
566
|
<div class="description">
|
567
567
|
<p>
|
568
|
-
In place version of <a href="File.html#
|
568
|
+
In place version of <a href="File.html#M000429">rewrite</a>. This version
|
569
569
|
of method requires that the string be modified in place within the block.
|
570
570
|
</p>
|
571
571
|
<pre>
|
@@ -577,8 +577,8 @@ of method requires that the string be modified in place within the block.
|
|
577
577
|
</pre>
|
578
578
|
</div>
|
579
579
|
<div class="sourcecode">
|
580
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
581
|
-
<div id="
|
580
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000441_source')" id="l_M000441_source">show source</a> ]</p>
|
581
|
+
<div id="M000441_source" class="dyn-source">
|
582
582
|
<pre>
|
583
583
|
<span class="ruby-comment cmt"># File lib/core/facets/file/rewrite.rb, line 62</span>
|
584
584
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">rewrite!</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">mode</span> = <span class="ruby-value str">""</span>) <span class="ruby-comment cmt">#:yield:</span>
|
@@ -611,11 +611,11 @@ of method requires that the string be modified in place within the block.
|
|
611
611
|
</div>
|
612
612
|
<div class="method">
|
613
613
|
<div class="title">
|
614
|
-
<a name="
|
614
|
+
<a name="M000430"></a><b>rewrite!</b>(name, mode = "") {|| ...}
|
615
615
|
</div>
|
616
616
|
<div class="description">
|
617
617
|
<p>
|
618
|
-
In place version of <a href="File.html#
|
618
|
+
In place version of <a href="File.html#M000429">rewrite</a>. This version
|
619
619
|
of method requires that the string be modified in place within the block.
|
620
620
|
</p>
|
621
621
|
<pre>
|
@@ -627,8 +627,8 @@ of method requires that the string be modified in place within the block.
|
|
627
627
|
</pre>
|
628
628
|
</div>
|
629
629
|
<div class="sourcecode">
|
630
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
631
|
-
<div id="
|
630
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000430_source')" id="l_M000430_source">show source</a> ]</p>
|
631
|
+
<div id="M000430_source" class="dyn-source">
|
632
632
|
<pre>
|
633
633
|
<span class="ruby-comment cmt"># File lib/core/facets/file/rewrite.rb, line 62</span>
|
634
634
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">rewrite!</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">mode</span> = <span class="ruby-value str">""</span>) <span class="ruby-comment cmt">#:yield:</span>
|
@@ -661,7 +661,7 @@ of method requires that the string be modified in place within the block.
|
|
661
661
|
</div>
|
662
662
|
<div class="method">
|
663
663
|
<div class="title">
|
664
|
-
<a name="
|
664
|
+
<a name="M000434"></a><b>rootname</b>(path)
|
665
665
|
</div>
|
666
666
|
<div class="description">
|
667
667
|
<p>
|
@@ -676,8 +676,8 @@ Returns onlt the first portion of the directory of a file path name.
|
|
676
676
|
</pre>
|
677
677
|
</div>
|
678
678
|
<div class="sourcecode">
|
679
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
680
|
-
<div id="
|
679
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000434_source')" id="l_M000434_source">show source</a> ]</p>
|
680
|
+
<div id="M000434_source" class="dyn-source">
|
681
681
|
<pre>
|
682
682
|
<span class="ruby-comment cmt"># File lib/core/facets/file/rootname.rb, line 12</span>
|
683
683
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">rootname</span>(<span class="ruby-identifier">path</span>)
|
@@ -695,7 +695,7 @@ Returns onlt the first portion of the directory of a file path name.
|
|
695
695
|
</div>
|
696
696
|
<div class="method">
|
697
697
|
<div class="title">
|
698
|
-
<a name="
|
698
|
+
<a name="M000423"></a><b>rootname</b>(path)
|
699
699
|
</div>
|
700
700
|
<div class="description">
|
701
701
|
<p>
|
@@ -710,8 +710,8 @@ Returns onlt the first portion of the directory of a file path name.
|
|
710
710
|
</pre>
|
711
711
|
</div>
|
712
712
|
<div class="sourcecode">
|
713
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
714
|
-
<div id="
|
713
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000423_source')" id="l_M000423_source">show source</a> ]</p>
|
714
|
+
<div id="M000423_source" class="dyn-source">
|
715
715
|
<pre>
|
716
716
|
<span class="ruby-comment cmt"># File lib/core/facets/file/rootname.rb, line 12</span>
|
717
717
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">rootname</span>(<span class="ruby-identifier">path</span>)
|
@@ -729,7 +729,7 @@ Returns onlt the first portion of the directory of a file path name.
|
|
729
729
|
</div>
|
730
730
|
<div class="method">
|
731
731
|
<div class="title">
|
732
|
-
<a name="
|
732
|
+
<a name="M000431"></a><b>sanitize</b>(filename)
|
733
733
|
</div>
|
734
734
|
<div class="description">
|
735
735
|
<p>
|
@@ -740,8 +740,8 @@ Cleans up a filename to ensure it will work on filesystem.
|
|
740
740
|
</pre>
|
741
741
|
</div>
|
742
742
|
<div class="sourcecode">
|
743
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
744
|
-
<div id="
|
743
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000431_source')" id="l_M000431_source">show source</a> ]</p>
|
744
|
+
<div id="M000431_source" class="dyn-source">
|
745
745
|
<pre>
|
746
746
|
<span class="ruby-comment cmt"># File lib/core/facets/file/read.rb, line 7</span>
|
747
747
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">sanitize</span>(<span class="ruby-identifier">filename</span>)
|
@@ -756,7 +756,7 @@ Cleans up a filename to ensure it will work on filesystem.
|
|
756
756
|
</div>
|
757
757
|
<div class="method">
|
758
758
|
<div class="title">
|
759
|
-
<a name="
|
759
|
+
<a name="M000442"></a><b>sanitize</b>(filename)
|
760
760
|
</div>
|
761
761
|
<div class="description">
|
762
762
|
<p>
|
@@ -767,8 +767,8 @@ Cleans up a filename to ensure it will work on filesystem.
|
|
767
767
|
</pre>
|
768
768
|
</div>
|
769
769
|
<div class="sourcecode">
|
770
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
771
|
-
<div id="
|
770
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000442_source')" id="l_M000442_source">show source</a> ]</p>
|
771
|
+
<div id="M000442_source" class="dyn-source">
|
772
772
|
<pre>
|
773
773
|
<span class="ruby-comment cmt"># File lib/core/facets/file/read.rb, line 7</span>
|
774
774
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">sanitize</span>(<span class="ruby-identifier">filename</span>)
|
@@ -783,7 +783,7 @@ Cleans up a filename to ensure it will work on filesystem.
|
|
783
783
|
</div>
|
784
784
|
<div class="method">
|
785
785
|
<div class="title">
|
786
|
-
<a name="
|
786
|
+
<a name="M000427"></a><b>write</b>(path, data)
|
787
787
|
</div>
|
788
788
|
<div class="description">
|
789
789
|
<p>
|
@@ -798,8 +798,8 @@ Returns the number of bytes written.
|
|
798
798
|
</pre>
|
799
799
|
</div>
|
800
800
|
<div class="sourcecode">
|
801
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
802
|
-
<div id="
|
801
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000427_source')" id="l_M000427_source">show source</a> ]</p>
|
802
|
+
<div id="M000427_source" class="dyn-source">
|
803
803
|
<pre>
|
804
804
|
<span class="ruby-comment cmt"># File lib/core/facets/file/write.rb, line 37</span>
|
805
805
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">write</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">data</span>)
|
@@ -813,7 +813,7 @@ Returns the number of bytes written.
|
|
813
813
|
</div>
|
814
814
|
<div class="method">
|
815
815
|
<div class="title">
|
816
|
-
<a name="
|
816
|
+
<a name="M000438"></a><b>write</b>(path, data)
|
817
817
|
</div>
|
818
818
|
<div class="description">
|
819
819
|
<p>
|
@@ -828,8 +828,8 @@ Returns the number of bytes written.
|
|
828
828
|
</pre>
|
829
829
|
</div>
|
830
830
|
<div class="sourcecode">
|
831
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
832
|
-
<div id="
|
831
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000438_source')" id="l_M000438_source">show source</a> ]</p>
|
832
|
+
<div id="M000438_source" class="dyn-source">
|
833
833
|
<pre>
|
834
834
|
<span class="ruby-comment cmt"># File lib/core/facets/file/write.rb, line 37</span>
|
835
835
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">write</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">data</span>)
|
@@ -843,7 +843,7 @@ Returns the number of bytes written.
|
|
843
843
|
</div>
|
844
844
|
<div class="method">
|
845
845
|
<div class="title">
|
846
|
-
<a name="
|
846
|
+
<a name="M000439"></a><b>writelines</b>(path, data)
|
847
847
|
</div>
|
848
848
|
<div class="description">
|
849
849
|
<p>
|
@@ -854,9 +854,9 @@ Ruby.
|
|
854
854
|
<p>
|
855
855
|
Note that <tt>readlines</tt> (the standard Ruby method) returns an array of
|
856
856
|
lines <em>with newlines intact</em>, whereas <tt><a
|
857
|
-
href="File.html#
|
857
|
+
href="File.html#M000428">writelines</a></tt> uses <tt>puts</tt>, and so
|
858
858
|
appends newlines if necessary. In this small way, <tt>readlines</tt> and
|
859
|
-
<tt><a href="File.html#
|
859
|
+
<tt><a href="File.html#M000428">writelines</a></tt> are not exact
|
860
860
|
opposites.
|
861
861
|
</p>
|
862
862
|
<p>
|
@@ -868,8 +868,8 @@ Returns <tt>nil</tt>.
|
|
868
868
|
</pre>
|
869
869
|
</div>
|
870
870
|
<div class="sourcecode">
|
871
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
872
|
-
<div id="
|
871
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000439_source')" id="l_M000439_source">show source</a> ]</p>
|
872
|
+
<div id="M000439_source" class="dyn-source">
|
873
873
|
<pre>
|
874
874
|
<span class="ruby-comment cmt"># File lib/core/facets/file/write.rb, line 57</span>
|
875
875
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">writelines</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">data</span>)
|
@@ -883,7 +883,7 @@ Returns <tt>nil</tt>.
|
|
883
883
|
</div>
|
884
884
|
<div class="method">
|
885
885
|
<div class="title">
|
886
|
-
<a name="
|
886
|
+
<a name="M000428"></a><b>writelines</b>(path, data)
|
887
887
|
</div>
|
888
888
|
<div class="description">
|
889
889
|
<p>
|
@@ -894,9 +894,9 @@ Ruby.
|
|
894
894
|
<p>
|
895
895
|
Note that <tt>readlines</tt> (the standard Ruby method) returns an array of
|
896
896
|
lines <em>with newlines intact</em>, whereas <tt><a
|
897
|
-
href="File.html#
|
897
|
+
href="File.html#M000428">writelines</a></tt> uses <tt>puts</tt>, and so
|
898
898
|
appends newlines if necessary. In this small way, <tt>readlines</tt> and
|
899
|
-
<tt><a href="File.html#
|
899
|
+
<tt><a href="File.html#M000428">writelines</a></tt> are not exact
|
900
900
|
opposites.
|
901
901
|
</p>
|
902
902
|
<p>
|
@@ -908,8 +908,8 @@ Returns <tt>nil</tt>.
|
|
908
908
|
</pre>
|
909
909
|
</div>
|
910
910
|
<div class="sourcecode">
|
911
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
912
|
-
<div id="
|
911
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000428_source')" id="l_M000428_source">show source</a> ]</p>
|
912
|
+
<div id="M000428_source" class="dyn-source">
|
913
913
|
<pre>
|
914
914
|
<span class="ruby-comment cmt"># File lib/core/facets/file/write.rb, line 57</span>
|
915
915
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">writelines</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">data</span>)
|