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
@@ -78,11 +78,11 @@ Extensions for <a href="Method.html">Method</a> class.
|
|
78
78
|
|
79
79
|
<div class="sectiontitle">Methods</div>
|
80
80
|
<ul>
|
81
|
-
<li><a href="#
|
82
|
-
<li><a href="#
|
83
|
-
<li><a href="#
|
84
|
-
<li><a href="#
|
85
|
-
<li><a href="#
|
81
|
+
<li><a href="#M000713">advice_after=</a></li>
|
82
|
+
<li><a href="#M000714">advice_around=</a></li>
|
83
|
+
<li><a href="#M000712">advice_before=</a></li>
|
84
|
+
<li><a href="#M000711">advised?</a></li>
|
85
|
+
<li><a href="#M000715">call_with_advice</a></li>
|
86
86
|
</ul>
|
87
87
|
|
88
88
|
|
@@ -124,11 +124,11 @@ Extensions for <a href="Method.html">Method</a> class.
|
|
124
124
|
<div class="sectiontitle">Public Instance methods</div>
|
125
125
|
<div class="method">
|
126
126
|
<div class="title">
|
127
|
-
<a name="
|
127
|
+
<a name="M000713"></a><b>advice_after=</b>(set)
|
128
128
|
</div>
|
129
129
|
<div class="sourcecode">
|
130
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
131
|
-
<div id="
|
130
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000713_source')" id="l_M000713_source">show source</a> ]</p>
|
131
|
+
<div id="M000713_source" class="dyn-source">
|
132
132
|
<pre>
|
133
133
|
<span class="ruby-comment cmt"># File lib/more/facets/advisable.rb, line 120</span>
|
134
134
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">advice_after=</span>(<span class="ruby-identifier">set</span>) ; <span class="ruby-ivar">@advice_after</span> = <span class="ruby-identifier">set</span>.<span class="ruby-identifier">flatten</span>.<span class="ruby-identifier">compact</span>; <span class="ruby-keyword kw">end</span>
|
@@ -138,11 +138,11 @@ Extensions for <a href="Method.html">Method</a> class.
|
|
138
138
|
</div>
|
139
139
|
<div class="method">
|
140
140
|
<div class="title">
|
141
|
-
<a name="
|
141
|
+
<a name="M000714"></a><b>advice_around=</b>(set)
|
142
142
|
</div>
|
143
143
|
<div class="sourcecode">
|
144
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
145
|
-
<div id="
|
144
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000714_source')" id="l_M000714_source">show source</a> ]</p>
|
145
|
+
<div id="M000714_source" class="dyn-source">
|
146
146
|
<pre>
|
147
147
|
<span class="ruby-comment cmt"># File lib/more/facets/advisable.rb, line 121</span>
|
148
148
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">advice_around=</span>(<span class="ruby-identifier">set</span>); <span class="ruby-ivar">@advice_around</span> = <span class="ruby-identifier">set</span>.<span class="ruby-identifier">flatten</span>.<span class="ruby-identifier">compact</span>; <span class="ruby-keyword kw">end</span>
|
@@ -152,11 +152,11 @@ Extensions for <a href="Method.html">Method</a> class.
|
|
152
152
|
</div>
|
153
153
|
<div class="method">
|
154
154
|
<div class="title">
|
155
|
-
<a name="
|
155
|
+
<a name="M000712"></a><b>advice_before=</b>(set)
|
156
156
|
</div>
|
157
157
|
<div class="sourcecode">
|
158
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
159
|
-
<div id="
|
158
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000712_source')" id="l_M000712_source">show source</a> ]</p>
|
159
|
+
<div id="M000712_source" class="dyn-source">
|
160
160
|
<pre>
|
161
161
|
<span class="ruby-comment cmt"># File lib/more/facets/advisable.rb, line 119</span>
|
162
162
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">advice_before=</span>(<span class="ruby-identifier">set</span>); <span class="ruby-ivar">@advice_before</span> = <span class="ruby-identifier">set</span>.<span class="ruby-identifier">flatten</span>.<span class="ruby-identifier">compact</span>; <span class="ruby-keyword kw">end</span>
|
@@ -166,11 +166,11 @@ Extensions for <a href="Method.html">Method</a> class.
|
|
166
166
|
</div>
|
167
167
|
<div class="method">
|
168
168
|
<div class="title">
|
169
|
-
<a name="
|
169
|
+
<a name="M000711"></a><b>advised?</b>()
|
170
170
|
</div>
|
171
171
|
<div class="sourcecode">
|
172
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
173
|
-
<div id="
|
172
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000711_source')" id="l_M000711_source">show source</a> ]</p>
|
173
|
+
<div id="M000711_source" class="dyn-source">
|
174
174
|
<pre>
|
175
175
|
<span class="ruby-comment cmt"># File lib/more/facets/advisable.rb, line 115</span>
|
176
176
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">advised?</span>
|
@@ -182,7 +182,7 @@ Extensions for <a href="Method.html">Method</a> class.
|
|
182
182
|
</div>
|
183
183
|
<div class="method">
|
184
184
|
<div class="title">
|
185
|
-
<a name="
|
185
|
+
<a name="M000715"></a><b>call_with_advice</b>(obj, *args, &blk)
|
186
186
|
</div>
|
187
187
|
<div class="description">
|
188
188
|
<p>
|
@@ -190,8 +190,8 @@ Call with advice.
|
|
190
190
|
</p>
|
191
191
|
</div>
|
192
192
|
<div class="sourcecode">
|
193
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
194
|
-
<div id="
|
193
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000715_source')" id="l_M000715_source">show source</a> ]</p>
|
194
|
+
<div id="M000715_source" class="dyn-source">
|
195
195
|
<pre>
|
196
196
|
<span class="ruby-comment cmt"># File lib/more/facets/advisable.rb, line 125</span>
|
197
197
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">call_with_advice</span>(<span class="ruby-identifier">obj</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
@@ -126,7 +126,7 @@ As the case above shows, one need not write to a file. However, it will
|
|
126
126
|
sometimes require that one dive a little deeper into the API, as in the
|
127
127
|
case of StringIO objects. Note that I‘m not providing a block with <a
|
128
128
|
href="Minitar/Output.html">Minitar::Output</a>, as <a
|
129
|
-
href="Minitar/Output.html#
|
129
|
+
href="Minitar/Output.html#M000887">Minitar::Output#close</a> automatically
|
130
130
|
closes both the <a href="Minitar/Output.html">Output</a> object and the
|
131
131
|
wrapped data stream object.
|
132
132
|
</p>
|
@@ -167,11 +167,11 @@ later) or Ruby‘s licence.
|
|
167
167
|
|
168
168
|
<div class="sectiontitle">Methods</div>
|
169
169
|
<ul>
|
170
|
-
<li><a href="#
|
171
|
-
<li><a href="#
|
172
|
-
<li><a href="#
|
173
|
-
<li><a href="#
|
174
|
-
<li><a href="#
|
170
|
+
<li><a href="#M000879">dir?</a></li>
|
171
|
+
<li><a href="#M000880">open</a></li>
|
172
|
+
<li><a href="#M000882">pack</a></li>
|
173
|
+
<li><a href="#M000881">pack_file</a></li>
|
174
|
+
<li><a href="#M000883">unpack</a></li>
|
175
175
|
</ul>
|
176
176
|
|
177
177
|
|
@@ -196,7 +196,7 @@ Class <a href="Minitar/Writer.html" class="link">Archive::Tar::Minitar::Writer</
|
|
196
196
|
<div class="sectiontitle">Public Class methods</div>
|
197
197
|
<div class="method">
|
198
198
|
<div class="title">
|
199
|
-
<a name="
|
199
|
+
<a name="M000879"></a><b>dir?</b>(path)
|
200
200
|
</div>
|
201
201
|
<div class="description">
|
202
202
|
<p>
|
@@ -205,8 +205,8 @@ Tests if <tt>path</tt> refers to a directory. Fixes an apparently corrupted
|
|
205
205
|
</p>
|
206
206
|
</div>
|
207
207
|
<div class="sourcecode">
|
208
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
209
|
-
<div id="
|
208
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000879_source')" id="l_M000879_source">show source</a> ]</p>
|
209
|
+
<div id="M000879_source" class="dyn-source">
|
210
210
|
<pre>
|
211
211
|
<span class="ruby-comment cmt"># File lib/more/facets/minitar.rb, line 914</span>
|
212
212
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dir?</span>(<span class="ruby-identifier">path</span>)
|
@@ -218,20 +218,20 @@ Tests if <tt>path</tt> refers to a directory. Fixes an apparently corrupted
|
|
218
218
|
</div>
|
219
219
|
<div class="method">
|
220
220
|
<div class="title">
|
221
|
-
<a name="
|
221
|
+
<a name="M000880"></a><b>open</b>(dest, mode = "r", &block)
|
222
222
|
</div>
|
223
223
|
<div class="description">
|
224
224
|
<p>
|
225
225
|
A convenience method for wrapping <a
|
226
|
-
href="Minitar/Input.html#
|
226
|
+
href="Minitar/Input.html#M000888">Archive::Tar::Minitar::Input.open</a>
|
227
227
|
(mode <tt>r</tt>) and <a
|
228
|
-
href="Minitar/Output.html#
|
228
|
+
href="Minitar/Output.html#M000884">Archive::Tar::Minitar::Output.open</a>
|
229
229
|
(mode <tt>w</tt>). No other modes are currently supported.
|
230
230
|
</p>
|
231
231
|
</div>
|
232
232
|
<div class="sourcecode">
|
233
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
234
|
-
<div id="
|
233
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000880_source')" id="l_M000880_source">show source</a> ]</p>
|
234
|
+
<div id="M000880_source" class="dyn-source">
|
235
235
|
<pre>
|
236
236
|
<span class="ruby-comment cmt"># File lib/more/facets/minitar.rb, line 921</span>
|
237
237
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">open</span>(<span class="ruby-identifier">dest</span>, <span class="ruby-identifier">mode</span> = <span class="ruby-value str">"r"</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -250,11 +250,11 @@ href="Minitar/Output.html#M000880">Archive::Tar::Minitar::Output.open</a>
|
|
250
250
|
</div>
|
251
251
|
<div class="method">
|
252
252
|
<div class="title">
|
253
|
-
<a name="
|
253
|
+
<a name="M000882"></a><b>pack</b>(src, dest, recurse_dirs = true, &block)
|
254
254
|
</div>
|
255
255
|
<div class="description">
|
256
256
|
<p>
|
257
|
-
A convenience method to <a href="Minitar.html#
|
257
|
+
A convenience method to <a href="Minitar.html#M000882">pack</a> files
|
258
258
|
specified by <tt>src</tt> into <tt>dest</tt>. If <tt>src</tt> is an Array,
|
259
259
|
then each file detailed therein will be packed into the resulting <a
|
260
260
|
href="Minitar/Output.html">Archive::Tar::Minitar::Output</a> stream; if
|
@@ -266,8 +266,8 @@ Find.find; all files matching will be packed.
|
|
266
266
|
</p>
|
267
267
|
</div>
|
268
268
|
<div class="sourcecode">
|
269
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
270
|
-
<div id="
|
269
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000882_source')" id="l_M000882_source">show source</a> ]</p>
|
270
|
+
<div id="M000882_source" class="dyn-source">
|
271
271
|
<pre>
|
272
272
|
<span class="ruby-comment cmt"># File lib/more/facets/minitar.rb, line 1023</span>
|
273
273
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pack</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">dest</span>, <span class="ruby-identifier">recurse_dirs</span> = <span class="ruby-keyword kw">true</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -294,7 +294,7 @@ Find.find; all files matching will be packed.
|
|
294
294
|
</div>
|
295
295
|
<div class="method">
|
296
296
|
<div class="title">
|
297
|
-
<a name="
|
297
|
+
<a name="M000881"></a><b>pack_file</b>(entry, outputter) {|:file_start, name, stats if block_given?| ...}
|
298
298
|
</div>
|
299
299
|
<div class="description">
|
300
300
|
<p>
|
@@ -322,10 +322,10 @@ href="../../Hash.html">Hash</a> with the fields:
|
|
322
322
|
</table>
|
323
323
|
<p>
|
324
324
|
During packing, if a block is provided, <a
|
325
|
-
href="Minitar.html#
|
325
|
+
href="Minitar.html#M000881">pack_file</a> yields an <tt>action</tt> Symol,
|
326
326
|
the full name of the file being packed, and a <a
|
327
327
|
href="../../Hash.html">Hash</a> of statistical information, just as with <a
|
328
|
-
href="Minitar/Input.html#
|
328
|
+
href="Minitar/Input.html#M000891">Archive::Tar::Minitar::Input#extract_entry</a>.
|
329
329
|
</p>
|
330
330
|
<p>
|
331
331
|
The <tt>action</tt> will be one of:
|
@@ -372,8 +372,8 @@ The <tt>stats</tt> hash contains the following keys:
|
|
372
372
|
</table>
|
373
373
|
</div>
|
374
374
|
<div class="sourcecode">
|
375
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
376
|
-
<div id="
|
375
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000881_source')" id="l_M000881_source">show source</a> ]</p>
|
376
|
+
<div id="M000881_source" class="dyn-source">
|
377
377
|
<pre>
|
378
378
|
<span class="ruby-comment cmt"># File lib/more/facets/minitar.rb, line 967</span>
|
379
379
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pack_file</span>(<span class="ruby-identifier">entry</span>, <span class="ruby-identifier">outputter</span>) <span class="ruby-comment cmt">#:yields action, name, stats:</span>
|
@@ -430,18 +430,18 @@ The <tt>stats</tt> hash contains the following keys:
|
|
430
430
|
</div>
|
431
431
|
<div class="method">
|
432
432
|
<div class="title">
|
433
|
-
<a name="
|
433
|
+
<a name="M000883"></a><b>unpack</b>(src, dest, files = [], &block)
|
434
434
|
</div>
|
435
435
|
<div class="description">
|
436
436
|
<p>
|
437
|
-
A convenience method to <a href="Minitar.html#
|
437
|
+
A convenience method to <a href="Minitar.html#M000883">unpack</a> files
|
438
438
|
from <tt>src</tt> into the directory specified by <tt>dest</tt>. Only those
|
439
439
|
files named explicitly in <tt>files</tt> will be extracted.
|
440
440
|
</p>
|
441
441
|
</div>
|
442
442
|
<div class="sourcecode">
|
443
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
444
|
-
<div id="
|
443
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000883_source')" id="l_M000883_source">show source</a> ]</p>
|
444
|
+
<div id="M000883_source" class="dyn-source">
|
445
445
|
<pre>
|
446
446
|
<span class="ruby-comment cmt"># File lib/more/facets/minitar.rb, line 1045</span>
|
447
447
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unpack</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">dest</span>, <span class="ruby-identifier">files</span> = [], <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -87,12 +87,12 @@ Input::new for details.
|
|
87
87
|
|
88
88
|
<div class="sectiontitle">Methods</div>
|
89
89
|
<ul>
|
90
|
-
<li><a href="#
|
91
|
-
<li><a href="#
|
92
|
-
<li><a href="#
|
93
|
-
<li><a href="#
|
94
|
-
<li><a href="#
|
95
|
-
<li><a href="#
|
90
|
+
<li><a href="#M000893">close</a></li>
|
91
|
+
<li><a href="#M000890">each</a></li>
|
92
|
+
<li><a href="#M000891">extract_entry</a></li>
|
93
|
+
<li><a href="#M000889">new</a></li>
|
94
|
+
<li><a href="#M000888">open</a></li>
|
95
|
+
<li><a href="#M000892">tar</a></li>
|
96
96
|
</ul>
|
97
97
|
|
98
98
|
<div class="sectiontitle">Included Modules</div>
|
@@ -107,21 +107,21 @@ Input::new for details.
|
|
107
107
|
<div class="sectiontitle">Public Class methods</div>
|
108
108
|
<div class="method">
|
109
109
|
<div class="title">
|
110
|
-
<a name="
|
110
|
+
<a name="M000889"></a><b>new</b>(input)
|
111
111
|
</div>
|
112
112
|
<div class="description">
|
113
113
|
<p>
|
114
|
-
Creates a <a href="Input.html#
|
114
|
+
Creates a <a href="Input.html#M000889">new</a> <a
|
115
115
|
href="Input.html">Input</a> object. If <tt>input</tt> is a stream object
|
116
116
|
that responds to read), then it will simply be wrapped. Otherwise, one will
|
117
117
|
be created and opened using Kernel#open. When <a
|
118
|
-
href="Input.html#
|
118
|
+
href="Input.html#M000893">Input#close</a> is called, the stream object
|
119
119
|
wrapped will be closed.
|
120
120
|
</p>
|
121
121
|
</div>
|
122
122
|
<div class="sourcecode">
|
123
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
124
|
-
<div id="
|
123
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000889_source')" id="l_M000889_source">show source</a> ]</p>
|
124
|
+
<div id="M000889_source" class="dyn-source">
|
125
125
|
<pre>
|
126
126
|
<span class="ruby-comment cmt"># File lib/more/facets/minitar.rb, line 749</span>
|
127
127
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">input</span>)
|
@@ -138,21 +138,21 @@ wrapped will be closed.
|
|
138
138
|
</div>
|
139
139
|
<div class="method">
|
140
140
|
<div class="title">
|
141
|
-
<a name="
|
141
|
+
<a name="M000888"></a><b>open</b>(input) {|stream| ...}
|
142
142
|
</div>
|
143
143
|
<div class="description">
|
144
144
|
<p>
|
145
145
|
With no associated block, +Input::open+ is a synonym for +Input::new+. If
|
146
146
|
the optional code block is given, it will be passed the <a
|
147
|
-
href="Input.html#
|
147
|
+
href="Input.html#M000889">new</a> <em>writer</em> as an argument and the <a
|
148
148
|
href="Input.html">Input</a> object will automatically be closed when the
|
149
149
|
block terminates. In this instance, +Input::open+ returns the value of the
|
150
150
|
block.
|
151
151
|
</p>
|
152
152
|
</div>
|
153
153
|
<div class="sourcecode">
|
154
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
155
|
-
<div id="
|
154
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000888_source')" id="l_M000888_source">show source</a> ]</p>
|
155
|
+
<div id="M000888_source" class="dyn-source">
|
156
156
|
<pre>
|
157
157
|
<span class="ruby-comment cmt"># File lib/more/facets/minitar.rb, line 732</span>
|
158
158
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">input</span>)
|
@@ -174,7 +174,7 @@ block.
|
|
174
174
|
<div class="sectiontitle">Public Instance methods</div>
|
175
175
|
<div class="method">
|
176
176
|
<div class="title">
|
177
|
-
<a name="
|
177
|
+
<a name="M000893"></a><b>close</b>()
|
178
178
|
</div>
|
179
179
|
<div class="description">
|
180
180
|
<p>
|
@@ -183,8 +183,8 @@ stream.
|
|
183
183
|
</p>
|
184
184
|
</div>
|
185
185
|
<div class="sourcecode">
|
186
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
187
|
-
<div id="
|
186
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000893_source')" id="l_M000893_source">show source</a> ]</p>
|
187
|
+
<div id="M000893_source" class="dyn-source">
|
188
188
|
<pre>
|
189
189
|
<span class="ruby-comment cmt"># File lib/more/facets/minitar.rb, line 847</span>
|
190
190
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close</span>
|
@@ -197,17 +197,17 @@ stream.
|
|
197
197
|
</div>
|
198
198
|
<div class="method">
|
199
199
|
<div class="title">
|
200
|
-
<a name="
|
200
|
+
<a name="M000890"></a><b>each</b>() {|entry| ...}
|
201
201
|
</div>
|
202
202
|
<div class="description">
|
203
203
|
<p>
|
204
|
-
Iterates through <a href="Input.html#
|
204
|
+
Iterates through <a href="Input.html#M000890">each</a> entry and rewinds to
|
205
205
|
the beginning of the stream when finished.
|
206
206
|
</p>
|
207
207
|
</div>
|
208
208
|
<div class="sourcecode">
|
209
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
210
|
-
<div id="
|
209
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000890_source')" id="l_M000890_source">show source</a> ]</p>
|
210
|
+
<div id="M000890_source" class="dyn-source">
|
211
211
|
<pre>
|
212
212
|
<span class="ruby-comment cmt"># File lib/more/facets/minitar.rb, line 760</span>
|
213
213
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -221,7 +221,7 @@ the beginning of the stream when finished.
|
|
221
221
|
</div>
|
222
222
|
<div class="method">
|
223
223
|
<div class="title">
|
224
|
-
<a name="
|
224
|
+
<a name="M000891"></a><b>extract_entry</b>(destdir, entry) {|:dir, entry.full_name, stats if block_given?| ...}
|
225
225
|
</div>
|
226
226
|
<div class="description">
|
227
227
|
<p>
|
@@ -265,8 +265,8 @@ thereof.
|
|
265
265
|
</table>
|
266
266
|
</div>
|
267
267
|
<div class="sourcecode">
|
268
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
269
|
-
<div id="
|
268
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000891_source')" id="l_M000891_source">show source</a> ]</p>
|
269
|
+
<div id="M000891_source" class="dyn-source">
|
270
270
|
<pre>
|
271
271
|
<span class="ruby-comment cmt"># File lib/more/facets/minitar.rb, line 785</span>
|
272
272
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">extract_entry</span>(<span class="ruby-identifier">destdir</span>, <span class="ruby-identifier">entry</span>) <span class="ruby-comment cmt"># :yields action, name, stats:</span>
|
@@ -330,7 +330,7 @@ thereof.
|
|
330
330
|
</div>
|
331
331
|
<div class="method">
|
332
332
|
<div class="title">
|
333
|
-
<a name="
|
333
|
+
<a name="M000892"></a><b>tar</b>()
|
334
334
|
</div>
|
335
335
|
<div class="description">
|
336
336
|
<p>
|
@@ -338,8 +338,8 @@ Returns the <a href="Reader.html">Reader</a> object for direct access.
|
|
338
338
|
</p>
|
339
339
|
</div>
|
340
340
|
<div class="sourcecode">
|
341
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
342
|
-
<div id="
|
341
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000892_source')" id="l_M000892_source">show source</a> ]</p>
|
342
|
+
<div id="M000892_source" class="dyn-source">
|
343
343
|
<pre>
|
344
344
|
<span class="ruby-comment cmt"># File lib/more/facets/minitar.rb, line 842</span>
|
345
345
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tar</span>
|
@@ -87,10 +87,10 @@ See Output::new for details.
|
|
87
87
|
|
88
88
|
<div class="sectiontitle">Methods</div>
|
89
89
|
<ul>
|
90
|
-
<li><a href="#
|
91
|
-
<li><a href="#
|
92
|
-
<li><a href="#
|
93
|
-
<li><a href="#
|
90
|
+
<li><a href="#M000887">close</a></li>
|
91
|
+
<li><a href="#M000885">new</a></li>
|
92
|
+
<li><a href="#M000884">open</a></li>
|
93
|
+
<li><a href="#M000886">tar</a></li>
|
94
94
|
</ul>
|
95
95
|
|
96
96
|
|
@@ -101,21 +101,21 @@ See Output::new for details.
|
|
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="M000885"></a><b>new</b>(output)
|
105
105
|
</div>
|
106
106
|
<div class="description">
|
107
107
|
<p>
|
108
|
-
Creates a <a href="Output.html#
|
108
|
+
Creates a <a href="Output.html#M000885">new</a> <a
|
109
109
|
href="Output.html">Output</a> object. If <tt>output</tt> is a stream object
|
110
110
|
that responds to read), then it will simply be wrapped. Otherwise, one will
|
111
111
|
be created and opened using Kernel#open. When <a
|
112
|
-
href="Output.html#
|
112
|
+
href="Output.html#M000887">Output#close</a> is called, the stream object
|
113
113
|
wrapped will be closed.
|
114
114
|
</p>
|
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('M000885_source')" id="l_M000885_source">show source</a> ]</p>
|
118
|
+
<div id="M000885_source" class="dyn-source">
|
119
119
|
<pre>
|
120
120
|
<span class="ruby-comment cmt"># File lib/more/facets/minitar.rb, line 890</span>
|
121
121
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">output</span>)
|
@@ -132,21 +132,21 @@ wrapped will be closed.
|
|
132
132
|
</div>
|
133
133
|
<div class="method">
|
134
134
|
<div class="title">
|
135
|
-
<a name="
|
135
|
+
<a name="M000884"></a><b>open</b>(output) {|stream| ...}
|
136
136
|
</div>
|
137
137
|
<div class="description">
|
138
138
|
<p>
|
139
139
|
With no associated block, +Output::open+ is a synonym for +Output::new+. If
|
140
140
|
the optional code block is given, it will be passed the <a
|
141
|
-
href="Output.html#
|
141
|
+
href="Output.html#M000885">new</a> <em>writer</em> as an argument and the
|
142
142
|
<a href="Output.html">Output</a> object will automatically be closed when
|
143
143
|
the block terminates. In this instance, +Output::open+ returns the value of
|
144
144
|
the block.
|
145
145
|
</p>
|
146
146
|
</div>
|
147
147
|
<div class="sourcecode">
|
148
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
149
|
-
<div id="
|
148
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000884_source')" id="l_M000884_source">show source</a> ]</p>
|
149
|
+
<div id="M000884_source" class="dyn-source">
|
150
150
|
<pre>
|
151
151
|
<span class="ruby-comment cmt"># File lib/more/facets/minitar.rb, line 873</span>
|
152
152
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">output</span>)
|
@@ -168,7 +168,7 @@ the block.
|
|
168
168
|
<div class="sectiontitle">Public Instance methods</div>
|
169
169
|
<div class="method">
|
170
170
|
<div class="title">
|
171
|
-
<a name="
|
171
|
+
<a name="M000887"></a><b>close</b>()
|
172
172
|
</div>
|
173
173
|
<div class="description">
|
174
174
|
<p>
|
@@ -177,8 +177,8 @@ stream.
|
|
177
177
|
</p>
|
178
178
|
</div>
|
179
179
|
<div class="sourcecode">
|
180
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
181
|
-
<div id="
|
180
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000887_source')" id="l_M000887_source">show source</a> ]</p>
|
181
|
+
<div id="M000887_source" class="dyn-source">
|
182
182
|
<pre>
|
183
183
|
<span class="ruby-comment cmt"># File lib/more/facets/minitar.rb, line 905</span>
|
184
184
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close</span>
|
@@ -191,7 +191,7 @@ stream.
|
|
191
191
|
</div>
|
192
192
|
<div class="method">
|
193
193
|
<div class="title">
|
194
|
-
<a name="
|
194
|
+
<a name="M000886"></a><b>tar</b>()
|
195
195
|
</div>
|
196
196
|
<div class="description">
|
197
197
|
<p>
|
@@ -199,8 +199,8 @@ Returns the <a href="Writer.html">Writer</a> object for direct access.
|
|
199
199
|
</p>
|
200
200
|
</div>
|
201
201
|
<div class="sourcecode">
|
202
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
203
|
-
<div id="
|
202
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000886_source')" id="l_M000886_source">show source</a> ]</p>
|
203
|
+
<div id="M000886_source" class="dyn-source">
|
204
204
|
<pre>
|
205
205
|
<span class="ruby-comment cmt"># File lib/more/facets/minitar.rb, line 900</span>
|
206
206
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tar</span>
|