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
@@ -100,22 +100,22 @@ of easily manipulating durations (timespans) and formatting them as well.
|
|
100
100
|
|
101
101
|
<div class="sectiontitle">Methods</div>
|
102
102
|
<ul>
|
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="#
|
116
|
-
<li><a href="#
|
117
|
-
<li><a href="#
|
118
|
-
<li><a href="#
|
103
|
+
<li><a href="#M000447">*</a></li>
|
104
|
+
<li><a href="#M000445">+</a></li>
|
105
|
+
<li><a href="#M000446">-</a></li>
|
106
|
+
<li><a href="#M000448">/</a></li>
|
107
|
+
<li><a href="#M000437"><=></a></li>
|
108
|
+
<li><a href="#M000439">days=</a></li>
|
109
|
+
<li><a href="#M000436">each</a></li>
|
110
|
+
<li><a href="#M000440">hours=</a></li>
|
111
|
+
<li><a href="#M000444">inspect</a></li>
|
112
|
+
<li><a href="#M000441">minutes=</a></li>
|
113
|
+
<li><a href="#M000433">new</a></li>
|
114
|
+
<li><a href="#M000435">seconds</a></li>
|
115
|
+
<li><a href="#M000442">seconds=</a></li>
|
116
|
+
<li><a href="#M000434">strftime</a></li>
|
117
|
+
<li><a href="#M000443">to_s</a></li>
|
118
|
+
<li><a href="#M000438">weeks=</a></li>
|
119
119
|
</ul>
|
120
120
|
|
121
121
|
<div class="sectiontitle">Included Modules</div>
|
@@ -197,7 +197,7 @@ of easily manipulating durations (timespans) and formatting them as well.
|
|
197
197
|
<div class="sectiontitle">Public Class methods</div>
|
198
198
|
<div class="method">
|
199
199
|
<div class="title">
|
200
|
-
<a name="
|
200
|
+
<a name="M000433"></a><b>new</b>(seconds_or_attr = 0)
|
201
201
|
</div>
|
202
202
|
<div class="description">
|
203
203
|
<p>
|
@@ -214,8 +214,8 @@ Initialize <a href="Duration.html">Duration</a> class.
|
|
214
214
|
</pre>
|
215
215
|
</div>
|
216
216
|
<div class="sourcecode">
|
217
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
218
|
-
<div id="
|
217
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000433_source')" id="l_M000433_source">show source</a> ]</p>
|
218
|
+
<div id="M000433_source" class="dyn-source">
|
219
219
|
<pre>
|
220
220
|
<span class="ruby-comment cmt"># File lib/more/facets/duration.rb, line 71</span>
|
221
221
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">seconds_or_attr</span> = <span class="ruby-value">0</span>)
|
@@ -250,7 +250,7 @@ Initialize <a href="Duration.html">Duration</a> class.
|
|
250
250
|
<div class="sectiontitle">Public Instance methods</div>
|
251
251
|
<div class="method">
|
252
252
|
<div class="title">
|
253
|
-
<a name="
|
253
|
+
<a name="M000447"></a><b>*</b>(other)
|
254
254
|
</div>
|
255
255
|
<div class="description">
|
256
256
|
<p>
|
@@ -267,8 +267,8 @@ Multiply two Durations.
|
|
267
267
|
</pre>
|
268
268
|
</div>
|
269
269
|
<div class="sourcecode">
|
270
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
271
|
-
<div id="
|
270
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000447_source')" id="l_M000447_source">show source</a> ]</p>
|
271
|
+
<div id="M000447_source" class="dyn-source">
|
272
272
|
<pre>
|
273
273
|
<span class="ruby-comment cmt"># File lib/more/facets/duration.rb, line 332</span>
|
274
274
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">*</span>(<span class="ruby-identifier">other</span>)
|
@@ -280,7 +280,7 @@ Multiply two Durations.
|
|
280
280
|
</div>
|
281
281
|
<div class="method">
|
282
282
|
<div class="title">
|
283
|
-
<a name="
|
283
|
+
<a name="M000445"></a><b>+</b>(other)
|
284
284
|
</div>
|
285
285
|
<div class="description">
|
286
286
|
<p>
|
@@ -297,8 +297,8 @@ Add to <a href="Duration.html">Duration</a>.
|
|
297
297
|
</pre>
|
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('M000445_source')" id="l_M000445_source">show source</a> ]</p>
|
301
|
+
<div id="M000445_source" class="dyn-source">
|
302
302
|
<pre>
|
303
303
|
<span class="ruby-comment cmt"># File lib/more/facets/duration.rb, line 306</span>
|
304
304
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">+</span>(<span class="ruby-identifier">other</span>)
|
@@ -310,7 +310,7 @@ Add to <a href="Duration.html">Duration</a>.
|
|
310
310
|
</div>
|
311
311
|
<div class="method">
|
312
312
|
<div class="title">
|
313
|
-
<a name="
|
313
|
+
<a name="M000446"></a><b>-</b>(other)
|
314
314
|
</div>
|
315
315
|
<div class="description">
|
316
316
|
<p>
|
@@ -327,8 +327,8 @@ Subtract from <a href="Duration.html">Duration</a>.
|
|
327
327
|
</pre>
|
328
328
|
</div>
|
329
329
|
<div class="sourcecode">
|
330
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
331
|
-
<div id="
|
330
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000446_source')" id="l_M000446_source">show source</a> ]</p>
|
331
|
+
<div id="M000446_source" class="dyn-source">
|
332
332
|
<pre>
|
333
333
|
<span class="ruby-comment cmt"># File lib/more/facets/duration.rb, line 319</span>
|
334
334
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">-</span>(<span class="ruby-identifier">other</span>)
|
@@ -340,7 +340,7 @@ Subtract from <a href="Duration.html">Duration</a>.
|
|
340
340
|
</div>
|
341
341
|
<div class="method">
|
342
342
|
<div class="title">
|
343
|
-
<a name="
|
343
|
+
<a name="M000448"></a><b>/</b>(other)
|
344
344
|
</div>
|
345
345
|
<div class="description">
|
346
346
|
<p>
|
@@ -357,8 +357,8 @@ Divide two Durations.
|
|
357
357
|
</pre>
|
358
358
|
</div>
|
359
359
|
<div class="sourcecode">
|
360
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
361
|
-
<div id="
|
360
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000448_source')" id="l_M000448_source">show source</a> ]</p>
|
361
|
+
<div id="M000448_source" class="dyn-source">
|
362
362
|
<pre>
|
363
363
|
<span class="ruby-comment cmt"># File lib/more/facets/duration.rb, line 345</span>
|
364
364
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">/</span>(<span class="ruby-identifier">other</span>)
|
@@ -370,7 +370,7 @@ Divide two Durations.
|
|
370
370
|
</div>
|
371
371
|
<div class="method">
|
372
372
|
<div class="title">
|
373
|
-
<a name="
|
373
|
+
<a name="M000437"></a><b><=></b>(other)
|
374
374
|
</div>
|
375
375
|
<div class="description">
|
376
376
|
<p>
|
@@ -385,8 +385,8 @@ Calls `<=>’ on Duration#total.
|
|
385
385
|
</pre>
|
386
386
|
</div>
|
387
387
|
<div class="sourcecode">
|
388
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
389
|
-
<div id="
|
388
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000437_source')" id="l_M000437_source">show source</a> ]</p>
|
389
|
+
<div id="M000437_source" class="dyn-source">
|
390
390
|
<pre>
|
391
391
|
<span class="ruby-comment cmt"># File lib/more/facets/duration.rb, line 194</span>
|
392
392
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator"><=></span>(<span class="ruby-identifier">other</span>)
|
@@ -398,7 +398,7 @@ Calls `<=>’ on Duration#total.
|
|
398
398
|
</div>
|
399
399
|
<div class="method">
|
400
400
|
<div class="title">
|
401
|
-
<a name="
|
401
|
+
<a name="M000439"></a><b>days=</b>(n)
|
402
402
|
</div>
|
403
403
|
<div class="description">
|
404
404
|
<p>
|
@@ -415,8 +415,8 @@ Set the number of days.
|
|
415
415
|
</pre>
|
416
416
|
</div>
|
417
417
|
<div class="sourcecode">
|
418
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
419
|
-
<div id="
|
418
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000439_source')" id="l_M000439_source">show source</a> ]</p>
|
419
|
+
<div id="M000439_source" class="dyn-source">
|
420
420
|
<pre>
|
421
421
|
<span class="ruby-comment cmt"># File lib/more/facets/duration.rb, line 220</span>
|
422
422
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">days=</span>(<span class="ruby-identifier">n</span>)
|
@@ -428,12 +428,12 @@ Set the number of days.
|
|
428
428
|
</div>
|
429
429
|
<div class="method">
|
430
430
|
<div class="title">
|
431
|
-
<a name="
|
431
|
+
<a name="M000436"></a><b>each</b>() {|part, time| ...}
|
432
432
|
</div>
|
433
433
|
<div class="description">
|
434
434
|
<p>
|
435
435
|
For iterating through the duration set of weeks, days, hours, minutes, and
|
436
|
-
<a href="Duration.html#
|
436
|
+
<a href="Duration.html#M000435">seconds</a>.
|
437
437
|
</p>
|
438
438
|
<p>
|
439
439
|
<b>Example</b>
|
@@ -455,8 +455,8 @@ For iterating through the duration set of weeks, days, hours, minutes, and
|
|
455
455
|
</pre>
|
456
456
|
</div>
|
457
457
|
<div class="sourcecode">
|
458
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
459
|
-
<div id="
|
458
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000436_source')" id="l_M000436_source">show source</a> ]</p>
|
459
|
+
<div id="M000436_source" class="dyn-source">
|
460
460
|
<pre>
|
461
461
|
<span class="ruby-comment cmt"># File lib/more/facets/duration.rb, line 176</span>
|
462
462
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each</span>
|
@@ -475,7 +475,7 @@ For iterating through the duration set of weeks, days, hours, minutes, and
|
|
475
475
|
</div>
|
476
476
|
<div class="method">
|
477
477
|
<div class="title">
|
478
|
-
<a name="
|
478
|
+
<a name="M000440"></a><b>hours=</b>(n)
|
479
479
|
</div>
|
480
480
|
<div class="description">
|
481
481
|
<p>
|
@@ -492,8 +492,8 @@ Set the number of hours.
|
|
492
492
|
</pre>
|
493
493
|
</div>
|
494
494
|
<div class="sourcecode">
|
495
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
496
|
-
<div id="
|
495
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000440_source')" id="l_M000440_source">show source</a> ]</p>
|
496
|
+
<div id="M000440_source" class="dyn-source">
|
497
497
|
<pre>
|
498
498
|
<span class="ruby-comment cmt"># File lib/more/facets/duration.rb, line 233</span>
|
499
499
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">hours=</span>(<span class="ruby-identifier">n</span>)
|
@@ -505,11 +505,11 @@ Set the number of hours.
|
|
505
505
|
</div>
|
506
506
|
<div class="method">
|
507
507
|
<div class="title">
|
508
|
-
<a name="
|
508
|
+
<a name="M000444"></a><b>inspect</b>()
|
509
509
|
</div>
|
510
510
|
<div class="description">
|
511
511
|
<p>
|
512
|
-
Inspection string—Similar to <a href="Duration.html#
|
512
|
+
Inspection string—Similar to <a href="Duration.html#M000443">to_s</a>
|
513
513
|
except that it has the class name.
|
514
514
|
</p>
|
515
515
|
<p>
|
@@ -521,8 +521,8 @@ except that it has the class name.
|
|
521
521
|
</pre>
|
522
522
|
</div>
|
523
523
|
<div class="sourcecode">
|
524
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
525
|
-
<div id="
|
524
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000444_source')" id="l_M000444_source">show source</a> ]</p>
|
525
|
+
<div id="M000444_source" class="dyn-source">
|
526
526
|
<pre>
|
527
527
|
<span class="ruby-comment cmt"># File lib/more/facets/duration.rb, line 293</span>
|
528
528
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inspect</span>
|
@@ -534,7 +534,7 @@ except that it has the class name.
|
|
534
534
|
</div>
|
535
535
|
<div class="method">
|
536
536
|
<div class="title">
|
537
|
-
<a name="
|
537
|
+
<a name="M000441"></a><b>minutes=</b>(n)
|
538
538
|
</div>
|
539
539
|
<div class="description">
|
540
540
|
<p>
|
@@ -551,8 +551,8 @@ Set the number of minutes.
|
|
551
551
|
</pre>
|
552
552
|
</div>
|
553
553
|
<div class="sourcecode">
|
554
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
555
|
-
<div id="
|
554
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000441_source')" id="l_M000441_source">show source</a> ]</p>
|
555
|
+
<div id="M000441_source" class="dyn-source">
|
556
556
|
<pre>
|
557
557
|
<span class="ruby-comment cmt"># File lib/more/facets/duration.rb, line 246</span>
|
558
558
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">minutes=</span>(<span class="ruby-identifier">n</span>)
|
@@ -564,13 +564,13 @@ Set the number of minutes.
|
|
564
564
|
</div>
|
565
565
|
<div class="method">
|
566
566
|
<div class="title">
|
567
|
-
<a name="
|
567
|
+
<a name="M000435"></a><b>seconds</b>(part = nil)
|
568
568
|
</div>
|
569
569
|
<div class="description">
|
570
570
|
<p>
|
571
|
-
Get the number of <a href="Duration.html#
|
571
|
+
Get the number of <a href="Duration.html#M000435">seconds</a> of a given
|
572
572
|
part, or simply just get the number of <a
|
573
|
-
href="Duration.html#
|
573
|
+
href="Duration.html#M000435">seconds</a>.
|
574
574
|
</p>
|
575
575
|
<p>
|
576
576
|
<b>Example</b>
|
@@ -589,8 +589,8 @@ href="Duration.html#M000425">seconds</a>.
|
|
589
589
|
</pre>
|
590
590
|
</div>
|
591
591
|
<div class="sourcecode">
|
592
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
593
|
-
<div id="
|
592
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000435_source')" id="l_M000435_source">show source</a> ]</p>
|
593
|
+
<div id="M000435_source" class="dyn-source">
|
594
594
|
<pre>
|
595
595
|
<span class="ruby-comment cmt"># File lib/more/facets/duration.rb, line 148</span>
|
596
596
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">seconds</span>(<span class="ruby-identifier">part</span> = <span class="ruby-keyword kw">nil</span>)
|
@@ -609,7 +609,7 @@ href="Duration.html#M000425">seconds</a>.
|
|
609
609
|
</div>
|
610
610
|
<div class="method">
|
611
611
|
<div class="title">
|
612
|
-
<a name="
|
612
|
+
<a name="M000442"></a><b>seconds=</b>(n)
|
613
613
|
</div>
|
614
614
|
<div class="description">
|
615
615
|
<p>
|
@@ -626,8 +626,8 @@ Set the number of minutes.
|
|
626
626
|
</pre>
|
627
627
|
</div>
|
628
628
|
<div class="sourcecode">
|
629
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
630
|
-
<div id="
|
629
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000442_source')" id="l_M000442_source">show source</a> ]</p>
|
630
|
+
<div id="M000442_source" class="dyn-source">
|
631
631
|
<pre>
|
632
632
|
<span class="ruby-comment cmt"># File lib/more/facets/duration.rb, line 259</span>
|
633
633
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">seconds=</span>(<span class="ruby-identifier">n</span>)
|
@@ -639,7 +639,7 @@ Set the number of minutes.
|
|
639
639
|
</div>
|
640
640
|
<div class="method">
|
641
641
|
<div class="title">
|
642
|
-
<a name="
|
642
|
+
<a name="M000434"></a><b>strftime</b>(fmt)
|
643
643
|
</div>
|
644
644
|
<div class="description">
|
645
645
|
<p>
|
@@ -669,8 +669,8 @@ Format duration.
|
|
669
669
|
</pre>
|
670
670
|
</div>
|
671
671
|
<div class="sourcecode">
|
672
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
673
|
-
<div id="
|
672
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000434_source')" id="l_M000434_source">show source</a> ]</p>
|
673
|
+
<div id="M000434_source" class="dyn-source">
|
674
674
|
<pre>
|
675
675
|
<span class="ruby-comment cmt"># File lib/more/facets/duration.rb, line 117</span>
|
676
676
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">strftime</span>(<span class="ruby-identifier">fmt</span>)
|
@@ -693,7 +693,7 @@ Format duration.
|
|
693
693
|
</div>
|
694
694
|
<div class="method">
|
695
695
|
<div class="title">
|
696
|
-
<a name="
|
696
|
+
<a name="M000443"></a><b>to_s</b>()
|
697
697
|
</div>
|
698
698
|
<div class="description">
|
699
699
|
<p>
|
@@ -710,8 +710,8 @@ Friendly, human-readable string representation of the duration.
|
|
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('M000443_source')" id="l_M000443_source">show source</a> ]</p>
|
714
|
+
<div id="M000443_source" class="dyn-source">
|
715
715
|
<pre>
|
716
716
|
<span class="ruby-comment cmt"># File lib/more/facets/duration.rb, line 272</span>
|
717
717
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
|
@@ -733,7 +733,7 @@ Friendly, human-readable string representation of the duration.
|
|
733
733
|
</div>
|
734
734
|
<div class="method">
|
735
735
|
<div class="title">
|
736
|
-
<a name="
|
736
|
+
<a name="M000438"></a><b>weeks=</b>(n)
|
737
737
|
</div>
|
738
738
|
<div class="description">
|
739
739
|
<p>
|
@@ -750,8 +750,8 @@ Set the number of weeks.
|
|
750
750
|
</pre>
|
751
751
|
</div>
|
752
752
|
<div class="sourcecode">
|
753
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
754
|
-
<div id="
|
753
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000438_source')" id="l_M000438_source">show source</a> ]</p>
|
754
|
+
<div id="M000438_source" class="dyn-source">
|
755
755
|
<pre>
|
756
756
|
<span class="ruby-comment cmt"># File lib/more/facets/duration.rb, line 207</span>
|
757
757
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">weeks=</span>(<span class="ruby-identifier">n</span>)
|
@@ -76,16 +76,16 @@
|
|
76
76
|
|
77
77
|
<div class="sectiontitle">Methods</div>
|
78
78
|
<ul>
|
79
|
-
<li><a href="#
|
80
|
-
<li><a href="#
|
81
|
-
<li><a href="#
|
82
|
-
<li><a href="#
|
83
|
-
<li><a href="#
|
84
|
-
<li><a href="#
|
85
|
-
<li><a href="#
|
86
|
-
<li><a href="#
|
87
|
-
<li><a href="#
|
88
|
-
<li><a href="#
|
79
|
+
<li><a href="#M000957">elements</a></li>
|
80
|
+
<li><a href="#M000958">elements!</a></li>
|
81
|
+
<li><a href="#M000951">elementwise</a></li>
|
82
|
+
<li><a href="#M000955">every</a></li>
|
83
|
+
<li><a href="#M000956">every!</a></li>
|
84
|
+
<li><a href="#M000952">ewise</a></li>
|
85
|
+
<li><a href="#M000954">per</a></li>
|
86
|
+
<li><a href="#M000949">threaded_map</a></li>
|
87
|
+
<li><a href="#M000950">threaded_map_send</a></li>
|
88
|
+
<li><a href="#M000953">to_elem</a></li>
|
89
89
|
</ul>
|
90
90
|
|
91
91
|
|
@@ -100,32 +100,32 @@ Class <a href="Enumerable/Enumerator.html" class="link">Enumerable::Enumerator</
|
|
100
100
|
<div class="sectiontitle">Public Instance methods</div>
|
101
101
|
<div class="method">
|
102
102
|
<div class="title">
|
103
|
-
<a name="
|
103
|
+
<a name="M000957"></a><b>elements</b>()
|
104
104
|
</div>
|
105
105
|
<div class="description">
|
106
106
|
<p>
|
107
|
-
Alias for <a href="Enumerable.html#
|
107
|
+
Alias for <a href="Enumerable.html#M000955">every</a>
|
108
108
|
</p>
|
109
109
|
</div>
|
110
110
|
</div>
|
111
111
|
<div class="method">
|
112
112
|
<div class="title">
|
113
|
-
<a name="
|
113
|
+
<a name="M000958"></a><b>elements!</b>()
|
114
114
|
</div>
|
115
115
|
<div class="description">
|
116
116
|
<p>
|
117
|
-
Alias for <a href="Enumerable.html#
|
117
|
+
Alias for <a href="Enumerable.html#M000955">every</a>!
|
118
118
|
</p>
|
119
119
|
</div>
|
120
120
|
</div>
|
121
121
|
<div class="method">
|
122
122
|
<div class="title">
|
123
|
-
<a name="
|
123
|
+
<a name="M000951"></a><b>elementwise</b>(count=1)
|
124
124
|
</div>
|
125
125
|
<div class="description">
|
126
126
|
<p>
|
127
|
-
Returns an <a href="Enumerable.html#
|
128
|
-
designed to make R-like <a href="Enumerable.html#
|
127
|
+
Returns an <a href="Enumerable.html#M000951">elementwise</a> Functor
|
128
|
+
designed to make R-like <a href="Enumerable.html#M000951">elementwise</a>
|
129
129
|
operations possible.
|
130
130
|
</p>
|
131
131
|
<pre>
|
@@ -136,11 +136,11 @@ operations possible.
|
|
136
136
|
</div>
|
137
137
|
<div class="aka">
|
138
138
|
This method is also aliased as
|
139
|
-
<a href="Enumerable.html#
|
139
|
+
<a href="Enumerable.html#M000952">ewise</a>
|
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('M000951_source')" id="l_M000951_source">show source</a> ]</p>
|
143
|
+
<div id="M000951_source" class="dyn-source">
|
144
144
|
<pre>
|
145
145
|
<span class="ruby-comment cmt"># File lib/more/facets/elementwise.rb, line 16</span>
|
146
146
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">elementwise</span>(<span class="ruby-identifier">count</span>=<span class="ruby-value">1</span>)
|
@@ -181,12 +181,12 @@ operations possible.
|
|
181
181
|
</div>
|
182
182
|
<div class="method">
|
183
183
|
<div class="title">
|
184
|
-
<a name="
|
184
|
+
<a name="M000955"></a><b>every</b>()
|
185
185
|
</div>
|
186
186
|
<div class="description">
|
187
187
|
<p>
|
188
188
|
Returns an elemental object. This allows you to map a method on to <a
|
189
|
-
href="Enumerable.html#
|
189
|
+
href="Enumerable.html#M000955">every</a> element.
|
190
190
|
</p>
|
191
191
|
<pre>
|
192
192
|
r = [1,2,3].every + 3 #=> [4,5,6]
|
@@ -194,11 +194,11 @@ href="Enumerable.html#M000951">every</a> element.
|
|
194
194
|
</div>
|
195
195
|
<div class="aka">
|
196
196
|
This method is also aliased as
|
197
|
-
<a href="Enumerable.html#
|
197
|
+
<a href="Enumerable.html#M000957">elements</a>
|
198
198
|
</div>
|
199
199
|
<div class="sourcecode">
|
200
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
201
|
-
<div id="
|
200
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000955_source')" id="l_M000955_source">show source</a> ]</p>
|
201
|
+
<div id="M000955_source" class="dyn-source">
|
202
202
|
<pre>
|
203
203
|
<span class="ruby-comment cmt"># File lib/more/facets/elementor.rb, line 57</span>
|
204
204
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">every</span>
|
@@ -210,20 +210,20 @@ href="Enumerable.html#M000951">every</a> element.
|
|
210
210
|
</div>
|
211
211
|
<div class="method">
|
212
212
|
<div class="title">
|
213
|
-
<a name="
|
213
|
+
<a name="M000956"></a><b>every!</b>()
|
214
214
|
</div>
|
215
215
|
<div class="description">
|
216
216
|
<p>
|
217
|
-
In place version of <a href="Enumerable.html#
|
217
|
+
In place version of <a href="Enumerable.html#M000955">every</a>.
|
218
218
|
</p>
|
219
219
|
</div>
|
220
220
|
<div class="aka">
|
221
221
|
This method is also aliased as
|
222
|
-
<a href="Enumerable.html#
|
222
|
+
<a href="Enumerable.html#M000958">elements!</a>
|
223
223
|
</div>
|
224
224
|
<div class="sourcecode">
|
225
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
226
|
-
<div id="
|
225
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000956_source')" id="l_M000956_source">show source</a> ]</p>
|
226
|
+
<div id="M000956_source" class="dyn-source">
|
227
227
|
<pre>
|
228
228
|
<span class="ruby-comment cmt"># File lib/more/facets/elementor.rb, line 63</span>
|
229
229
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">every!</span>
|
@@ -236,21 +236,21 @@ In place version of <a href="Enumerable.html#M000951">every</a>.
|
|
236
236
|
</div>
|
237
237
|
<div class="method">
|
238
238
|
<div class="title">
|
239
|
-
<a name="
|
239
|
+
<a name="M000952"></a><b>ewise</b>(count=1)
|
240
240
|
</div>
|
241
241
|
<div class="description">
|
242
242
|
<p>
|
243
|
-
Alias for <a href="Enumerable.html#
|
243
|
+
Alias for <a href="Enumerable.html#M000951">elementwise</a>
|
244
244
|
</p>
|
245
245
|
</div>
|
246
246
|
</div>
|
247
247
|
<div class="method">
|
248
248
|
<div class="title">
|
249
|
-
<a name="
|
249
|
+
<a name="M000954"></a><b>per</b>()
|
250
250
|
</div>
|
251
251
|
<div class="sourcecode">
|
252
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
253
|
-
<div id="
|
252
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000954_source')" id="l_M000954_source">show source</a> ]</p>
|
253
|
+
<div id="M000954_source" class="dyn-source">
|
254
254
|
<pre>
|
255
255
|
<span class="ruby-comment cmt"># File lib/more/facets/elementor.rb, line 46</span>
|
256
256
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">per</span>
|
@@ -264,7 +264,7 @@ Alias for <a href="Enumerable.html#M000947">elementwise</a>
|
|
264
264
|
</div>
|
265
265
|
<div class="method">
|
266
266
|
<div class="title">
|
267
|
-
<a name="
|
267
|
+
<a name="M000949"></a><b>threaded_map</b>( {|| ...}
|
268
268
|
</div>
|
269
269
|
<div class="description">
|
270
270
|
<p>
|
@@ -275,8 +275,8 @@ Like Enumerable#map but each iteration is processed via a separate thread.
|
|
275
275
|
</pre>
|
276
276
|
</div>
|
277
277
|
<div class="sourcecode">
|
278
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
279
|
-
<div id="
|
278
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000949_source')" id="l_M000949_source">show source</a> ]</p>
|
279
|
+
<div id="M000949_source" class="dyn-source">
|
280
280
|
<pre>
|
281
281
|
<span class="ruby-comment cmt"># File lib/more/facets/thread.rb, line 37</span>
|
282
282
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">threaded_map</span> <span class="ruby-comment cmt">#:yield:</span>
|
@@ -288,7 +288,7 @@ Like Enumerable#map but each iteration is processed via a separate thread.
|
|
288
288
|
</div>
|
289
289
|
<div class="method">
|
290
290
|
<div class="title">
|
291
|
-
<a name="
|
291
|
+
<a name="M000950"></a><b>threaded_map_send</b>(meth, *args, &block)
|
292
292
|
</div>
|
293
293
|
<div class="description">
|
294
294
|
<p>
|
@@ -300,8 +300,8 @@ thread.
|
|
300
300
|
</pre>
|
301
301
|
</div>
|
302
302
|
<div class="sourcecode">
|
303
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
304
|
-
<div id="
|
303
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000950_source')" id="l_M000950_source">show source</a> ]</p>
|
304
|
+
<div id="M000950_source" class="dyn-source">
|
305
305
|
<pre>
|
306
306
|
<span class="ruby-comment cmt"># File lib/more/facets/thread.rb, line 46</span>
|
307
307
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">threaded_map_send</span>(<span class="ruby-identifier">meth</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -313,7 +313,7 @@ thread.
|
|
313
313
|
</div>
|
314
314
|
<div class="method">
|
315
315
|
<div class="title">
|
316
|
-
<a name="
|
316
|
+
<a name="M000953"></a><b>to_elem</b>(meth=nil)
|
317
317
|
</div>
|
318
318
|
<div class="description">
|
319
319
|
<p>
|
@@ -321,8 +321,8 @@ Create <a href="Enumerable/Elementor.html">Elementor</a>.
|
|
321
321
|
</p>
|
322
322
|
</div>
|
323
323
|
<div class="sourcecode">
|
324
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
325
|
-
<div id="
|
324
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000953_source')" id="l_M000953_source">show source</a> ]</p>
|
325
|
+
<div id="M000953_source" class="dyn-source">
|
326
326
|
<pre>
|
327
327
|
<span class="ruby-comment cmt"># File lib/more/facets/elementor.rb, line 42</span>
|
328
328
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_elem</span>(<span class="ruby-identifier">meth</span>=<span class="ruby-keyword kw">nil</span>)
|