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
@@ -92,21 +92,21 @@ Object
|
|
92
92
|
|
93
93
|
<div class="sectiontitle">Methods</div>
|
94
94
|
<ul>
|
95
|
-
<li><a href="#
|
96
|
-
<li><a href="#
|
97
|
-
<li><a href="#
|
98
|
-
<li><a href="#
|
99
|
-
<li><a href="#
|
100
|
-
<li><a href="#
|
101
|
-
<li><a href="#
|
102
|
-
<li><a href="#
|
103
|
-
<li><a href="#
|
104
|
-
<li><a href="#
|
105
|
-
<li><a href="#
|
106
|
-
<li><a href="#
|
107
|
-
<li><a href="#
|
108
|
-
<li><a href="#
|
109
|
-
<li><a href="#
|
95
|
+
<li><a href="#M000118">chomp</a></li>
|
96
|
+
<li><a href="#M000125">chomp</a></li>
|
97
|
+
<li><a href="#M000116">generate</a></li>
|
98
|
+
<li><a href="#M000123">generate</a></li>
|
99
|
+
<li><a href="#M000126">lchomp</a></li>
|
100
|
+
<li><a href="#M000119">lchomp</a></li>
|
101
|
+
<li><a href="#M000120">not?</a></li>
|
102
|
+
<li><a href="#M000113">not?</a></li>
|
103
|
+
<li><a href="#M000117">succ</a></li>
|
104
|
+
<li><a href="#M000124">succ</a></li>
|
105
|
+
<li><a href="#M000115">to_proc</a></li>
|
106
|
+
<li><a href="#M000122">to_proc</a></li>
|
107
|
+
<li><a href="#M000112">variablize</a></li>
|
108
|
+
<li><a href="#M000121">~</a></li>
|
109
|
+
<li><a href="#M000114">~</a></li>
|
110
110
|
</ul>
|
111
111
|
|
112
112
|
|
@@ -117,7 +117,7 @@ Object
|
|
117
117
|
<div class="sectiontitle">Public Class methods</div>
|
118
118
|
<div class="method">
|
119
119
|
<div class="title">
|
120
|
-
<a name="
|
120
|
+
<a name="M000116"></a><b>generate</b>(key=nil)
|
121
121
|
</div>
|
122
122
|
<div class="description">
|
123
123
|
<p>
|
@@ -138,8 +138,8 @@ If <tt>key</tt> is given the new symbol will be prefixed with it.
|
|
138
138
|
</pre>
|
139
139
|
</div>
|
140
140
|
<div class="sourcecode">
|
141
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
142
|
-
<div id="
|
141
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000116_source')" id="l_M000116_source">show source</a> ]</p>
|
142
|
+
<div id="M000116_source" class="dyn-source">
|
143
143
|
<pre>
|
144
144
|
<span class="ruby-comment cmt"># File lib/core/facets/symbol/generate.rb, line 15</span>
|
145
145
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">generate</span>(<span class="ruby-identifier">key</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -155,7 +155,7 @@ If <tt>key</tt> is given the new symbol will be prefixed with it.
|
|
155
155
|
</div>
|
156
156
|
<div class="method">
|
157
157
|
<div class="title">
|
158
|
-
<a name="
|
158
|
+
<a name="M000123"></a><b>generate</b>(key=nil)
|
159
159
|
</div>
|
160
160
|
<div class="description">
|
161
161
|
<p>
|
@@ -176,8 +176,8 @@ If <tt>key</tt> is given the new symbol will be prefixed with it.
|
|
176
176
|
</pre>
|
177
177
|
</div>
|
178
178
|
<div class="sourcecode">
|
179
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
180
|
-
<div id="
|
179
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000123_source')" id="l_M000123_source">show source</a> ]</p>
|
180
|
+
<div id="M000123_source" class="dyn-source">
|
181
181
|
<pre>
|
182
182
|
<span class="ruby-comment cmt"># File lib/core/facets/symbol/generate.rb, line 15</span>
|
183
183
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">generate</span>(<span class="ruby-identifier">key</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -194,7 +194,7 @@ If <tt>key</tt> is given the new symbol will be prefixed with it.
|
|
194
194
|
<div class="sectiontitle">Public Instance methods</div>
|
195
195
|
<div class="method">
|
196
196
|
<div class="title">
|
197
|
-
<a name="
|
197
|
+
<a name="M000118"></a><b>chomp</b>(seperator)
|
198
198
|
</div>
|
199
199
|
<div class="description">
|
200
200
|
<p>
|
@@ -207,8 +207,8 @@ Just like String#chomp.
|
|
207
207
|
</pre>
|
208
208
|
</div>
|
209
209
|
<div class="sourcecode">
|
210
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
211
|
-
<div id="
|
210
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000118_source')" id="l_M000118_source">show source</a> ]</p>
|
211
|
+
<div id="M000118_source" class="dyn-source">
|
212
212
|
<pre>
|
213
213
|
<span class="ruby-comment cmt"># File lib/core/facets/symbol/chomp.rb, line 9</span>
|
214
214
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chomp</span>(<span class="ruby-identifier">seperator</span>)
|
@@ -220,7 +220,7 @@ Just like String#chomp.
|
|
220
220
|
</div>
|
221
221
|
<div class="method">
|
222
222
|
<div class="title">
|
223
|
-
<a name="
|
223
|
+
<a name="M000125"></a><b>chomp</b>(seperator)
|
224
224
|
</div>
|
225
225
|
<div class="description">
|
226
226
|
<p>
|
@@ -233,8 +233,8 @@ Just like String#chomp.
|
|
233
233
|
</pre>
|
234
234
|
</div>
|
235
235
|
<div class="sourcecode">
|
236
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
237
|
-
<div id="
|
236
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000125_source')" id="l_M000125_source">show source</a> ]</p>
|
237
|
+
<div id="M000125_source" class="dyn-source">
|
238
238
|
<pre>
|
239
239
|
<span class="ruby-comment cmt"># File lib/core/facets/symbol/chomp.rb, line 9</span>
|
240
240
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chomp</span>(<span class="ruby-identifier">seperator</span>)
|
@@ -246,11 +246,11 @@ Just like String#chomp.
|
|
246
246
|
</div>
|
247
247
|
<div class="method">
|
248
248
|
<div class="title">
|
249
|
-
<a name="
|
249
|
+
<a name="M000126"></a><b>lchomp</b>(seperator)
|
250
250
|
</div>
|
251
251
|
<div class="description">
|
252
252
|
<p>
|
253
|
-
Just like <a href="String.html#
|
253
|
+
Just like <a href="String.html#M000507">String#lchomp</a>.
|
254
254
|
</p>
|
255
255
|
<pre>
|
256
256
|
:ab.lchomp(:a) #=> :b
|
@@ -259,8 +259,8 @@ Just like <a href="String.html#M000530">String#lchomp</a>.
|
|
259
259
|
</pre>
|
260
260
|
</div>
|
261
261
|
<div class="sourcecode">
|
262
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
263
|
-
<div id="
|
262
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000126_source')" id="l_M000126_source">show source</a> ]</p>
|
263
|
+
<div id="M000126_source" class="dyn-source">
|
264
264
|
<pre>
|
265
265
|
<span class="ruby-comment cmt"># File lib/core/facets/symbol/chomp.rb, line 19</span>
|
266
266
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lchomp</span>(<span class="ruby-identifier">seperator</span>)
|
@@ -272,11 +272,11 @@ Just like <a href="String.html#M000530">String#lchomp</a>.
|
|
272
272
|
</div>
|
273
273
|
<div class="method">
|
274
274
|
<div class="title">
|
275
|
-
<a name="
|
275
|
+
<a name="M000119"></a><b>lchomp</b>(seperator)
|
276
276
|
</div>
|
277
277
|
<div class="description">
|
278
278
|
<p>
|
279
|
-
Just like <a href="String.html#
|
279
|
+
Just like <a href="String.html#M000507">String#lchomp</a>.
|
280
280
|
</p>
|
281
281
|
<pre>
|
282
282
|
:ab.lchomp(:a) #=> :b
|
@@ -285,8 +285,8 @@ Just like <a href="String.html#M000530">String#lchomp</a>.
|
|
285
285
|
</pre>
|
286
286
|
</div>
|
287
287
|
<div class="sourcecode">
|
288
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
289
|
-
<div id="
|
288
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000119_source')" id="l_M000119_source">show source</a> ]</p>
|
289
|
+
<div id="M000119_source" class="dyn-source">
|
290
290
|
<pre>
|
291
291
|
<span class="ruby-comment cmt"># File lib/core/facets/symbol/chomp.rb, line 19</span>
|
292
292
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lchomp</span>(<span class="ruby-identifier">seperator</span>)
|
@@ -298,7 +298,7 @@ Just like <a href="String.html#M000530">String#lchomp</a>.
|
|
298
298
|
</div>
|
299
299
|
<div class="method">
|
300
300
|
<div class="title">
|
301
|
-
<a name="
|
301
|
+
<a name="M000120"></a><b>not?</b>()
|
302
302
|
</div>
|
303
303
|
<div class="description">
|
304
304
|
<p>
|
@@ -312,8 +312,8 @@ Does a symbol have a "not" sign?
|
|
312
312
|
</pre>
|
313
313
|
</div>
|
314
314
|
<div class="sourcecode">
|
315
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
316
|
-
<div id="
|
315
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000120_source')" id="l_M000120_source">show source</a> ]</p>
|
316
|
+
<div id="M000120_source" class="dyn-source">
|
317
317
|
<pre>
|
318
318
|
<span class="ruby-comment cmt"># File lib/core/facets/symbol/not.rb, line 10</span>
|
319
319
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">not?</span>
|
@@ -325,7 +325,7 @@ Does a symbol have a "not" sign?
|
|
325
325
|
</div>
|
326
326
|
<div class="method">
|
327
327
|
<div class="title">
|
328
|
-
<a name="
|
328
|
+
<a name="M000113"></a><b>not?</b>()
|
329
329
|
</div>
|
330
330
|
<div class="description">
|
331
331
|
<p>
|
@@ -339,8 +339,8 @@ Does a symbol have a "not" sign?
|
|
339
339
|
</pre>
|
340
340
|
</div>
|
341
341
|
<div class="sourcecode">
|
342
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
343
|
-
<div id="
|
342
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000113_source')" id="l_M000113_source">show source</a> ]</p>
|
343
|
+
<div id="M000113_source" class="dyn-source">
|
344
344
|
<pre>
|
345
345
|
<span class="ruby-comment cmt"># File lib/core/facets/symbol/not.rb, line 10</span>
|
346
346
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">not?</span>
|
@@ -352,7 +352,7 @@ Does a symbol have a "not" sign?
|
|
352
352
|
</div>
|
353
353
|
<div class="method">
|
354
354
|
<div class="title">
|
355
|
-
<a name="
|
355
|
+
<a name="M000117"></a><b>succ</b>()
|
356
356
|
</div>
|
357
357
|
<div class="description">
|
358
358
|
<p>
|
@@ -366,8 +366,8 @@ uses String#succ and then converts it back to a symbol.
|
|
366
366
|
</pre>
|
367
367
|
</div>
|
368
368
|
<div class="sourcecode">
|
369
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
370
|
-
<div id="
|
369
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000117_source')" id="l_M000117_source">show source</a> ]</p>
|
370
|
+
<div id="M000117_source" class="dyn-source">
|
371
371
|
<pre>
|
372
372
|
<span class="ruby-comment cmt"># File lib/core/facets/symbol/succ.rb, line 13</span>
|
373
373
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">succ</span>
|
@@ -379,7 +379,7 @@ uses String#succ and then converts it back to a symbol.
|
|
379
379
|
</div>
|
380
380
|
<div class="method">
|
381
381
|
<div class="title">
|
382
|
-
<a name="
|
382
|
+
<a name="M000124"></a><b>succ</b>()
|
383
383
|
</div>
|
384
384
|
<div class="description">
|
385
385
|
<p>
|
@@ -393,8 +393,8 @@ uses String#succ and then converts it back to a symbol.
|
|
393
393
|
</pre>
|
394
394
|
</div>
|
395
395
|
<div class="sourcecode">
|
396
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
397
|
-
<div id="
|
396
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000124_source')" id="l_M000124_source">show source</a> ]</p>
|
397
|
+
<div id="M000124_source" class="dyn-source">
|
398
398
|
<pre>
|
399
399
|
<span class="ruby-comment cmt"># File lib/core/facets/symbol/succ.rb, line 13</span>
|
400
400
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">succ</span>
|
@@ -406,7 +406,7 @@ uses String#succ and then converts it back to a symbol.
|
|
406
406
|
</div>
|
407
407
|
<div class="method">
|
408
408
|
<div class="title">
|
409
|
-
<a name="
|
409
|
+
<a name="M000115"></a><b>to_proc</b>()
|
410
410
|
</div>
|
411
411
|
<div class="description">
|
412
412
|
<p>
|
@@ -438,8 +438,8 @@ CREDIT: Florian Gross (orignal) CREDIT: Nobuhiro Imai (current)
|
|
438
438
|
</p>
|
439
439
|
</div>
|
440
440
|
<div class="sourcecode">
|
441
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
442
|
-
<div id="
|
441
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000115_source')" id="l_M000115_source">show source</a> ]</p>
|
442
|
+
<div id="M000115_source" class="dyn-source">
|
443
443
|
<pre>
|
444
444
|
<span class="ruby-comment cmt"># File lib/core/facets/symbol/to_proc.rb, line 27</span>
|
445
445
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_proc</span>
|
@@ -451,7 +451,7 @@ CREDIT: Florian Gross (orignal) CREDIT: Nobuhiro Imai (current)
|
|
451
451
|
</div>
|
452
452
|
<div class="method">
|
453
453
|
<div class="title">
|
454
|
-
<a name="
|
454
|
+
<a name="M000122"></a><b>to_proc</b>()
|
455
455
|
</div>
|
456
456
|
<div class="description">
|
457
457
|
<p>
|
@@ -483,8 +483,8 @@ CREDIT: Florian Gross (orignal) CREDIT: Nobuhiro Imai (current)
|
|
483
483
|
</p>
|
484
484
|
</div>
|
485
485
|
<div class="sourcecode">
|
486
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
487
|
-
<div id="
|
486
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000122_source')" id="l_M000122_source">show source</a> ]</p>
|
487
|
+
<div id="M000122_source" class="dyn-source">
|
488
488
|
<pre>
|
489
489
|
<span class="ruby-comment cmt"># File lib/core/facets/symbol/to_proc.rb, line 27</span>
|
490
490
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_proc</span>
|
@@ -496,7 +496,7 @@ CREDIT: Florian Gross (orignal) CREDIT: Nobuhiro Imai (current)
|
|
496
496
|
</div>
|
497
497
|
<div class="method">
|
498
498
|
<div class="title">
|
499
|
-
<a name="
|
499
|
+
<a name="M000112"></a><b>variablize</b>()
|
500
500
|
</div>
|
501
501
|
<div class="description">
|
502
502
|
<p>
|
@@ -505,8 +505,8 @@ variable name. This also replaces non-valid characters with underscores.
|
|
505
505
|
</p>
|
506
506
|
</div>
|
507
507
|
<div class="sourcecode">
|
508
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
509
|
-
<div id="
|
508
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000112_source')" id="l_M000112_source">show source</a> ]</p>
|
509
|
+
<div id="M000112_source" class="dyn-source">
|
510
510
|
<pre>
|
511
511
|
<span class="ruby-comment cmt"># File lib/core/facets/metaid.rb, line 140</span>
|
512
512
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">variablize</span>
|
@@ -518,7 +518,7 @@ variable name. This also replaces non-valid characters with underscores.
|
|
518
518
|
</div>
|
519
519
|
<div class="method">
|
520
520
|
<div class="title">
|
521
|
-
<a name="
|
521
|
+
<a name="M000121"></a><b>~</b>()
|
522
522
|
</div>
|
523
523
|
<div class="description">
|
524
524
|
<p>
|
@@ -531,8 +531,8 @@ Add a "not" sign to the front of a symbol.
|
|
531
531
|
</pre>
|
532
532
|
</div>
|
533
533
|
<div class="sourcecode">
|
534
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
535
|
-
<div id="
|
534
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000121_source')" id="l_M000121_source">show source</a> ]</p>
|
535
|
+
<div id="M000121_source" class="dyn-source">
|
536
536
|
<pre>
|
537
537
|
<span class="ruby-comment cmt"># File lib/core/facets/symbol/not.rb, line 20</span>
|
538
538
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">~@</span>
|
@@ -548,7 +548,7 @@ Add a "not" sign to the front of a symbol.
|
|
548
548
|
</div>
|
549
549
|
<div class="method">
|
550
550
|
<div class="title">
|
551
|
-
<a name="
|
551
|
+
<a name="M000114"></a><b>~</b>()
|
552
552
|
</div>
|
553
553
|
<div class="description">
|
554
554
|
<p>
|
@@ -561,8 +561,8 @@ Add a "not" sign to the front of a symbol.
|
|
561
561
|
</pre>
|
562
562
|
</div>
|
563
563
|
<div class="sourcecode">
|
564
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
565
|
-
<div id="
|
564
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000114_source')" id="l_M000114_source">show source</a> ]</p>
|
565
|
+
<div id="M000114_source" class="dyn-source">
|
566
566
|
<pre>
|
567
567
|
<span class="ruby-comment cmt"># File lib/core/facets/symbol/not.rb, line 20</span>
|
568
568
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">~@</span>
|
@@ -97,28 +97,28 @@ Object
|
|
97
97
|
|
98
98
|
<div class="sectiontitle">Methods</div>
|
99
99
|
<ul>
|
100
|
-
<li><a href="#
|
101
|
-
<li><a href="#
|
102
|
-
<li><a href="#
|
103
|
-
<li><a href="#
|
104
|
-
<li><a href="#
|
105
|
-
<li><a href="#
|
106
|
-
<li><a href="#
|
107
|
-
<li><a href="#
|
108
|
-
<li><a href="#
|
109
|
-
<li><a href="#
|
110
|
-
<li><a href="#
|
111
|
-
<li><a href="#
|
112
|
-
<li><a href="#
|
113
|
-
<li><a href="#
|
114
|
-
<li><a href="#
|
115
|
-
<li><a href="#
|
116
|
-
<li><a href="#
|
117
|
-
<li><a href="#
|
118
|
-
<li><a href="#
|
119
|
-
<li><a href="#
|
120
|
-
<li><a href="#
|
121
|
-
<li><a href="#
|
100
|
+
<li><a href="#M000082">ago</a></li>
|
101
|
+
<li><a href="#M000071">ago</a></li>
|
102
|
+
<li><a href="#M000086">change</a></li>
|
103
|
+
<li><a href="#M000075">change</a></li>
|
104
|
+
<li><a href="#M000068">elapse</a></li>
|
105
|
+
<li><a href="#M000079">elapse</a></li>
|
106
|
+
<li><a href="#M000072">hence</a></li>
|
107
|
+
<li><a href="#M000083">hence</a></li>
|
108
|
+
<li><a href="#M000073">in</a></li>
|
109
|
+
<li><a href="#M000084">in</a></li>
|
110
|
+
<li><a href="#M000070">round</a></li>
|
111
|
+
<li><a href="#M000081">round</a></li>
|
112
|
+
<li><a href="#M000087">set</a></li>
|
113
|
+
<li><a href="#M000076">set</a></li>
|
114
|
+
<li><a href="#M000088">stamp</a></li>
|
115
|
+
<li><a href="#M000077">stamp</a></li>
|
116
|
+
<li><a href="#M000078">stamp</a></li>
|
117
|
+
<li><a href="#M000089">stamp</a></li>
|
118
|
+
<li><a href="#M000074">to_time</a></li>
|
119
|
+
<li><a href="#M000085">to_time</a></li>
|
120
|
+
<li><a href="#M000080">trunc</a></li>
|
121
|
+
<li><a href="#M000069">trunc</a></li>
|
122
122
|
</ul>
|
123
123
|
|
124
124
|
|
@@ -142,11 +142,11 @@ Object
|
|
142
142
|
<div class="sectiontitle">Public Class methods</div>
|
143
143
|
<div class="method">
|
144
144
|
<div class="title">
|
145
|
-
<a name="
|
145
|
+
<a name="M000068"></a><b>elapse</b>() {|| ...}
|
146
146
|
</div>
|
147
147
|
<div class="description">
|
148
148
|
<p>
|
149
|
-
Tracks the <a href="Time.html#
|
149
|
+
Tracks the <a href="Time.html#M000068">elapse</a> time of a code block.
|
150
150
|
</p>
|
151
151
|
<pre>
|
152
152
|
Time.elapse { sleep 1 } #=> 0.999188899993896
|
@@ -155,8 +155,8 @@ Tracks the <a href="Time.html#M000070">elapse</a> time of a code block.
|
|
155
155
|
</pre>
|
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('M000068_source')" id="l_M000068_source">show source</a> ]</p>
|
159
|
+
<div id="M000068_source" class="dyn-source">
|
160
160
|
<pre>
|
161
161
|
<span class="ruby-comment cmt"># File lib/core/facets/time/elapse.rb, line 9</span>
|
162
162
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">elapse</span>
|
@@ -171,11 +171,11 @@ Tracks the <a href="Time.html#M000070">elapse</a> time of a code block.
|
|
171
171
|
</div>
|
172
172
|
<div class="method">
|
173
173
|
<div class="title">
|
174
|
-
<a name="
|
174
|
+
<a name="M000079"></a><b>elapse</b>() {|| ...}
|
175
175
|
</div>
|
176
176
|
<div class="description">
|
177
177
|
<p>
|
178
|
-
Tracks the <a href="Time.html#
|
178
|
+
Tracks the <a href="Time.html#M000068">elapse</a> time of a code block.
|
179
179
|
</p>
|
180
180
|
<pre>
|
181
181
|
Time.elapse { sleep 1 } #=> 0.999188899993896
|
@@ -184,8 +184,8 @@ Tracks the <a href="Time.html#M000070">elapse</a> time of a code block.
|
|
184
184
|
</pre>
|
185
185
|
</div>
|
186
186
|
<div class="sourcecode">
|
187
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
188
|
-
<div id="
|
187
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000079_source')" id="l_M000079_source">show source</a> ]</p>
|
188
|
+
<div id="M000079_source" class="dyn-source">
|
189
189
|
<pre>
|
190
190
|
<span class="ruby-comment cmt"># File lib/core/facets/time/elapse.rb, line 9</span>
|
191
191
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">elapse</span>
|
@@ -200,20 +200,20 @@ Tracks the <a href="Time.html#M000070">elapse</a> time of a code block.
|
|
200
200
|
</div>
|
201
201
|
<div class="method">
|
202
202
|
<div class="title">
|
203
|
-
<a name="
|
203
|
+
<a name="M000088"></a><b>stamp</b>(*args)
|
204
204
|
</div>
|
205
205
|
<div class="description">
|
206
206
|
<p>
|
207
|
-
Produce time <a href="Time.html#
|
208
|
-
href="Time.html#
|
207
|
+
Produce time <a href="Time.html#M000077">stamp</a> for Time.now. See <a
|
208
|
+
href="Time.html#M000077">stamp</a>.
|
209
209
|
</p>
|
210
210
|
<pre>
|
211
211
|
CREDIT: Trans
|
212
212
|
</pre>
|
213
213
|
</div>
|
214
214
|
<div class="sourcecode">
|
215
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
216
|
-
<div id="
|
215
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000088_source')" id="l_M000088_source">show source</a> ]</p>
|
216
|
+
<div id="M000088_source" class="dyn-source">
|
217
217
|
<pre>
|
218
218
|
<span class="ruby-comment cmt"># File lib/core/facets/time/stamp.rb, line 22</span>
|
219
219
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">stamp</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
@@ -225,20 +225,20 @@ href="Time.html#M000079">stamp</a>.
|
|
225
225
|
</div>
|
226
226
|
<div class="method">
|
227
227
|
<div class="title">
|
228
|
-
<a name="
|
228
|
+
<a name="M000077"></a><b>stamp</b>(*args)
|
229
229
|
</div>
|
230
230
|
<div class="description">
|
231
231
|
<p>
|
232
|
-
Produce time <a href="Time.html#
|
233
|
-
href="Time.html#
|
232
|
+
Produce time <a href="Time.html#M000077">stamp</a> for Time.now. See <a
|
233
|
+
href="Time.html#M000077">stamp</a>.
|
234
234
|
</p>
|
235
235
|
<pre>
|
236
236
|
CREDIT: Trans
|
237
237
|
</pre>
|
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('M000077_source')" id="l_M000077_source">show source</a> ]</p>
|
241
|
+
<div id="M000077_source" class="dyn-source">
|
242
242
|
<pre>
|
243
243
|
<span class="ruby-comment cmt"># File lib/core/facets/time/stamp.rb, line 22</span>
|
244
244
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">stamp</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
@@ -251,17 +251,17 @@ href="Time.html#M000079">stamp</a>.
|
|
251
251
|
<div class="sectiontitle">Public Instance methods</div>
|
252
252
|
<div class="method">
|
253
253
|
<div class="title">
|
254
|
-
<a name="
|
254
|
+
<a name="M000082"></a><b>ago</b>(number, units=:seconds)
|
255
255
|
</div>
|
256
256
|
<div class="description">
|
257
257
|
<p>
|
258
258
|
Returns a new <a href="Time.html">Time</a> representing the time a number
|
259
|
-
of time-units <a href="Time.html#
|
259
|
+
of time-units <a href="Time.html#M000071">ago</a>.
|
260
260
|
</p>
|
261
261
|
</div>
|
262
262
|
<div class="sourcecode">
|
263
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
264
|
-
<div id="
|
263
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000082_source')" id="l_M000082_source">show source</a> ]</p>
|
264
|
+
<div id="M000082_source" class="dyn-source">
|
265
265
|
<pre>
|
266
266
|
<span class="ruby-comment cmt"># File lib/core/facets/time/hence.rb, line 8</span>
|
267
267
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ago</span>(<span class="ruby-identifier">number</span>, <span class="ruby-identifier">units</span>=<span class="ruby-identifier">:seconds</span>)
|
@@ -293,17 +293,17 @@ of time-units <a href="Time.html#M000073">ago</a>.
|
|
293
293
|
</div>
|
294
294
|
<div class="method">
|
295
295
|
<div class="title">
|
296
|
-
<a name="
|
296
|
+
<a name="M000071"></a><b>ago</b>(number, units=:seconds)
|
297
297
|
</div>
|
298
298
|
<div class="description">
|
299
299
|
<p>
|
300
300
|
Returns a new <a href="Time.html">Time</a> representing the time a number
|
301
|
-
of time-units <a href="Time.html#
|
301
|
+
of time-units <a href="Time.html#M000071">ago</a>.
|
302
302
|
</p>
|
303
303
|
</div>
|
304
304
|
<div class="sourcecode">
|
305
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
306
|
-
<div id="
|
305
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000071_source')" id="l_M000071_source">show source</a> ]</p>
|
306
|
+
<div id="M000071_source" class="dyn-source">
|
307
307
|
<pre>
|
308
308
|
<span class="ruby-comment cmt"># File lib/core/facets/time/hence.rb, line 8</span>
|
309
309
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ago</span>(<span class="ruby-identifier">number</span>, <span class="ruby-identifier">units</span>=<span class="ruby-identifier">:seconds</span>)
|
@@ -335,7 +335,7 @@ of time-units <a href="Time.html#M000073">ago</a>.
|
|
335
335
|
</div>
|
336
336
|
<div class="method">
|
337
337
|
<div class="title">
|
338
|
-
<a name="
|
338
|
+
<a name="M000086"></a><b>change</b>(options)
|
339
339
|
</div>
|
340
340
|
<div class="description">
|
341
341
|
<p>
|
@@ -343,8 +343,8 @@ Returns a new <a href="Time.html">Time</a> where one or more of the
|
|
343
343
|
elements have been changed according to the <tt>options</tt> parameter. The
|
344
344
|
time options (hour, minute, sec, usec) reset cascadingly, so if only the
|
345
345
|
hour is passed, then minute, sec, and usec is <a
|
346
|
-
href="Time.html#
|
347
|
-
then sec and usec is <a href="Time.html#
|
346
|
+
href="Time.html#M000076">set</a> to 0. If the hour and minute is passed,
|
347
|
+
then sec and usec is <a href="Time.html#M000076">set</a> to 0.
|
348
348
|
</p>
|
349
349
|
<pre>
|
350
350
|
t = Time.now #=> Sat Dec 01 14:10:15 -0500 2007
|
@@ -354,8 +354,8 @@ then sec and usec is <a href="Time.html#M000078">set</a> to 0.
|
|
354
354
|
</pre>
|
355
355
|
</div>
|
356
356
|
<div class="sourcecode">
|
357
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
358
|
-
<div id="
|
357
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000086_source')" id="l_M000086_source">show source</a> ]</p>
|
358
|
+
<div id="M000086_source" class="dyn-source">
|
359
359
|
<pre>
|
360
360
|
<span class="ruby-comment cmt"># File lib/core/facets/time/change.rb, line 15</span>
|
361
361
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">change</span>(<span class="ruby-identifier">options</span>)
|
@@ -376,7 +376,7 @@ then sec and usec is <a href="Time.html#M000078">set</a> to 0.
|
|
376
376
|
</div>
|
377
377
|
<div class="method">
|
378
378
|
<div class="title">
|
379
|
-
<a name="
|
379
|
+
<a name="M000075"></a><b>change</b>(options)
|
380
380
|
</div>
|
381
381
|
<div class="description">
|
382
382
|
<p>
|
@@ -384,8 +384,8 @@ Returns a new <a href="Time.html">Time</a> where one or more of the
|
|
384
384
|
elements have been changed according to the <tt>options</tt> parameter. The
|
385
385
|
time options (hour, minute, sec, usec) reset cascadingly, so if only the
|
386
386
|
hour is passed, then minute, sec, and usec is <a
|
387
|
-
href="Time.html#
|
388
|
-
then sec and usec is <a href="Time.html#
|
387
|
+
href="Time.html#M000076">set</a> to 0. If the hour and minute is passed,
|
388
|
+
then sec and usec is <a href="Time.html#M000076">set</a> to 0.
|
389
389
|
</p>
|
390
390
|
<pre>
|
391
391
|
t = Time.now #=> Sat Dec 01 14:10:15 -0500 2007
|
@@ -395,8 +395,8 @@ then sec and usec is <a href="Time.html#M000078">set</a> to 0.
|
|
395
395
|
</pre>
|
396
396
|
</div>
|
397
397
|
<div class="sourcecode">
|
398
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
399
|
-
<div id="
|
398
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000075_source')" id="l_M000075_source">show source</a> ]</p>
|
399
|
+
<div id="M000075_source" class="dyn-source">
|
400
400
|
<pre>
|
401
401
|
<span class="ruby-comment cmt"># File lib/core/facets/time/change.rb, line 15</span>
|
402
402
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">change</span>(<span class="ruby-identifier">options</span>)
|
@@ -417,22 +417,22 @@ then sec and usec is <a href="Time.html#M000078">set</a> to 0.
|
|
417
417
|
</div>
|
418
418
|
<div class="method">
|
419
419
|
<div class="title">
|
420
|
-
<a name="
|
420
|
+
<a name="M000072"></a><b>hence</b>(number, units=:seconds)
|
421
421
|
</div>
|
422
422
|
<div class="description">
|
423
423
|
<p>
|
424
424
|
Returns a new <a href="Time.html">Time</a> representing the time a number
|
425
|
-
of time-units <a href="Time.html#
|
425
|
+
of time-units <a href="Time.html#M000072">hence</a>.
|
426
426
|
</p>
|
427
427
|
</div>
|
428
428
|
<div class="aka">
|
429
429
|
This method is also aliased as
|
430
|
-
<a href="Time.html#
|
431
|
-
<a href="Time.html#
|
430
|
+
<a href="Time.html#M000073">in</a>
|
431
|
+
<a href="Time.html#M000084">in</a>
|
432
432
|
</div>
|
433
433
|
<div class="sourcecode">
|
434
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
435
|
-
<div id="
|
434
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000072_source')" id="l_M000072_source">show source</a> ]</p>
|
435
|
+
<div id="M000072_source" class="dyn-source">
|
436
436
|
<pre>
|
437
437
|
<span class="ruby-comment cmt"># File lib/core/facets/time/hence.rb, line 35</span>
|
438
438
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">hence</span>(<span class="ruby-identifier">number</span>, <span class="ruby-identifier">units</span>=<span class="ruby-identifier">:seconds</span>)
|
@@ -463,17 +463,17 @@ of time-units <a href="Time.html#M000074">hence</a>.
|
|
463
463
|
</div>
|
464
464
|
<div class="method">
|
465
465
|
<div class="title">
|
466
|
-
<a name="
|
466
|
+
<a name="M000083"></a><b>hence</b>(number, units=:seconds)
|
467
467
|
</div>
|
468
468
|
<div class="description">
|
469
469
|
<p>
|
470
470
|
Returns a new <a href="Time.html">Time</a> representing the time a number
|
471
|
-
of time-units <a href="Time.html#
|
471
|
+
of time-units <a href="Time.html#M000072">hence</a>.
|
472
472
|
</p>
|
473
473
|
</div>
|
474
474
|
<div class="sourcecode">
|
475
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
476
|
-
<div id="
|
475
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000083_source')" id="l_M000083_source">show source</a> ]</p>
|
476
|
+
<div id="M000083_source" class="dyn-source">
|
477
477
|
<pre>
|
478
478
|
<span class="ruby-comment cmt"># File lib/core/facets/time/hence.rb, line 35</span>
|
479
479
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">hence</span>(<span class="ruby-identifier">number</span>, <span class="ruby-identifier">units</span>=<span class="ruby-identifier">:seconds</span>)
|
@@ -504,31 +504,31 @@ of time-units <a href="Time.html#M000074">hence</a>.
|
|
504
504
|
</div>
|
505
505
|
<div class="method">
|
506
506
|
<div class="title">
|
507
|
-
<a name="
|
507
|
+
<a name="M000073"></a><b>in</b>(number, units=:seconds)
|
508
508
|
</div>
|
509
509
|
<div class="description">
|
510
510
|
<p>
|
511
|
-
Alias for <a href="Time.html#
|
511
|
+
Alias for <a href="Time.html#M000072">hence</a>
|
512
512
|
</p>
|
513
513
|
</div>
|
514
514
|
</div>
|
515
515
|
<div class="method">
|
516
516
|
<div class="title">
|
517
|
-
<a name="
|
517
|
+
<a name="M000084"></a><b>in</b>(number, units=:seconds)
|
518
518
|
</div>
|
519
519
|
<div class="description">
|
520
520
|
<p>
|
521
|
-
Alias for <a href="Time.html#
|
521
|
+
Alias for <a href="Time.html#M000072">hence</a>
|
522
522
|
</p>
|
523
523
|
</div>
|
524
524
|
</div>
|
525
525
|
<div class="method">
|
526
526
|
<div class="title">
|
527
|
-
<a name="
|
527
|
+
<a name="M000070"></a><b>round</b>(amount)
|
528
528
|
</div>
|
529
529
|
<div class="description">
|
530
530
|
<p>
|
531
|
-
Round time at the nearest range (<a href="Time.html#
|
531
|
+
Round time at the nearest range (<a href="Time.html#M000073">in</a>
|
532
532
|
seconds).
|
533
533
|
</p>
|
534
534
|
<pre>
|
@@ -539,8 +539,8 @@ seconds).
|
|
539
539
|
</pre>
|
540
540
|
</div>
|
541
541
|
<div class="sourcecode">
|
542
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
543
|
-
<div id="
|
542
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000070_source')" id="l_M000070_source">show source</a> ]</p>
|
543
|
+
<div id="M000070_source" class="dyn-source">
|
544
544
|
<pre>
|
545
545
|
<span class="ruby-comment cmt"># File lib/core/facets/time/round.rb, line 12</span>
|
546
546
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">round</span>(<span class="ruby-identifier">amount</span>)
|
@@ -552,11 +552,11 @@ seconds).
|
|
552
552
|
</div>
|
553
553
|
<div class="method">
|
554
554
|
<div class="title">
|
555
|
-
<a name="
|
555
|
+
<a name="M000081"></a><b>round</b>(amount)
|
556
556
|
</div>
|
557
557
|
<div class="description">
|
558
558
|
<p>
|
559
|
-
Round time at the nearest range (<a href="Time.html#
|
559
|
+
Round time at the nearest range (<a href="Time.html#M000073">in</a>
|
560
560
|
seconds).
|
561
561
|
</p>
|
562
562
|
<pre>
|
@@ -567,8 +567,8 @@ seconds).
|
|
567
567
|
</pre>
|
568
568
|
</div>
|
569
569
|
<div class="sourcecode">
|
570
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
571
|
-
<div id="
|
570
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000081_source')" id="l_M000081_source">show source</a> ]</p>
|
571
|
+
<div id="M000081_source" class="dyn-source">
|
572
572
|
<pre>
|
573
573
|
<span class="ruby-comment cmt"># File lib/core/facets/time/round.rb, line 12</span>
|
574
574
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">round</span>(<span class="ruby-identifier">amount</span>)
|
@@ -580,24 +580,24 @@ seconds).
|
|
580
580
|
</div>
|
581
581
|
<div class="method">
|
582
582
|
<div class="title">
|
583
|
-
<a name="
|
583
|
+
<a name="M000087"></a><b>set</b>(options)
|
584
584
|
</div>
|
585
585
|
<div class="description">
|
586
586
|
<p>
|
587
|
-
Like <a href="Time.html#
|
587
|
+
Like <a href="Time.html#M000075">change</a> but does not reset earlier
|
588
588
|
times.
|
589
589
|
</p>
|
590
590
|
<p>
|
591
591
|
NOTE: It would be better, probably if this were called "<a
|
592
|
-
href="Time.html#
|
592
|
+
href="Time.html#M000075">change</a>".
|
593
593
|
</p>
|
594
594
|
<pre>
|
595
595
|
and that #change were called "reset".
|
596
596
|
</pre>
|
597
597
|
</div>
|
598
598
|
<div class="sourcecode">
|
599
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
600
|
-
<div id="
|
599
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000087_source')" id="l_M000087_source">show source</a> ]</p>
|
600
|
+
<div id="M000087_source" class="dyn-source">
|
601
601
|
<pre>
|
602
602
|
<span class="ruby-comment cmt"># File lib/core/facets/time/change.rb, line 33</span>
|
603
603
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set</span>(<span class="ruby-identifier">options</span>)
|
@@ -618,24 +618,24 @@ href="Time.html#M000077">change</a>".
|
|
618
618
|
</div>
|
619
619
|
<div class="method">
|
620
620
|
<div class="title">
|
621
|
-
<a name="
|
621
|
+
<a name="M000076"></a><b>set</b>(options)
|
622
622
|
</div>
|
623
623
|
<div class="description">
|
624
624
|
<p>
|
625
|
-
Like <a href="Time.html#
|
625
|
+
Like <a href="Time.html#M000075">change</a> but does not reset earlier
|
626
626
|
times.
|
627
627
|
</p>
|
628
628
|
<p>
|
629
629
|
NOTE: It would be better, probably if this were called "<a
|
630
|
-
href="Time.html#
|
630
|
+
href="Time.html#M000075">change</a>".
|
631
631
|
</p>
|
632
632
|
<pre>
|
633
633
|
and that #change were called "reset".
|
634
634
|
</pre>
|
635
635
|
</div>
|
636
636
|
<div class="sourcecode">
|
637
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
638
|
-
<div id="
|
637
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000076_source')" id="l_M000076_source">show source</a> ]</p>
|
638
|
+
<div id="M000076_source" class="dyn-source">
|
639
639
|
<pre>
|
640
640
|
<span class="ruby-comment cmt"># File lib/core/facets/time/change.rb, line 33</span>
|
641
641
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set</span>(<span class="ruby-identifier">options</span>)
|
@@ -656,11 +656,11 @@ href="Time.html#M000077">change</a>".
|
|
656
656
|
</div>
|
657
657
|
<div class="method">
|
658
658
|
<div class="title">
|
659
|
-
<a name="
|
659
|
+
<a name="M000078"></a><b>stamp</b>(fmt = nil)
|
660
660
|
</div>
|
661
661
|
<div class="description">
|
662
662
|
<p>
|
663
|
-
Create a time <a href="Time.html#
|
663
|
+
Create a time <a href="Time.html#M000077">stamp</a>.
|
664
664
|
</p>
|
665
665
|
<pre>
|
666
666
|
Time.now.stamp(:short) #=> "01 Dec 15:15"
|
@@ -673,8 +673,8 @@ Supported formats come from the Time::FORMAT constant.
|
|
673
673
|
</pre>
|
674
674
|
</div>
|
675
675
|
<div class="sourcecode">
|
676
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
677
|
-
<div id="
|
676
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000078_source')" id="l_M000078_source">show source</a> ]</p>
|
677
|
+
<div id="M000078_source" class="dyn-source">
|
678
678
|
<pre>
|
679
679
|
<span class="ruby-comment cmt"># File lib/core/facets/time/stamp.rb, line 34</span>
|
680
680
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stamp</span>(<span class="ruby-identifier">fmt</span> = <span class="ruby-keyword kw">nil</span>)
|
@@ -689,11 +689,11 @@ Supported formats come from the Time::FORMAT constant.
|
|
689
689
|
</div>
|
690
690
|
<div class="method">
|
691
691
|
<div class="title">
|
692
|
-
<a name="
|
692
|
+
<a name="M000089"></a><b>stamp</b>(fmt = nil)
|
693
693
|
</div>
|
694
694
|
<div class="description">
|
695
695
|
<p>
|
696
|
-
Create a time <a href="Time.html#
|
696
|
+
Create a time <a href="Time.html#M000077">stamp</a>.
|
697
697
|
</p>
|
698
698
|
<pre>
|
699
699
|
Time.now.stamp(:short) #=> "01 Dec 15:15"
|
@@ -706,8 +706,8 @@ Supported formats come from the Time::FORMAT constant.
|
|
706
706
|
</pre>
|
707
707
|
</div>
|
708
708
|
<div class="sourcecode">
|
709
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
710
|
-
<div id="
|
709
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000089_source')" id="l_M000089_source">show source</a> ]</p>
|
710
|
+
<div id="M000089_source" class="dyn-source">
|
711
711
|
<pre>
|
712
712
|
<span class="ruby-comment cmt"># File lib/core/facets/time/stamp.rb, line 34</span>
|
713
713
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stamp</span>(<span class="ruby-identifier">fmt</span> = <span class="ruby-keyword kw">nil</span>)
|
@@ -722,7 +722,7 @@ Supported formats come from the Time::FORMAT constant.
|
|
722
722
|
</div>
|
723
723
|
<div class="method">
|
724
724
|
<div class="title">
|
725
|
-
<a name="
|
725
|
+
<a name="M000074"></a><b>to_time</b>()
|
726
726
|
</div>
|
727
727
|
<div class="description">
|
728
728
|
<p>
|
@@ -730,8 +730,8 @@ To be able to keep Dates and Times interchangeable on conversions.
|
|
730
730
|
</p>
|
731
731
|
</div>
|
732
732
|
<div class="sourcecode">
|
733
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
734
|
-
<div id="
|
733
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000074_source')" id="l_M000074_source">show source</a> ]</p>
|
734
|
+
<div id="M000074_source" class="dyn-source">
|
735
735
|
<pre>
|
736
736
|
<span class="ruby-comment cmt"># File lib/core/facets/time/to_time.rb, line 8</span>
|
737
737
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_time</span>
|
@@ -743,7 +743,7 @@ To be able to keep Dates and Times interchangeable on conversions.
|
|
743
743
|
</div>
|
744
744
|
<div class="method">
|
745
745
|
<div class="title">
|
746
|
-
<a name="
|
746
|
+
<a name="M000085"></a><b>to_time</b>()
|
747
747
|
</div>
|
748
748
|
<div class="description">
|
749
749
|
<p>
|
@@ -751,8 +751,8 @@ To be able to keep Dates and Times interchangeable on conversions.
|
|
751
751
|
</p>
|
752
752
|
</div>
|
753
753
|
<div class="sourcecode">
|
754
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
755
|
-
<div id="
|
754
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000085_source')" id="l_M000085_source">show source</a> ]</p>
|
755
|
+
<div id="M000085_source" class="dyn-source">
|
756
756
|
<pre>
|
757
757
|
<span class="ruby-comment cmt"># File lib/core/facets/time/to_time.rb, line 8</span>
|
758
758
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_time</span>
|
@@ -764,11 +764,11 @@ To be able to keep Dates and Times interchangeable on conversions.
|
|
764
764
|
</div>
|
765
765
|
<div class="method">
|
766
766
|
<div class="title">
|
767
|
-
<a name="
|
767
|
+
<a name="M000080"></a><b>trunc</b>(amount)
|
768
768
|
</div>
|
769
769
|
<div class="description">
|
770
770
|
<p>
|
771
|
-
Truncate time at give range (<a href="Time.html#
|
771
|
+
Truncate time at give range (<a href="Time.html#M000073">in</a> seconds).
|
772
772
|
</p>
|
773
773
|
<pre>
|
774
774
|
t = Time.now
|
@@ -778,8 +778,8 @@ Truncate time at give range (<a href="Time.html#M000075">in</a> seconds).
|
|
778
778
|
</pre>
|
779
779
|
</div>
|
780
780
|
<div class="sourcecode">
|
781
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
782
|
-
<div id="
|
781
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000080_source')" id="l_M000080_source">show source</a> ]</p>
|
782
|
+
<div id="M000080_source" class="dyn-source">
|
783
783
|
<pre>
|
784
784
|
<span class="ruby-comment cmt"># File lib/core/facets/time/trunc.rb, line 10</span>
|
785
785
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">trunc</span>(<span class="ruby-identifier">amount</span>)
|
@@ -791,11 +791,11 @@ Truncate time at give range (<a href="Time.html#M000075">in</a> seconds).
|
|
791
791
|
</div>
|
792
792
|
<div class="method">
|
793
793
|
<div class="title">
|
794
|
-
<a name="
|
794
|
+
<a name="M000069"></a><b>trunc</b>(amount)
|
795
795
|
</div>
|
796
796
|
<div class="description">
|
797
797
|
<p>
|
798
|
-
Truncate time at give range (<a href="Time.html#
|
798
|
+
Truncate time at give range (<a href="Time.html#M000073">in</a> seconds).
|
799
799
|
</p>
|
800
800
|
<pre>
|
801
801
|
t = Time.now
|
@@ -805,8 +805,8 @@ Truncate time at give range (<a href="Time.html#M000075">in</a> seconds).
|
|
805
805
|
</pre>
|
806
806
|
</div>
|
807
807
|
<div class="sourcecode">
|
808
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
809
|
-
<div id="
|
808
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000069_source')" id="l_M000069_source">show source</a> ]</p>
|
809
|
+
<div id="M000069_source" class="dyn-source">
|
810
810
|
<pre>
|
811
811
|
<span class="ruby-comment cmt"># File lib/core/facets/time/trunc.rb, line 10</span>
|
812
812
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">trunc</span>(<span class="ruby-identifier">amount</span>)
|