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,7 +78,7 @@ Typecast method extensions for <a href="Class.html">Class</a> class.
|
|
78
78
|
|
79
79
|
<div class="sectiontitle">Methods</div>
|
80
80
|
<ul>
|
81
|
-
<li><a href="#
|
81
|
+
<li><a href="#M000925">cast_from</a></li>
|
82
82
|
</ul>
|
83
83
|
|
84
84
|
|
@@ -89,7 +89,7 @@ Typecast method extensions for <a href="Class.html">Class</a> class.
|
|
89
89
|
<div class="sectiontitle">Public Instance methods</div>
|
90
90
|
<div class="method">
|
91
91
|
<div class="title">
|
92
|
-
<a name="
|
92
|
+
<a name="M000925"></a><b>cast_from</b>(object)
|
93
93
|
</div>
|
94
94
|
<div class="description">
|
95
95
|
<p>
|
@@ -100,8 +100,8 @@ Cast on object from another.
|
|
100
100
|
</pre>
|
101
101
|
</div>
|
102
102
|
<div class="sourcecode">
|
103
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
104
|
-
<div id="
|
103
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000925_source')" id="l_M000925_source">show source</a> ]</p>
|
104
|
+
<div id="M000925_source" class="dyn-source">
|
105
105
|
<pre>
|
106
106
|
<span class="ruby-comment cmt"># File lib/more/facets/typecast.rb, line 160</span>
|
107
107
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cast_from</span>(<span class="ruby-identifier">object</span>)
|
@@ -78,7 +78,7 @@ Typecast method extensions for <a href="Object.html">Object</a> class.
|
|
78
78
|
|
79
79
|
<div class="sectiontitle">Methods</div>
|
80
80
|
<ul>
|
81
|
-
<li><a href="#
|
81
|
+
<li><a href="#M000926">cast_to</a></li>
|
82
82
|
</ul>
|
83
83
|
|
84
84
|
|
@@ -89,7 +89,7 @@ Typecast method extensions for <a href="Object.html">Object</a> class.
|
|
89
89
|
<div class="sectiontitle">Public Instance methods</div>
|
90
90
|
<div class="method">
|
91
91
|
<div class="title">
|
92
|
-
<a name="
|
92
|
+
<a name="M000926"></a><b>cast_to</b>(klass)
|
93
93
|
</div>
|
94
94
|
<div class="description">
|
95
95
|
<p>
|
@@ -100,8 +100,8 @@ Cast an object to another
|
|
100
100
|
</pre>
|
101
101
|
</div>
|
102
102
|
<div class="sourcecode">
|
103
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
104
|
-
<div id="
|
103
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000926_source')" id="l_M000926_source">show source</a> ]</p>
|
104
|
+
<div id="M000926_source" class="dyn-source">
|
105
105
|
<pre>
|
106
106
|
<span class="ruby-comment cmt"># File lib/more/facets/typecast.rb, line 148</span>
|
107
107
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cast_to</span>(<span class="ruby-identifier">klass</span>)
|
@@ -73,7 +73,7 @@
|
|
73
73
|
<p>
|
74
74
|
Allows an object to declare itself as unable to be subclassed. The
|
75
75
|
technique behind this is very simple (redefinition of <a
|
76
|
-
href="Uninheritable.html#
|
76
|
+
href="Uninheritable.html#M001015">inherited</a>), so this just provides an
|
77
77
|
easier way to do the same thing with a consistent error message.
|
78
78
|
</p>
|
79
79
|
</div>
|
@@ -82,7 +82,7 @@ easier way to do the same thing with a consistent error message.
|
|
82
82
|
|
83
83
|
<div class="sectiontitle">Methods</div>
|
84
84
|
<ul>
|
85
|
-
<li><a href="#
|
85
|
+
<li><a href="#M001015">inherited</a></li>
|
86
86
|
</ul>
|
87
87
|
|
88
88
|
|
@@ -93,18 +93,18 @@ easier way to do the same thing with a consistent error message.
|
|
93
93
|
<div class="sectiontitle">Public Instance methods</div>
|
94
94
|
<div class="method">
|
95
95
|
<div class="title">
|
96
|
-
<a name="
|
96
|
+
<a name="M001015"></a><b>inherited</b>(klass)
|
97
97
|
</div>
|
98
98
|
<div class="description">
|
99
99
|
<p>
|
100
100
|
Redefines a class‘s <a
|
101
|
-
href="Uninheritable.html#
|
101
|
+
href="Uninheritable.html#M001015">inherited</a> definition to prevent
|
102
102
|
subclassing of the class extended by this module.
|
103
103
|
</p>
|
104
104
|
</div>
|
105
105
|
<div class="sourcecode">
|
106
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
107
|
-
<div id="
|
106
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M001015_source')" id="l_M001015_source">show source</a> ]</p>
|
107
|
+
<div id="M001015_source" class="dyn-source">
|
108
108
|
<pre>
|
109
109
|
<span class="ruby-comment cmt"># File lib/more/facets/uninheritable.rb, line 46</span>
|
110
110
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inherited</span>(<span class="ruby-identifier">klass</span>)
|
@@ -71,11 +71,11 @@
|
|
71
71
|
|
72
72
|
<div class="description"><h1><a href="UploadUtils.html">UploadUtils</a></h1>
|
73
73
|
<p>
|
74
|
-
Upload <a href="UploadUtils.html#
|
74
|
+
Upload <a href="UploadUtils.html#M000870">files</a> to host. These means of
|
75
75
|
uploading are current supported: <a
|
76
|
-
href="UploadUtils.html#
|
77
|
-
href="UploadUtils.html#
|
78
|
-
href="UploadUtils.html#
|
76
|
+
href="UploadUtils.html#M000866">ftp</a>, <a
|
77
|
+
href="UploadUtils.html#M000867">sftp</a>, scp and <a
|
78
|
+
href="UploadUtils.html#M000868">rsync</a>.
|
79
79
|
</p>
|
80
80
|
<pre>
|
81
81
|
user Username for host.
|
@@ -94,7 +94,7 @@ will be published to host‘s document root location.
|
|
94
94
|
</p>
|
95
95
|
<p>
|
96
96
|
If you need more control over which <a
|
97
|
-
href="UploadUtils.html#
|
97
|
+
href="UploadUtils.html#M000870">files</a> to publish where, you can use the
|
98
98
|
copy parameter instead. Provide an array of pattern strings in the form of
|
99
99
|
"{from} {to}". If the desitination is the host‘s document
|
100
100
|
root you do not need to specify the {to} part. For example:
|
@@ -103,10 +103,10 @@ root you do not need to specify the {to} part. For example:
|
|
103
103
|
copy = [ 'web/*', 'doc/api/* doc/api' ]
|
104
104
|
</pre>
|
105
105
|
<p>
|
106
|
-
The first copies the <a href="UploadUtils.html#
|
106
|
+
The first copies the <a href="UploadUtils.html#M000870">files</a> under
|
107
107
|
your project‘s web directory to the host‘s document root. The
|
108
108
|
second copies your projects doc/api <a
|
109
|
-
href="UploadUtils.html#
|
109
|
+
href="UploadUtils.html#M000870">files</a> to the doc/api location on the
|
110
110
|
host.
|
111
111
|
</p>
|
112
112
|
<p>
|
@@ -119,14 +119,14 @@ The internal template used for the outbound destination is
|
|
119
119
|
|
120
120
|
<div class="sectiontitle">Methods</div>
|
121
121
|
<ul>
|
122
|
-
<li><a href="#
|
123
|
-
<li><a href="#
|
124
|
-
<li><a href="#
|
125
|
-
<li><a href="#
|
126
|
-
<li><a href="#
|
127
|
-
<li><a href="#
|
128
|
-
<li><a href="#
|
129
|
-
<li><a href="#
|
122
|
+
<li><a href="#M000870">files</a></li>
|
123
|
+
<li><a href="#M000866">ftp</a></li>
|
124
|
+
<li><a href="#M000868">rsync</a></li>
|
125
|
+
<li><a href="#M000867">sftp</a></li>
|
126
|
+
<li><a href="#M000872">stage_linkdir</a></li>
|
127
|
+
<li><a href="#M000871">stage_transfer</a></li>
|
128
|
+
<li><a href="#M000865">upload</a></li>
|
129
|
+
<li><a href="#M000869">upload_parameters</a></li>
|
130
130
|
</ul>
|
131
131
|
|
132
132
|
|
@@ -137,17 +137,17 @@ The internal template used for the outbound destination is
|
|
137
137
|
<div class="sectiontitle">Public Instance methods</div>
|
138
138
|
<div class="method">
|
139
139
|
<div class="title">
|
140
|
-
<a name="
|
140
|
+
<a name="M000870"></a><b>files</b>( dir, copy )
|
141
141
|
</div>
|
142
142
|
<div class="description">
|
143
143
|
<p>
|
144
|
-
Put together the list of <a href="UploadUtils.html#
|
144
|
+
Put together the list of <a href="UploadUtils.html#M000870">files</a> to
|
145
145
|
copy.
|
146
146
|
</p>
|
147
147
|
</div>
|
148
148
|
<div class="sourcecode">
|
149
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
150
|
-
<div id="
|
149
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000870_source')" id="l_M000870_source">show source</a> ]</p>
|
150
|
+
<div id="M000870_source" class="dyn-source">
|
151
151
|
<pre>
|
152
152
|
<span class="ruby-comment cmt"># File lib/more/facets/uploadutils.rb, line 280</span>
|
153
153
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">files</span>( <span class="ruby-identifier">dir</span>, <span class="ruby-identifier">copy</span> )
|
@@ -175,18 +175,18 @@ copy.
|
|
175
175
|
</div>
|
176
176
|
<div class="method">
|
177
177
|
<div class="title">
|
178
|
-
<a name="
|
178
|
+
<a name="M000866"></a><b>ftp</b>( keys )
|
179
179
|
</div>
|
180
180
|
<div class="description">
|
181
181
|
<p>
|
182
|
-
Use <a href="UploadUtils.html#
|
183
|
-
href="UploadUtils.html#
|
184
|
-
href="UploadUtils.html#
|
182
|
+
Use <a href="UploadUtils.html#M000866">ftp</a> to <a
|
183
|
+
href="UploadUtils.html#M000865">upload</a> <a
|
184
|
+
href="UploadUtils.html#M000870">files</a>.
|
185
185
|
</p>
|
186
186
|
</div>
|
187
187
|
<div class="sourcecode">
|
188
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
189
|
-
<div id="
|
188
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000866_source')" id="l_M000866_source">show source</a> ]</p>
|
189
|
+
<div id="M000866_source" class="dyn-source">
|
190
190
|
<pre>
|
191
191
|
<span class="ruby-comment cmt"># File lib/more/facets/uploadutils.rb, line 116</span>
|
192
192
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ftp</span>( <span class="ruby-identifier">keys</span> )
|
@@ -228,18 +228,18 @@ href="UploadUtils.html#M000866">files</a>.
|
|
228
228
|
</div>
|
229
229
|
<div class="method">
|
230
230
|
<div class="title">
|
231
|
-
<a name="
|
231
|
+
<a name="M000868"></a><b>rsync</b>( keys )
|
232
232
|
</div>
|
233
233
|
<div class="description">
|
234
234
|
<p>
|
235
|
-
Use <a href="UploadUtils.html#
|
236
|
-
href="UploadUtils.html#
|
237
|
-
href="UploadUtils.html#
|
235
|
+
Use <a href="UploadUtils.html#M000868">rsync</a> to <a
|
236
|
+
href="UploadUtils.html#M000865">upload</a> <a
|
237
|
+
href="UploadUtils.html#M000870">files</a>.
|
238
238
|
</p>
|
239
239
|
</div>
|
240
240
|
<div class="sourcecode">
|
241
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
242
|
-
<div id="
|
241
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000868_source')" id="l_M000868_source">show source</a> ]</p>
|
242
|
+
<div id="M000868_source" class="dyn-source">
|
243
243
|
<pre>
|
244
244
|
<span class="ruby-comment cmt"># File lib/more/facets/uploadutils.rb, line 192</span>
|
245
245
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rsync</span>( <span class="ruby-identifier">keys</span> )
|
@@ -287,18 +287,18 @@ href="UploadUtils.html#M000866">files</a>.
|
|
287
287
|
</div>
|
288
288
|
<div class="method">
|
289
289
|
<div class="title">
|
290
|
-
<a name="
|
290
|
+
<a name="M000867"></a><b>sftp</b>( keys )
|
291
291
|
</div>
|
292
292
|
<div class="description">
|
293
293
|
<p>
|
294
|
-
Use <a href="UploadUtils.html#
|
295
|
-
href="UploadUtils.html#
|
296
|
-
href="UploadUtils.html#
|
294
|
+
Use <a href="UploadUtils.html#M000867">sftp</a> to <a
|
295
|
+
href="UploadUtils.html#M000865">upload</a> <a
|
296
|
+
href="UploadUtils.html#M000870">files</a>.
|
297
297
|
</p>
|
298
298
|
</div>
|
299
299
|
<div class="sourcecode">
|
300
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
301
|
-
<div id="
|
300
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000867_source')" id="l_M000867_source">show source</a> ]</p>
|
301
|
+
<div id="M000867_source" class="dyn-source">
|
302
302
|
<pre>
|
303
303
|
<span class="ruby-comment cmt"># File lib/more/facets/uploadutils.rb, line 154</span>
|
304
304
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sftp</span>( <span class="ruby-identifier">keys</span> )
|
@@ -340,7 +340,7 @@ href="UploadUtils.html#M000866">files</a>.
|
|
340
340
|
</div>
|
341
341
|
<div class="method">
|
342
342
|
<div class="title">
|
343
|
-
<a name="
|
343
|
+
<a name="M000872"></a><b>stage_linkdir</b>( dir, list )
|
344
344
|
</div>
|
345
345
|
<div class="description">
|
346
346
|
<p>
|
@@ -348,8 +348,8 @@ When using stage options this will create temporary linked location.
|
|
348
348
|
</p>
|
349
349
|
</div>
|
350
350
|
<div class="sourcecode">
|
351
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
352
|
-
<div id="
|
351
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000872_source')" id="l_M000872_source">show source</a> ]</p>
|
352
|
+
<div id="M000872_source" class="dyn-source">
|
353
353
|
<pre>
|
354
354
|
<span class="ruby-comment cmt"># File lib/more/facets/uploadutils.rb, line 326</span>
|
355
355
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stage_linkdir</span>( <span class="ruby-identifier">dir</span>, <span class="ruby-identifier">list</span> )
|
@@ -371,7 +371,7 @@ When using stage options this will create temporary linked location.
|
|
371
371
|
</div>
|
372
372
|
<div class="method">
|
373
373
|
<div class="title">
|
374
|
-
<a name="
|
374
|
+
<a name="M000871"></a><b>stage_transfer</b>( list )
|
375
375
|
</div>
|
376
376
|
<div class="description">
|
377
377
|
<p>
|
@@ -391,8 +391,8 @@ This is used to generate a from -> to list of the form:
|
|
391
391
|
</pre>
|
392
392
|
</div>
|
393
393
|
<div class="sourcecode">
|
394
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
395
|
-
<div id="
|
394
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000871_source')" id="l_M000871_source">show source</a> ]</p>
|
395
|
+
<div id="M000871_source" class="dyn-source">
|
396
396
|
<pre>
|
397
397
|
<span class="ruby-comment cmt"># File lib/more/facets/uploadutils.rb, line 311</span>
|
398
398
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stage_transfer</span>( <span class="ruby-identifier">list</span> )
|
@@ -413,7 +413,7 @@ This is used to generate a from -> to list of the form:
|
|
413
413
|
</div>
|
414
414
|
<div class="method">
|
415
415
|
<div class="title">
|
416
|
-
<a name="
|
416
|
+
<a name="M000865"></a><b>upload</b>( protocol, opts )
|
417
417
|
</div>
|
418
418
|
<div class="description">
|
419
419
|
<p>
|
@@ -421,8 +421,8 @@ Upload via given protocol.
|
|
421
421
|
</p>
|
422
422
|
</div>
|
423
423
|
<div class="sourcecode">
|
424
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
425
|
-
<div id="
|
424
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000865_source')" id="l_M000865_source">show source</a> ]</p>
|
425
|
+
<div id="M000865_source" class="dyn-source">
|
426
426
|
<pre>
|
427
427
|
<span class="ruby-comment cmt"># File lib/more/facets/uploadutils.rb, line 108</span>
|
428
428
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">upload</span>( <span class="ruby-identifier">protocol</span>, <span class="ruby-identifier">opts</span> )
|
@@ -434,7 +434,7 @@ Upload via given protocol.
|
|
434
434
|
</div>
|
435
435
|
<div class="method">
|
436
436
|
<div class="title">
|
437
|
-
<a name="
|
437
|
+
<a name="M000869"></a><b>upload_parameters</b>( keys )
|
438
438
|
</div>
|
439
439
|
<div class="description">
|
440
440
|
<p>
|
@@ -442,8 +442,8 @@ parse publishing options.
|
|
442
442
|
</p>
|
443
443
|
</div>
|
444
444
|
<div class="sourcecode">
|
445
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
446
|
-
<div id="
|
445
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000869_source')" id="l_M000869_source">show source</a> ]</p>
|
446
|
+
<div id="M000869_source" class="dyn-source">
|
447
447
|
<pre>
|
448
448
|
<span class="ruby-comment cmt"># File lib/more/facets/uploadutils.rb, line 236</span>
|
449
449
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">upload_parameters</span>( <span class="ruby-identifier">keys</span> )
|
@@ -87,19 +87,19 @@ version numbers.
|
|
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="#
|
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="#
|
90
|
+
<li><a href="#M000226"><=></a></li>
|
91
|
+
<li><a href="#M000227">=~</a></li>
|
92
|
+
<li><a href="#M000225">[]</a></li>
|
93
|
+
<li><a href="#M000232">constraint_lambda</a></li>
|
94
|
+
<li><a href="#M000224">inspect</a></li>
|
95
|
+
<li><a href="#M000228">major</a></li>
|
96
|
+
<li><a href="#M000231">method_missing</a></li>
|
97
|
+
<li><a href="#M000229">minor</a></li>
|
98
|
+
<li><a href="#M000221">new</a></li>
|
99
|
+
<li><a href="#M000233">parse_constraint</a></li>
|
100
|
+
<li><a href="#M000230">teeny</a></li>
|
101
|
+
<li><a href="#M000222">to_s</a></li>
|
102
|
+
<li><a href="#M000223">to_str</a></li>
|
103
103
|
</ul>
|
104
104
|
|
105
105
|
<div class="sectiontitle">Included Modules</div>
|
@@ -114,7 +114,7 @@ version numbers.
|
|
114
114
|
<div class="sectiontitle">Public Class methods</div>
|
115
115
|
<div class="method">
|
116
116
|
<div class="title">
|
117
|
-
<a name="
|
117
|
+
<a name="M000232"></a><b>constraint_lambda</b>( constraint )
|
118
118
|
</div>
|
119
119
|
<div class="description">
|
120
120
|
<p>
|
@@ -122,8 +122,8 @@ Parses a string constraint returning the operation as a lambda.
|
|
122
122
|
</p>
|
123
123
|
</div>
|
124
124
|
<div class="sourcecode">
|
125
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
126
|
-
<div id="
|
125
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000232_source')" id="l_M000232_source">show source</a> ]</p>
|
126
|
+
<div id="M000232_source" class="dyn-source">
|
127
127
|
<pre>
|
128
128
|
<span class="ruby-comment cmt"># File lib/more/facets/version.rb, line 99</span>
|
129
129
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">constraint_lambda</span>( <span class="ruby-identifier">constraint</span> )
|
@@ -136,11 +136,11 @@ Parses a string constraint returning the operation as a lambda.
|
|
136
136
|
</div>
|
137
137
|
<div class="method">
|
138
138
|
<div class="title">
|
139
|
-
<a name="
|
139
|
+
<a name="M000221"></a><b>new</b>( *args )
|
140
140
|
</div>
|
141
141
|
<div class="sourcecode">
|
142
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
143
|
-
<div id="
|
142
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000221_source')" id="l_M000221_source">show source</a> ]</p>
|
143
|
+
<div id="M000221_source" class="dyn-source">
|
144
144
|
<pre>
|
145
145
|
<span class="ruby-comment cmt"># File lib/more/facets/version.rb, line 40</span>
|
146
146
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>( <span class="ruby-operator">*</span><span class="ruby-identifier">args</span> )
|
@@ -153,11 +153,11 @@ Parses a string constraint returning the operation as a lambda.
|
|
153
153
|
</div>
|
154
154
|
<div class="method">
|
155
155
|
<div class="title">
|
156
|
-
<a name="
|
156
|
+
<a name="M000233"></a><b>parse_constraint</b>( constraint )
|
157
157
|
</div>
|
158
158
|
<div class="sourcecode">
|
159
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
160
|
-
<div id="
|
159
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000233_source')" id="l_M000233_source">show source</a> ]</p>
|
160
|
+
<div id="M000233_source" class="dyn-source">
|
161
161
|
<pre>
|
162
162
|
<span class="ruby-comment cmt"># File lib/more/facets/version.rb, line 104</span>
|
163
163
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">parse_constraint</span>( <span class="ruby-identifier">constraint</span> )
|
@@ -184,7 +184,7 @@ Parses a string constraint returning the operation as a lambda.
|
|
184
184
|
<div class="sectiontitle">Public Instance methods</div>
|
185
185
|
<div class="method">
|
186
186
|
<div class="title">
|
187
|
-
<a name="
|
187
|
+
<a name="M000226"></a><b><=></b>( other )
|
188
188
|
</div>
|
189
189
|
<div class="description">
|
190
190
|
<p>
|
@@ -192,8 +192,8 @@ Parses a string constraint returning the operation as a lambda.
|
|
192
192
|
</p>
|
193
193
|
</div>
|
194
194
|
<div class="sourcecode">
|
195
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
196
|
-
<div id="
|
195
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000226_source')" id="l_M000226_source">show source</a> ]</p>
|
196
|
+
<div id="M000226_source" class="dyn-source">
|
197
197
|
<pre>
|
198
198
|
<span class="ruby-comment cmt"># File lib/more/facets/version.rb, line 61</span>
|
199
199
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator"><=></span>( <span class="ruby-identifier">other</span> )
|
@@ -210,7 +210,7 @@ Parses a string constraint returning the operation as a lambda.
|
|
210
210
|
</div>
|
211
211
|
<div class="method">
|
212
212
|
<div class="title">
|
213
|
-
<a name="
|
213
|
+
<a name="M000227"></a><b>=~</b>( other )
|
214
214
|
</div>
|
215
215
|
<div class="description">
|
216
216
|
<p>
|
@@ -218,8 +218,8 @@ For pessimistic constraint (like ’~>’ in gems)
|
|
218
218
|
</p>
|
219
219
|
</div>
|
220
220
|
<div class="sourcecode">
|
221
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
222
|
-
<div id="
|
221
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000227_source')" id="l_M000227_source">show source</a> ]</p>
|
222
|
+
<div id="M000227_source" class="dyn-source">
|
223
223
|
<pre>
|
224
224
|
<span class="ruby-comment cmt"># File lib/more/facets/version.rb, line 72</span>
|
225
225
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">=~</span>( <span class="ruby-identifier">other</span> )
|
@@ -234,11 +234,11 @@ For pessimistic constraint (like ’~>’ in gems)
|
|
234
234
|
</div>
|
235
235
|
<div class="method">
|
236
236
|
<div class="title">
|
237
|
-
<a name="
|
237
|
+
<a name="M000225"></a><b>[]</b>(i)
|
238
238
|
</div>
|
239
239
|
<div class="sourcecode">
|
240
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
241
|
-
<div id="
|
240
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000225_source')" id="l_M000225_source">show source</a> ]</p>
|
241
|
+
<div id="M000225_source" class="dyn-source">
|
242
242
|
<pre>
|
243
243
|
<span class="ruby-comment cmt"># File lib/more/facets/version.rb, line 55</span>
|
244
244
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">i</span>)
|
@@ -250,11 +250,11 @@ For pessimistic constraint (like ’~>’ in gems)
|
|
250
250
|
</div>
|
251
251
|
<div class="method">
|
252
252
|
<div class="title">
|
253
|
-
<a name="
|
253
|
+
<a name="M000224"></a><b>inspect</b>()
|
254
254
|
</div>
|
255
255
|
<div class="sourcecode">
|
256
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
257
|
-
<div id="
|
256
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000224_source')" id="l_M000224_source">show source</a> ]</p>
|
257
|
+
<div id="M000224_source" class="dyn-source">
|
258
258
|
<pre>
|
259
259
|
<span class="ruby-comment cmt"># File lib/more/facets/version.rb, line 51</span>
|
260
260
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inspect</span>
|
@@ -266,7 +266,7 @@ For pessimistic constraint (like ’~>’ in gems)
|
|
266
266
|
</div>
|
267
267
|
<div class="method">
|
268
268
|
<div class="title">
|
269
|
-
<a name="
|
269
|
+
<a name="M000228"></a><b>major</b>()
|
270
270
|
</div>
|
271
271
|
<div class="description">
|
272
272
|
<p>
|
@@ -274,8 +274,8 @@ Major is the first number in the version series.
|
|
274
274
|
</p>
|
275
275
|
</div>
|
276
276
|
<div class="sourcecode">
|
277
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
278
|
-
<div id="
|
277
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000228_source')" id="l_M000228_source">show source</a> ]</p>
|
278
|
+
<div id="M000228_source" class="dyn-source">
|
279
279
|
<pre>
|
280
280
|
<span class="ruby-comment cmt"># File lib/more/facets/version.rb, line 81</span>
|
281
281
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">major</span> ; <span class="ruby-ivar">@self</span>[<span class="ruby-value">0</span>] ; <span class="ruby-keyword kw">end</span>
|
@@ -285,7 +285,7 @@ Major is the first number in the version series.
|
|
285
285
|
</div>
|
286
286
|
<div class="method">
|
287
287
|
<div class="title">
|
288
|
-
<a name="
|
288
|
+
<a name="M000231"></a><b>method_missing</b>( sym, *args, &blk )
|
289
289
|
</div>
|
290
290
|
<div class="description">
|
291
291
|
<p>
|
@@ -293,8 +293,8 @@ Delegate to the array.
|
|
293
293
|
</p>
|
294
294
|
</div>
|
295
295
|
<div class="sourcecode">
|
296
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
297
|
-
<div id="
|
296
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000231_source')" id="l_M000231_source">show source</a> ]</p>
|
297
|
+
<div id="M000231_source" class="dyn-source">
|
298
298
|
<pre>
|
299
299
|
<span class="ruby-comment cmt"># File lib/more/facets/version.rb, line 93</span>
|
300
300
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">method_missing</span>( <span class="ruby-identifier">sym</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">blk</span> )
|
@@ -306,7 +306,7 @@ Delegate to the array.
|
|
306
306
|
</div>
|
307
307
|
<div class="method">
|
308
308
|
<div class="title">
|
309
|
-
<a name="
|
309
|
+
<a name="M000229"></a><b>minor</b>()
|
310
310
|
</div>
|
311
311
|
<div class="description">
|
312
312
|
<p>
|
@@ -314,8 +314,8 @@ Minor is the second number in the version series.
|
|
314
314
|
</p>
|
315
315
|
</div>
|
316
316
|
<div class="sourcecode">
|
317
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
318
|
-
<div id="
|
317
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000229_source')" id="l_M000229_source">show source</a> ]</p>
|
318
|
+
<div id="M000229_source" class="dyn-source">
|
319
319
|
<pre>
|
320
320
|
<span class="ruby-comment cmt"># File lib/more/facets/version.rb, line 85</span>
|
321
321
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">minor</span> ; <span class="ruby-ivar">@self</span>[<span class="ruby-value">1</span>] <span class="ruby-operator">||</span> <span class="ruby-value">0</span> ; <span class="ruby-keyword kw">end</span>
|
@@ -325,7 +325,7 @@ Minor is the second number in the version series.
|
|
325
325
|
</div>
|
326
326
|
<div class="method">
|
327
327
|
<div class="title">
|
328
|
-
<a name="
|
328
|
+
<a name="M000230"></a><b>teeny</b>()
|
329
329
|
</div>
|
330
330
|
<div class="description">
|
331
331
|
<p>
|
@@ -333,8 +333,8 @@ Teeny is third number in the version series.
|
|
333
333
|
</p>
|
334
334
|
</div>
|
335
335
|
<div class="sourcecode">
|
336
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
337
|
-
<div id="
|
336
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000230_source')" id="l_M000230_source">show source</a> ]</p>
|
337
|
+
<div id="M000230_source" class="dyn-source">
|
338
338
|
<pre>
|
339
339
|
<span class="ruby-comment cmt"># File lib/more/facets/version.rb, line 89</span>
|
340
340
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">teeny</span> ; <span class="ruby-ivar">@self</span>[<span class="ruby-value">2</span>] <span class="ruby-operator">||</span> <span class="ruby-value">0</span> ; <span class="ruby-keyword kw">end</span>
|
@@ -344,11 +344,11 @@ Teeny is third number in the version series.
|
|
344
344
|
</div>
|
345
345
|
<div class="method">
|
346
346
|
<div class="title">
|
347
|
-
<a name="
|
347
|
+
<a name="M000222"></a><b>to_s</b>()
|
348
348
|
</div>
|
349
349
|
<div class="sourcecode">
|
350
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
351
|
-
<div id="
|
350
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000222_source')" id="l_M000222_source">show source</a> ]</p>
|
351
|
+
<div id="M000222_source" class="dyn-source">
|
352
352
|
<pre>
|
353
353
|
<span class="ruby-comment cmt"># File lib/more/facets/version.rb, line 45</span>
|
354
354
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span> ; <span class="ruby-ivar">@self</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">'.'</span>) ; <span class="ruby-keyword kw">end</span>
|
@@ -358,17 +358,17 @@ Teeny is third number in the version series.
|
|
358
358
|
</div>
|
359
359
|
<div class="method">
|
360
360
|
<div class="title">
|
361
|
-
<a name="
|
361
|
+
<a name="M000223"></a><b>to_str</b>()
|
362
362
|
</div>
|
363
363
|
<div class="description">
|
364
364
|
<p>
|
365
365
|
This is here only becuase File.join calls it instead of <a
|
366
|
-
href="VersionNumber.html#
|
366
|
+
href="VersionNumber.html#M000222">to_s</a>.
|
367
367
|
</p>
|
368
368
|
</div>
|
369
369
|
<div class="sourcecode">
|
370
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
371
|
-
<div id="
|
370
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000223_source')" id="l_M000223_source">show source</a> ]</p>
|
371
|
+
<div id="M000223_source" class="dyn-source">
|
372
372
|
<pre>
|
373
373
|
<span class="ruby-comment cmt"># File lib/more/facets/version.rb, line 49</span>
|
374
374
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_str</span> ; <span class="ruby-ivar">@self</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">'.'</span>) ; <span class="ruby-keyword kw">end</span>
|