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
@@ -83,28 +83,28 @@ Object
|
|
83
83
|
|
84
84
|
<div class="sectiontitle">Methods</div>
|
85
85
|
<ul>
|
86
|
-
<li><a href="#
|
87
|
-
<li><a href="#
|
88
|
-
<li><a href="#
|
89
|
-
<li><a href="#
|
90
|
-
<li><a href="#
|
91
|
-
<li><a href="#
|
92
|
-
<li><a href="#
|
93
|
-
<li><a href="#
|
94
|
-
<li><a href="#
|
95
|
-
<li><a href="#
|
96
|
-
<li><a href="#
|
97
|
-
<li><a href="#
|
98
|
-
<li><a href="#
|
99
|
-
<li><a href="#
|
100
|
-
<li><a href="#
|
101
|
-
<li><a href="#
|
102
|
-
<li><a href="#
|
103
|
-
<li><a href="#
|
104
|
-
<li><a href="#
|
105
|
-
<li><a href="#
|
106
|
-
<li><a href="#
|
107
|
-
<li><a href="#
|
86
|
+
<li><a href="#M000107"><<</a></li>
|
87
|
+
<li><a href="#M000096"><<</a></li>
|
88
|
+
<li><a href="#M000105">[]</a></li>
|
89
|
+
<li><a href="#M000094">[]</a></li>
|
90
|
+
<li><a href="#M000095">[]=</a></li>
|
91
|
+
<li><a href="#M000106">[]=</a></li>
|
92
|
+
<li><a href="#M000092">each</a></li>
|
93
|
+
<li><a href="#M000103">each</a></li>
|
94
|
+
<li><a href="#M000091">instance_delegate</a></li>
|
95
|
+
<li><a href="#M000102">instance_delegate</a></li>
|
96
|
+
<li><a href="#M000098">keys</a></li>
|
97
|
+
<li><a href="#M000109">keys</a></li>
|
98
|
+
<li><a href="#M000099">names</a></li>
|
99
|
+
<li><a href="#M000110">names</a></li>
|
100
|
+
<li><a href="#M000090">new</a></li>
|
101
|
+
<li><a href="#M000101">new</a></li>
|
102
|
+
<li><a href="#M000104">to_hash</a></li>
|
103
|
+
<li><a href="#M000093">to_hash</a></li>
|
104
|
+
<li><a href="#M000108">update</a></li>
|
105
|
+
<li><a href="#M000097">update</a></li>
|
106
|
+
<li><a href="#M000100">values</a></li>
|
107
|
+
<li><a href="#M000111">values</a></li>
|
108
108
|
</ul>
|
109
109
|
|
110
110
|
<div class="sectiontitle">Included Modules</div>
|
@@ -120,11 +120,11 @@ Object
|
|
120
120
|
<div class="sectiontitle">Public Class methods</div>
|
121
121
|
<div class="method">
|
122
122
|
<div class="title">
|
123
|
-
<a name="
|
123
|
+
<a name="M000090"></a><b>new</b>(delegate)
|
124
124
|
</div>
|
125
125
|
<div class="sourcecode">
|
126
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
127
|
-
<div id="
|
126
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000090_source')" id="l_M000090_source">show source</a> ]</p>
|
127
|
+
<div id="M000090_source" class="dyn-source">
|
128
128
|
<pre>
|
129
129
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_variables.rb, line 14</span>
|
130
130
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">delegate</span>)
|
@@ -136,11 +136,11 @@ Object
|
|
136
136
|
</div>
|
137
137
|
<div class="method">
|
138
138
|
<div class="title">
|
139
|
-
<a name="
|
139
|
+
<a name="M000101"></a><b>new</b>(delegate)
|
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('M000101_source')" id="l_M000101_source">show source</a> ]</p>
|
143
|
+
<div id="M000101_source" class="dyn-source">
|
144
144
|
<pre>
|
145
145
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_variables.rb, line 14</span>
|
146
146
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">delegate</span>)
|
@@ -153,11 +153,11 @@ Object
|
|
153
153
|
<div class="sectiontitle">Public Instance methods</div>
|
154
154
|
<div class="method">
|
155
155
|
<div class="title">
|
156
|
-
<a name="
|
156
|
+
<a name="M000107"></a><b><<</b>(pair)
|
157
157
|
</div>
|
158
158
|
<div class="sourcecode">
|
159
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
160
|
-
<div id="
|
159
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000107_source')" id="l_M000107_source">show source</a> ]</p>
|
160
|
+
<div id="M000107_source" class="dyn-source">
|
161
161
|
<pre>
|
162
162
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_variables.rb, line 46</span>
|
163
163
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator"><<</span>(<span class="ruby-identifier">pair</span>)
|
@@ -171,11 +171,11 @@ Object
|
|
171
171
|
</div>
|
172
172
|
<div class="method">
|
173
173
|
<div class="title">
|
174
|
-
<a name="
|
174
|
+
<a name="M000096"></a><b><<</b>(pair)
|
175
175
|
</div>
|
176
176
|
<div class="sourcecode">
|
177
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
178
|
-
<div id="
|
177
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000096_source')" id="l_M000096_source">show source</a> ]</p>
|
178
|
+
<div id="M000096_source" class="dyn-source">
|
179
179
|
<pre>
|
180
180
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_variables.rb, line 46</span>
|
181
181
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator"><<</span>(<span class="ruby-identifier">pair</span>)
|
@@ -189,11 +189,11 @@ Object
|
|
189
189
|
</div>
|
190
190
|
<div class="method">
|
191
191
|
<div class="title">
|
192
|
-
<a name="
|
192
|
+
<a name="M000105"></a><b>[]</b>(name)
|
193
193
|
</div>
|
194
194
|
<div class="sourcecode">
|
195
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
196
|
-
<div id="
|
195
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000105_source')" id="l_M000105_source">show source</a> ]</p>
|
196
|
+
<div id="M000105_source" class="dyn-source">
|
197
197
|
<pre>
|
198
198
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_variables.rb, line 36</span>
|
199
199
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">name</span>)
|
@@ -206,11 +206,11 @@ Object
|
|
206
206
|
</div>
|
207
207
|
<div class="method">
|
208
208
|
<div class="title">
|
209
|
-
<a name="
|
209
|
+
<a name="M000094"></a><b>[]</b>(name)
|
210
210
|
</div>
|
211
211
|
<div class="sourcecode">
|
212
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
213
|
-
<div id="
|
212
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000094_source')" id="l_M000094_source">show source</a> ]</p>
|
213
|
+
<div id="M000094_source" class="dyn-source">
|
214
214
|
<pre>
|
215
215
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_variables.rb, line 36</span>
|
216
216
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">name</span>)
|
@@ -223,11 +223,11 @@ Object
|
|
223
223
|
</div>
|
224
224
|
<div class="method">
|
225
225
|
<div class="title">
|
226
|
-
<a name="
|
226
|
+
<a name="M000095"></a><b>[]=</b>(name, value)
|
227
227
|
</div>
|
228
228
|
<div class="sourcecode">
|
229
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
230
|
-
<div id="
|
229
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000095_source')" id="l_M000095_source">show source</a> ]</p>
|
230
|
+
<div id="M000095_source" class="dyn-source">
|
231
231
|
<pre>
|
232
232
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_variables.rb, line 41</span>
|
233
233
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]=</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">value</span>)
|
@@ -240,11 +240,11 @@ Object
|
|
240
240
|
</div>
|
241
241
|
<div class="method">
|
242
242
|
<div class="title">
|
243
|
-
<a name="
|
243
|
+
<a name="M000106"></a><b>[]=</b>(name, value)
|
244
244
|
</div>
|
245
245
|
<div class="sourcecode">
|
246
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
247
|
-
<div id="
|
246
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000106_source')" id="l_M000106_source">show source</a> ]</p>
|
247
|
+
<div id="M000106_source" class="dyn-source">
|
248
248
|
<pre>
|
249
249
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_variables.rb, line 41</span>
|
250
250
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]=</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">value</span>)
|
@@ -257,11 +257,11 @@ Object
|
|
257
257
|
</div>
|
258
258
|
<div class="method">
|
259
259
|
<div class="title">
|
260
|
-
<a name="
|
260
|
+
<a name="M000092"></a><b>each</b>() {|name[1..-1].to_sym, @delegate.instance_variable_get(name)| ...}
|
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('M000092_source')" id="l_M000092_source">show source</a> ]</p>
|
264
|
+
<div id="M000092_source" class="dyn-source">
|
265
265
|
<pre>
|
266
266
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_variables.rb, line 22</span>
|
267
267
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each</span>
|
@@ -275,11 +275,11 @@ Object
|
|
275
275
|
</div>
|
276
276
|
<div class="method">
|
277
277
|
<div class="title">
|
278
|
-
<a name="
|
278
|
+
<a name="M000103"></a><b>each</b>() {|name[1..-1].to_sym, @delegate.instance_variable_get(name)| ...}
|
279
279
|
</div>
|
280
280
|
<div class="sourcecode">
|
281
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
282
|
-
<div id="
|
281
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000103_source')" id="l_M000103_source">show source</a> ]</p>
|
282
|
+
<div id="M000103_source" class="dyn-source">
|
283
283
|
<pre>
|
284
284
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_variables.rb, line 22</span>
|
285
285
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each</span>
|
@@ -293,11 +293,11 @@ Object
|
|
293
293
|
</div>
|
294
294
|
<div class="method">
|
295
295
|
<div class="title">
|
296
|
-
<a name="
|
296
|
+
<a name="M000091"></a><b>instance_delegate</b>()
|
297
297
|
</div>
|
298
298
|
<div class="sourcecode">
|
299
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
300
|
-
<div id="
|
299
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000091_source')" id="l_M000091_source">show source</a> ]</p>
|
300
|
+
<div id="M000091_source" class="dyn-source">
|
301
301
|
<pre>
|
302
302
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_variables.rb, line 18</span>
|
303
303
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">instance_delegate</span>
|
@@ -309,11 +309,11 @@ Object
|
|
309
309
|
</div>
|
310
310
|
<div class="method">
|
311
311
|
<div class="title">
|
312
|
-
<a name="
|
312
|
+
<a name="M000102"></a><b>instance_delegate</b>()
|
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('M000102_source')" id="l_M000102_source">show source</a> ]</p>
|
316
|
+
<div id="M000102_source" class="dyn-source">
|
317
317
|
<pre>
|
318
318
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_variables.rb, line 18</span>
|
319
319
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">instance_delegate</span>
|
@@ -325,11 +325,11 @@ Object
|
|
325
325
|
</div>
|
326
326
|
<div class="method">
|
327
327
|
<div class="title">
|
328
|
-
<a name="
|
328
|
+
<a name="M000098"></a><b>keys</b>()
|
329
329
|
</div>
|
330
330
|
<div class="sourcecode">
|
331
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
332
|
-
<div id="
|
331
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000098_source')" id="l_M000098_source">show source</a> ]</p>
|
332
|
+
<div id="M000098_source" class="dyn-source">
|
333
333
|
<pre>
|
334
334
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_variables.rb, line 58</span>
|
335
335
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">keys</span>
|
@@ -343,11 +343,11 @@ Object
|
|
343
343
|
</div>
|
344
344
|
<div class="method">
|
345
345
|
<div class="title">
|
346
|
-
<a name="
|
346
|
+
<a name="M000109"></a><b>keys</b>()
|
347
347
|
</div>
|
348
348
|
<div class="sourcecode">
|
349
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
350
|
-
<div id="
|
349
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000109_source')" id="l_M000109_source">show source</a> ]</p>
|
350
|
+
<div id="M000109_source" class="dyn-source">
|
351
351
|
<pre>
|
352
352
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_variables.rb, line 58</span>
|
353
353
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">keys</span>
|
@@ -361,11 +361,11 @@ Object
|
|
361
361
|
</div>
|
362
362
|
<div class="method">
|
363
363
|
<div class="title">
|
364
|
-
<a name="
|
364
|
+
<a name="M000099"></a><b>names</b>()
|
365
365
|
</div>
|
366
366
|
<div class="sourcecode">
|
367
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
368
|
-
<div id="
|
367
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000099_source')" id="l_M000099_source">show source</a> ]</p>
|
368
|
+
<div id="M000099_source" class="dyn-source">
|
369
369
|
<pre>
|
370
370
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_variables.rb, line 64</span>
|
371
371
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">names</span>
|
@@ -379,11 +379,11 @@ Object
|
|
379
379
|
</div>
|
380
380
|
<div class="method">
|
381
381
|
<div class="title">
|
382
|
-
<a name="
|
382
|
+
<a name="M000110"></a><b>names</b>()
|
383
383
|
</div>
|
384
384
|
<div class="sourcecode">
|
385
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
386
|
-
<div id="
|
385
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000110_source')" id="l_M000110_source">show source</a> ]</p>
|
386
|
+
<div id="M000110_source" class="dyn-source">
|
387
387
|
<pre>
|
388
388
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_variables.rb, line 64</span>
|
389
389
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">names</span>
|
@@ -397,11 +397,11 @@ Object
|
|
397
397
|
</div>
|
398
398
|
<div class="method">
|
399
399
|
<div class="title">
|
400
|
-
<a name="
|
400
|
+
<a name="M000104"></a><b>to_hash</b>()
|
401
401
|
</div>
|
402
402
|
<div class="sourcecode">
|
403
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
404
|
-
<div id="
|
403
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000104_source')" id="l_M000104_source">show source</a> ]</p>
|
404
|
+
<div id="M000104_source" class="dyn-source">
|
405
405
|
<pre>
|
406
406
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_variables.rb, line 28</span>
|
407
407
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_hash</span>
|
@@ -417,11 +417,11 @@ Object
|
|
417
417
|
</div>
|
418
418
|
<div class="method">
|
419
419
|
<div class="title">
|
420
|
-
<a name="
|
420
|
+
<a name="M000093"></a><b>to_hash</b>()
|
421
421
|
</div>
|
422
422
|
<div class="sourcecode">
|
423
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
424
|
-
<div id="
|
423
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000093_source')" id="l_M000093_source">show source</a> ]</p>
|
424
|
+
<div id="M000093_source" class="dyn-source">
|
425
425
|
<pre>
|
426
426
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_variables.rb, line 28</span>
|
427
427
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_hash</span>
|
@@ -437,11 +437,11 @@ Object
|
|
437
437
|
</div>
|
438
438
|
<div class="method">
|
439
439
|
<div class="title">
|
440
|
-
<a name="
|
440
|
+
<a name="M000108"></a><b>update</b>(hash)
|
441
441
|
</div>
|
442
442
|
<div class="sourcecode">
|
443
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
444
|
-
<div id="
|
443
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000108_source')" id="l_M000108_source">show source</a> ]</p>
|
444
|
+
<div id="M000108_source" class="dyn-source">
|
445
445
|
<pre>
|
446
446
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_variables.rb, line 52</span>
|
447
447
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update</span>(<span class="ruby-identifier">hash</span>)
|
@@ -455,11 +455,11 @@ Object
|
|
455
455
|
</div>
|
456
456
|
<div class="method">
|
457
457
|
<div class="title">
|
458
|
-
<a name="
|
458
|
+
<a name="M000097"></a><b>update</b>(hash)
|
459
459
|
</div>
|
460
460
|
<div class="sourcecode">
|
461
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
462
|
-
<div id="
|
461
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000097_source')" id="l_M000097_source">show source</a> ]</p>
|
462
|
+
<div id="M000097_source" class="dyn-source">
|
463
463
|
<pre>
|
464
464
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_variables.rb, line 52</span>
|
465
465
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update</span>(<span class="ruby-identifier">hash</span>)
|
@@ -473,11 +473,11 @@ Object
|
|
473
473
|
</div>
|
474
474
|
<div class="method">
|
475
475
|
<div class="title">
|
476
|
-
<a name="
|
476
|
+
<a name="M000100"></a><b>values</b>()
|
477
477
|
</div>
|
478
478
|
<div class="sourcecode">
|
479
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
480
|
-
<div id="
|
479
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000100_source')" id="l_M000100_source">show source</a> ]</p>
|
480
|
+
<div id="M000100_source" class="dyn-source">
|
481
481
|
<pre>
|
482
482
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_variables.rb, line 70</span>
|
483
483
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">values</span>
|
@@ -491,11 +491,11 @@ Object
|
|
491
491
|
</div>
|
492
492
|
<div class="method">
|
493
493
|
<div class="title">
|
494
|
-
<a name="
|
494
|
+
<a name="M000111"></a><b>values</b>()
|
495
495
|
</div>
|
496
496
|
<div class="sourcecode">
|
497
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
498
|
-
<div id="
|
497
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000111_source')" id="l_M000111_source">show source</a> ]</p>
|
498
|
+
<div id="M000111_source" class="dyn-source">
|
499
499
|
<pre>
|
500
500
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_variables.rb, line 70</span>
|
501
501
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">values</span>
|
@@ -94,37 +94,37 @@ Object
|
|
94
94
|
|
95
95
|
<div class="sectiontitle">Methods</div>
|
96
96
|
<ul>
|
97
|
-
<li><a href="#
|
98
|
-
<li><a href="#
|
99
|
-
<li><a href="#
|
100
|
-
<li><a href="#
|
101
|
-
<li><a href="#
|
102
|
-
<li><a href="#
|
103
|
-
<li><a href="#
|
104
|
-
<li><a href="#
|
105
|
-
<li><a href="#
|
106
|
-
<li><a href="#
|
107
|
-
<li><a href="#
|
108
|
-
<li><a href="#
|
109
|
-
<li><a href="#
|
110
|
-
<li><a href="#
|
111
|
-
<li><a href="#
|
112
|
-
<li><a href="#
|
113
|
-
<li><a href="#
|
114
|
-
<li><a href="#
|
115
|
-
<li><a href="#
|
116
|
-
<li><a href="#
|
117
|
-
<li><a href="#
|
118
|
-
<li><a href="#
|
119
|
-
<li><a href="#
|
97
|
+
<li><a href="#M000041">bit</a></li>
|
98
|
+
<li><a href="#M000042">bit!</a></li>
|
99
|
+
<li><a href="#M000044">bit?</a></li>
|
100
|
+
<li><a href="#M000045">bitmask</a></li>
|
101
|
+
<li><a href="#M000046">bitmask!</a></li>
|
102
|
+
<li><a href="#M000047">bitmask?</a></li>
|
103
|
+
<li><a href="#M000043">clear_bit</a></li>
|
104
|
+
<li><a href="#M000021">even?</a></li>
|
105
|
+
<li><a href="#M000031">even?</a></li>
|
106
|
+
<li><a href="#M000023">fac</a></li>
|
107
|
+
<li><a href="#M000033">fac</a></li>
|
108
|
+
<li><a href="#M000022">factorial</a></li>
|
109
|
+
<li><a href="#M000032">factorial</a></li>
|
110
|
+
<li><a href="#M000017">multiple?</a></li>
|
111
|
+
<li><a href="#M000027">multiple?</a></li>
|
112
|
+
<li><a href="#M000020">odd?</a></li>
|
113
|
+
<li><a href="#M000030">odd?</a></li>
|
114
|
+
<li><a href="#M000034">of</a></li>
|
115
|
+
<li><a href="#M000024">of</a></li>
|
116
|
+
<li><a href="#M000028">ordinal</a></li>
|
117
|
+
<li><a href="#M000018">ordinal</a></li>
|
118
|
+
<li><a href="#M000019">ordinalize</a></li>
|
119
|
+
<li><a href="#M000029">ordinalize</a></li>
|
120
|
+
<li><a href="#M000037">round_at</a></li>
|
120
121
|
<li><a href="#M000039">round_at</a></li>
|
121
|
-
<li><a href="#
|
122
|
+
<li><a href="#M000038">round_to</a></li>
|
122
123
|
<li><a href="#M000040">round_to</a></li>
|
123
|
-
<li><a href="#
|
124
|
-
<li><a href="#
|
125
|
-
<li><a href="#
|
126
|
-
<li><a href="#
|
127
|
-
<li><a href="#M000028">times_map</a></li>
|
124
|
+
<li><a href="#M000025">times_collect</a></li>
|
125
|
+
<li><a href="#M000035">times_collect</a></li>
|
126
|
+
<li><a href="#M000036">times_map</a></li>
|
127
|
+
<li><a href="#M000026">times_map</a></li>
|
128
128
|
</ul>
|
129
129
|
|
130
130
|
|
@@ -135,18 +135,18 @@ Object
|
|
135
135
|
<div class="sectiontitle">Public Instance methods</div>
|
136
136
|
<div class="method">
|
137
137
|
<div class="title">
|
138
|
-
<a name="
|
138
|
+
<a name="M000041"></a><b>bit</b>(bit)
|
139
139
|
</div>
|
140
140
|
<div class="description">
|
141
141
|
<p>
|
142
|
-
Set a <a href="Integer.html#
|
142
|
+
Set a <a href="Integer.html#M000041">bit</a>.
|
143
143
|
</p>
|
144
144
|
<pre>
|
145
145
|
0.bit!(4) #=> 8
|
146
146
|
</pre>
|
147
147
|
<p>
|
148
|
-
Using an inverted <a href="Integer.html#
|
149
|
-
href="Integer.html#
|
148
|
+
Using an inverted <a href="Integer.html#M000041">bit</a> will clear a <a
|
149
|
+
href="Integer.html#M000041">bit</a>.
|
150
150
|
</p>
|
151
151
|
<pre>
|
152
152
|
10.bit!(~3) #=> 2
|
@@ -158,11 +158,11 @@ href="Integer.html#M000043">bit</a>.
|
|
158
158
|
</div>
|
159
159
|
<div class="aka">
|
160
160
|
This method is also aliased as
|
161
|
-
<a href="Integer.html#
|
161
|
+
<a href="Integer.html#M000042">bit!</a>
|
162
162
|
</div>
|
163
163
|
<div class="sourcecode">
|
164
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
165
|
-
<div id="
|
164
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000041_source')" id="l_M000041_source">show source</a> ]</p>
|
165
|
+
<div id="M000041_source" class="dyn-source">
|
166
166
|
<pre>
|
167
167
|
<span class="ruby-comment cmt"># File lib/core/facets/bitmask.rb, line 15</span>
|
168
168
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bit</span>(<span class="ruby-identifier">bit</span>)
|
@@ -180,21 +180,21 @@ href="Integer.html#M000043">bit</a>.
|
|
180
180
|
</div>
|
181
181
|
<div class="method">
|
182
182
|
<div class="title">
|
183
|
-
<a name="
|
183
|
+
<a name="M000042"></a><b>bit!</b>(bit)
|
184
184
|
</div>
|
185
185
|
<div class="description">
|
186
186
|
<p>
|
187
|
-
Alias for <a href="Integer.html#
|
187
|
+
Alias for <a href="Integer.html#M000041">bit</a>
|
188
188
|
</p>
|
189
189
|
</div>
|
190
190
|
</div>
|
191
191
|
<div class="method">
|
192
192
|
<div class="title">
|
193
|
-
<a name="
|
193
|
+
<a name="M000044"></a><b>bit?</b>(bit)
|
194
194
|
</div>
|
195
195
|
<div class="description">
|
196
196
|
<p>
|
197
|
-
Is a <a href="Integer.html#
|
197
|
+
Is a <a href="Integer.html#M000041">bit</a> set?
|
198
198
|
</p>
|
199
199
|
<pre>
|
200
200
|
8.bit?(3) #=> true
|
@@ -205,8 +205,8 @@ Is a <a href="Integer.html#M000043">bit</a> set?
|
|
205
205
|
</pre>
|
206
206
|
</div>
|
207
207
|
<div class="sourcecode">
|
208
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
209
|
-
<div id="
|
208
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000044_source')" id="l_M000044_source">show source</a> ]</p>
|
209
|
+
<div id="M000044_source" class="dyn-source">
|
210
210
|
<pre>
|
211
211
|
<span class="ruby-comment cmt"># File lib/core/facets/bitmask.rb, line 45</span>
|
212
212
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bit?</span>(<span class="ruby-identifier">bit</span>)
|
@@ -219,17 +219,17 @@ Is a <a href="Integer.html#M000043">bit</a> set?
|
|
219
219
|
</div>
|
220
220
|
<div class="method">
|
221
221
|
<div class="title">
|
222
|
-
<a name="
|
222
|
+
<a name="M000045"></a><b>bitmask</b>(mask)
|
223
223
|
</div>
|
224
224
|
<div class="description">
|
225
225
|
<p>
|
226
|
-
Apply a <a href="Integer.html#
|
226
|
+
Apply a <a href="Integer.html#M000045">bitmask</a>.
|
227
227
|
</p>
|
228
228
|
<pre>
|
229
229
|
1.bitmask(6) #=> 7
|
230
230
|
</pre>
|
231
231
|
<p>
|
232
|
-
Using a inverted <a href="Integer.html#
|
232
|
+
Using a inverted <a href="Integer.html#M000045">bitmask</a> clears bits.
|
233
233
|
</p>
|
234
234
|
<pre>
|
235
235
|
7.bitmask(~2) #=> 5
|
@@ -240,11 +240,11 @@ Using a inverted <a href="Integer.html#M000047">bitmask</a> clears bits.
|
|
240
240
|
</div>
|
241
241
|
<div class="aka">
|
242
242
|
This method is also aliased as
|
243
|
-
<a href="Integer.html#
|
243
|
+
<a href="Integer.html#M000046">bitmask!</a>
|
244
244
|
</div>
|
245
245
|
<div class="sourcecode">
|
246
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
247
|
-
<div id="
|
246
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000045_source')" id="l_M000045_source">show source</a> ]</p>
|
247
|
+
<div id="M000045_source" class="dyn-source">
|
248
248
|
<pre>
|
249
249
|
<span class="ruby-comment cmt"># File lib/core/facets/bitmask.rb, line 61</span>
|
250
250
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bitmask</span>(<span class="ruby-identifier">mask</span>)
|
@@ -260,21 +260,21 @@ Using a inverted <a href="Integer.html#M000047">bitmask</a> clears bits.
|
|
260
260
|
</div>
|
261
261
|
<div class="method">
|
262
262
|
<div class="title">
|
263
|
-
<a name="
|
263
|
+
<a name="M000046"></a><b>bitmask!</b>(mask)
|
264
264
|
</div>
|
265
265
|
<div class="description">
|
266
266
|
<p>
|
267
|
-
Alias for <a href="Integer.html#
|
267
|
+
Alias for <a href="Integer.html#M000045">bitmask</a>
|
268
268
|
</p>
|
269
269
|
</div>
|
270
270
|
</div>
|
271
271
|
<div class="method">
|
272
272
|
<div class="title">
|
273
|
-
<a name="
|
273
|
+
<a name="M000047"></a><b>bitmask?</b>(mask)
|
274
274
|
</div>
|
275
275
|
<div class="description">
|
276
276
|
<p>
|
277
|
-
Is <a href="Integer.html#
|
277
|
+
Is <a href="Integer.html#M000045">bitmask</a> set?
|
278
278
|
</p>
|
279
279
|
<pre>
|
280
280
|
7.bitmask?(7) #=> true
|
@@ -285,8 +285,8 @@ Is <a href="Integer.html#M000047">bitmask</a> set?
|
|
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('M000047_source')" id="l_M000047_source">show source</a> ]</p>
|
289
|
+
<div id="M000047_source" class="dyn-source">
|
290
290
|
<pre>
|
291
291
|
<span class="ruby-comment cmt"># File lib/core/facets/bitmask.rb, line 80</span>
|
292
292
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bitmask?</span>(<span class="ruby-identifier">mask</span>)
|
@@ -298,19 +298,19 @@ Is <a href="Integer.html#M000047">bitmask</a> set?
|
|
298
298
|
</div>
|
299
299
|
<div class="method">
|
300
300
|
<div class="title">
|
301
|
-
<a name="
|
301
|
+
<a name="M000043"></a><b>clear_bit</b>(bit)
|
302
302
|
</div>
|
303
303
|
<div class="description">
|
304
304
|
<p>
|
305
|
-
Clear <a href="Integer.html#
|
305
|
+
Clear <a href="Integer.html#M000041">bit</a>.
|
306
306
|
</p>
|
307
307
|
<pre>
|
308
308
|
CREDIT: George Moschovitis
|
309
309
|
</pre>
|
310
310
|
</div>
|
311
311
|
<div class="sourcecode">
|
312
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
313
|
-
<div id="
|
312
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000043_source')" id="l_M000043_source">show source</a> ]</p>
|
313
|
+
<div id="M000043_source" class="dyn-source">
|
314
314
|
<pre>
|
315
315
|
<span class="ruby-comment cmt"># File lib/core/facets/bitmask.rb, line 32</span>
|
316
316
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clear_bit</span>(<span class="ruby-identifier">bit</span>)
|
@@ -323,7 +323,7 @@ Clear <a href="Integer.html#M000043">bit</a>.
|
|
323
323
|
</div>
|
324
324
|
<div class="method">
|
325
325
|
<div class="title">
|
326
|
-
<a name="
|
326
|
+
<a name="M000021"></a><b>even?</b>()
|
327
327
|
</div>
|
328
328
|
<div class="description">
|
329
329
|
<p>
|
@@ -337,8 +337,8 @@ Returns true if this integer is even, false otherwise.
|
|
337
337
|
</pre>
|
338
338
|
</div>
|
339
339
|
<div class="sourcecode">
|
340
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
341
|
-
<div id="
|
340
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000021_source')" id="l_M000021_source">show source</a> ]</p>
|
341
|
+
<div id="M000021_source" class="dyn-source">
|
342
342
|
<pre>
|
343
343
|
<span class="ruby-comment cmt"># File lib/core/facets/integer/odd.rb, line 26</span>
|
344
344
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">even?</span>
|
@@ -350,7 +350,7 @@ Returns true if this integer is even, false otherwise.
|
|
350
350
|
</div>
|
351
351
|
<div class="method">
|
352
352
|
<div class="title">
|
353
|
-
<a name="
|
353
|
+
<a name="M000031"></a><b>even?</b>()
|
354
354
|
</div>
|
355
355
|
<div class="description">
|
356
356
|
<p>
|
@@ -364,8 +364,8 @@ Returns true if this integer is even, false otherwise.
|
|
364
364
|
</pre>
|
365
365
|
</div>
|
366
366
|
<div class="sourcecode">
|
367
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
368
|
-
<div id="
|
367
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000031_source')" id="l_M000031_source">show source</a> ]</p>
|
368
|
+
<div id="M000031_source" class="dyn-source">
|
369
369
|
<pre>
|
370
370
|
<span class="ruby-comment cmt"># File lib/core/facets/integer/odd.rb, line 26</span>
|
371
371
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">even?</span>
|
@@ -377,32 +377,32 @@ Returns true if this integer is even, false otherwise.
|
|
377
377
|
</div>
|
378
378
|
<div class="method">
|
379
379
|
<div class="title">
|
380
|
-
<a name="
|
380
|
+
<a name="M000023"></a><b>fac</b>()
|
381
381
|
</div>
|
382
382
|
<div class="description">
|
383
383
|
<p>
|
384
|
-
Alias for <a href="Integer.html#
|
384
|
+
Alias for <a href="Integer.html#M000022">factorial</a>
|
385
385
|
</p>
|
386
386
|
</div>
|
387
387
|
</div>
|
388
388
|
<div class="method">
|
389
389
|
<div class="title">
|
390
|
-
<a name="
|
390
|
+
<a name="M000033"></a><b>fac</b>()
|
391
391
|
</div>
|
392
392
|
<div class="description">
|
393
393
|
<p>
|
394
|
-
Alias for <a href="Integer.html#
|
394
|
+
Alias for <a href="Integer.html#M000022">factorial</a>
|
395
395
|
</p>
|
396
396
|
</div>
|
397
397
|
</div>
|
398
398
|
<div class="method">
|
399
399
|
<div class="title">
|
400
|
-
<a name="
|
400
|
+
<a name="M000022"></a><b>factorial</b>()
|
401
401
|
</div>
|
402
402
|
<div class="description">
|
403
403
|
<p>
|
404
|
-
Calculate the <a href="Integer.html#
|
405
|
-
href="Integer.html#
|
404
|
+
Calculate the <a href="Integer.html#M000022">factorial</a> <a
|
405
|
+
href="Integer.html#M000024">of</a> an integer.
|
406
406
|
</p>
|
407
407
|
<pre>
|
408
408
|
2.factorial #=> 2
|
@@ -414,12 +414,12 @@ href="Integer.html#M000026">of</a> an integer.
|
|
414
414
|
</div>
|
415
415
|
<div class="aka">
|
416
416
|
This method is also aliased as
|
417
|
-
<a href="Integer.html#
|
418
|
-
<a href="Integer.html#
|
417
|
+
<a href="Integer.html#M000023">fac</a>
|
418
|
+
<a href="Integer.html#M000033">fac</a>
|
419
419
|
</div>
|
420
420
|
<div class="sourcecode">
|
421
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
422
|
-
<div id="
|
421
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000022_source')" id="l_M000022_source">show source</a> ]</p>
|
422
|
+
<div id="M000022_source" class="dyn-source">
|
423
423
|
<pre>
|
424
424
|
<span class="ruby-comment cmt"># File lib/core/facets/integer/factorial.rb, line 11</span>
|
425
425
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">factorial</span>
|
@@ -434,12 +434,12 @@ href="Integer.html#M000026">of</a> an integer.
|
|
434
434
|
</div>
|
435
435
|
<div class="method">
|
436
436
|
<div class="title">
|
437
|
-
<a name="
|
437
|
+
<a name="M000032"></a><b>factorial</b>()
|
438
438
|
</div>
|
439
439
|
<div class="description">
|
440
440
|
<p>
|
441
|
-
Calculate the <a href="Integer.html#
|
442
|
-
href="Integer.html#
|
441
|
+
Calculate the <a href="Integer.html#M000022">factorial</a> <a
|
442
|
+
href="Integer.html#M000024">of</a> an integer.
|
443
443
|
</p>
|
444
444
|
<pre>
|
445
445
|
2.factorial #=> 2
|
@@ -450,8 +450,8 @@ href="Integer.html#M000026">of</a> an integer.
|
|
450
450
|
</pre>
|
451
451
|
</div>
|
452
452
|
<div class="sourcecode">
|
453
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
454
|
-
<div id="
|
453
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000032_source')" id="l_M000032_source">show source</a> ]</p>
|
454
|
+
<div id="M000032_source" class="dyn-source">
|
455
455
|
<pre>
|
456
456
|
<span class="ruby-comment cmt"># File lib/core/facets/integer/factorial.rb, line 11</span>
|
457
457
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">factorial</span>
|
@@ -466,11 +466,11 @@ href="Integer.html#M000026">of</a> an integer.
|
|
466
466
|
</div>
|
467
467
|
<div class="method">
|
468
468
|
<div class="title">
|
469
|
-
<a name="
|
469
|
+
<a name="M000017"></a><b>multiple?</b>(number)
|
470
470
|
</div>
|
471
471
|
<div class="description">
|
472
472
|
<p>
|
473
|
-
Is is a multiple <a href="Integer.html#
|
473
|
+
Is is a multiple <a href="Integer.html#M000024">of</a> a given number?
|
474
474
|
</p>
|
475
475
|
<pre>
|
476
476
|
7.multiple?(2) #=> false
|
@@ -480,8 +480,8 @@ Is is a multiple <a href="Integer.html#M000026">of</a> a given number?
|
|
480
480
|
</pre>
|
481
481
|
</div>
|
482
482
|
<div class="sourcecode">
|
483
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
484
|
-
<div id="
|
483
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000017_source')" id="l_M000017_source">show source</a> ]</p>
|
484
|
+
<div id="M000017_source" class="dyn-source">
|
485
485
|
<pre>
|
486
486
|
<span class="ruby-comment cmt"># File lib/core/facets/integer/multiple.rb, line 10</span>
|
487
487
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">multiple?</span>(<span class="ruby-identifier">number</span>)
|
@@ -493,11 +493,11 @@ Is is a multiple <a href="Integer.html#M000026">of</a> a given number?
|
|
493
493
|
</div>
|
494
494
|
<div class="method">
|
495
495
|
<div class="title">
|
496
|
-
<a name="
|
496
|
+
<a name="M000027"></a><b>multiple?</b>(number)
|
497
497
|
</div>
|
498
498
|
<div class="description">
|
499
499
|
<p>
|
500
|
-
Is is a multiple <a href="Integer.html#
|
500
|
+
Is is a multiple <a href="Integer.html#M000024">of</a> a given number?
|
501
501
|
</p>
|
502
502
|
<pre>
|
503
503
|
7.multiple?(2) #=> false
|
@@ -507,8 +507,8 @@ Is is a multiple <a href="Integer.html#M000026">of</a> a given number?
|
|
507
507
|
</pre>
|
508
508
|
</div>
|
509
509
|
<div class="sourcecode">
|
510
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
511
|
-
<div id="
|
510
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000027_source')" id="l_M000027_source">show source</a> ]</p>
|
511
|
+
<div id="M000027_source" class="dyn-source">
|
512
512
|
<pre>
|
513
513
|
<span class="ruby-comment cmt"># File lib/core/facets/integer/multiple.rb, line 10</span>
|
514
514
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">multiple?</span>(<span class="ruby-identifier">number</span>)
|
@@ -520,7 +520,7 @@ Is is a multiple <a href="Integer.html#M000026">of</a> a given number?
|
|
520
520
|
</div>
|
521
521
|
<div class="method">
|
522
522
|
<div class="title">
|
523
|
-
<a name="
|
523
|
+
<a name="M000020"></a><b>odd?</b>()
|
524
524
|
</div>
|
525
525
|
<div class="description">
|
526
526
|
<p>
|
@@ -537,8 +537,8 @@ Returns true if this integer is odd, false otherwise.
|
|
537
537
|
</pre>
|
538
538
|
</div>
|
539
539
|
<div class="sourcecode">
|
540
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
541
|
-
<div id="
|
540
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000020_source')" id="l_M000020_source">show source</a> ]</p>
|
541
|
+
<div id="M000020_source" class="dyn-source">
|
542
542
|
<pre>
|
543
543
|
<span class="ruby-comment cmt"># File lib/core/facets/integer/odd.rb, line 15</span>
|
544
544
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">odd?</span>
|
@@ -550,7 +550,7 @@ Returns true if this integer is odd, false otherwise.
|
|
550
550
|
</div>
|
551
551
|
<div class="method">
|
552
552
|
<div class="title">
|
553
|
-
<a name="
|
553
|
+
<a name="M000030"></a><b>odd?</b>()
|
554
554
|
</div>
|
555
555
|
<div class="description">
|
556
556
|
<p>
|
@@ -567,8 +567,8 @@ Returns true if this integer is odd, false otherwise.
|
|
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('M000030_source')" id="l_M000030_source">show source</a> ]</p>
|
571
|
+
<div id="M000030_source" class="dyn-source">
|
572
572
|
<pre>
|
573
573
|
<span class="ruby-comment cmt"># File lib/core/facets/integer/odd.rb, line 15</span>
|
574
574
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">odd?</span>
|
@@ -580,11 +580,11 @@ Returns true if this integer is odd, false otherwise.
|
|
580
580
|
</div>
|
581
581
|
<div class="method">
|
582
582
|
<div class="title">
|
583
|
-
<a name="
|
583
|
+
<a name="M000034"></a><b>of</b>(&block)
|
584
584
|
</div>
|
585
585
|
<div class="description">
|
586
586
|
<p>
|
587
|
-
Like times but returns a collection <a href="Integer.html#
|
587
|
+
Like times but returns a collection <a href="Integer.html#M000024">of</a>
|
588
588
|
the yield results.
|
589
589
|
</p>
|
590
590
|
<pre>
|
@@ -593,8 +593,8 @@ the yield results.
|
|
593
593
|
</pre>
|
594
594
|
</div>
|
595
595
|
<div class="sourcecode">
|
596
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
597
|
-
<div id="
|
596
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000034_source')" id="l_M000034_source">show source</a> ]</p>
|
597
|
+
<div id="M000034_source" class="dyn-source">
|
598
598
|
<pre>
|
599
599
|
<span class="ruby-comment cmt"># File lib/core/facets/integer/of.rb, line 9</span>
|
600
600
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">of</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -606,11 +606,11 @@ the yield results.
|
|
606
606
|
</div>
|
607
607
|
<div class="method">
|
608
608
|
<div class="title">
|
609
|
-
<a name="
|
609
|
+
<a name="M000024"></a><b>of</b>(&block)
|
610
610
|
</div>
|
611
611
|
<div class="description">
|
612
612
|
<p>
|
613
|
-
Like times but returns a collection <a href="Integer.html#
|
613
|
+
Like times but returns a collection <a href="Integer.html#M000024">of</a>
|
614
614
|
the yield results.
|
615
615
|
</p>
|
616
616
|
<pre>
|
@@ -620,14 +620,14 @@ the yield results.
|
|
620
620
|
</div>
|
621
621
|
<div class="aka">
|
622
622
|
This method is also aliased as
|
623
|
-
<a href="Integer.html#
|
624
|
-
<a href="Integer.html#
|
625
|
-
<a href="Integer.html#
|
626
|
-
<a href="Integer.html#
|
623
|
+
<a href="Integer.html#M000025">times_collect</a>
|
624
|
+
<a href="Integer.html#M000026">times_map</a>
|
625
|
+
<a href="Integer.html#M000035">times_collect</a>
|
626
|
+
<a href="Integer.html#M000036">times_map</a>
|
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('M000024_source')" id="l_M000024_source">show source</a> ]</p>
|
630
|
+
<div id="M000024_source" class="dyn-source">
|
631
631
|
<pre>
|
632
632
|
<span class="ruby-comment cmt"># File lib/core/facets/integer/of.rb, line 9</span>
|
633
633
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">of</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -639,11 +639,11 @@ the yield results.
|
|
639
639
|
</div>
|
640
640
|
<div class="method">
|
641
641
|
<div class="title">
|
642
|
-
<a name="
|
642
|
+
<a name="M000028"></a><b>ordinal</b>()
|
643
643
|
</div>
|
644
644
|
<div class="sourcecode">
|
645
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
646
|
-
<div id="
|
645
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000028_source')" id="l_M000028_source">show source</a> ]</p>
|
646
|
+
<div id="M000028_source" class="dyn-source">
|
647
647
|
<pre>
|
648
648
|
<span class="ruby-comment cmt"># File lib/core/facets/integer/ordinal.rb, line 3</span>
|
649
649
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ordinal</span>
|
@@ -668,16 +668,16 @@ the yield results.
|
|
668
668
|
</div>
|
669
669
|
<div class="method">
|
670
670
|
<div class="title">
|
671
|
-
<a name="
|
671
|
+
<a name="M000018"></a><b>ordinal</b>()
|
672
672
|
</div>
|
673
673
|
<div class="aka">
|
674
674
|
This method is also aliased as
|
675
|
-
<a href="Integer.html#
|
676
|
-
<a href="Integer.html#
|
675
|
+
<a href="Integer.html#M000019">ordinalize</a>
|
676
|
+
<a href="Integer.html#M000029">ordinalize</a>
|
677
677
|
</div>
|
678
678
|
<div class="sourcecode">
|
679
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
680
|
-
<div id="
|
679
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000018_source')" id="l_M000018_source">show source</a> ]</p>
|
680
|
+
<div id="M000018_source" class="dyn-source">
|
681
681
|
<pre>
|
682
682
|
<span class="ruby-comment cmt"># File lib/core/facets/integer/ordinal.rb, line 3</span>
|
683
683
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ordinal</span>
|
@@ -702,36 +702,36 @@ the yield results.
|
|
702
702
|
</div>
|
703
703
|
<div class="method">
|
704
704
|
<div class="title">
|
705
|
-
<a name="
|
705
|
+
<a name="M000019"></a><b>ordinalize</b>()
|
706
706
|
</div>
|
707
707
|
<div class="description">
|
708
708
|
<p>
|
709
|
-
Alias for <a href="Integer.html#
|
709
|
+
Alias for <a href="Integer.html#M000018">ordinal</a>
|
710
710
|
</p>
|
711
711
|
</div>
|
712
712
|
</div>
|
713
713
|
<div class="method">
|
714
714
|
<div class="title">
|
715
|
-
<a name="
|
715
|
+
<a name="M000029"></a><b>ordinalize</b>()
|
716
716
|
</div>
|
717
717
|
<div class="description">
|
718
718
|
<p>
|
719
|
-
Alias for <a href="Integer.html#
|
719
|
+
Alias for <a href="Integer.html#M000018">ordinal</a>
|
720
720
|
</p>
|
721
721
|
</div>
|
722
722
|
</div>
|
723
723
|
<div class="method">
|
724
724
|
<div class="title">
|
725
|
-
<a name="
|
725
|
+
<a name="M000037"></a><b>round_at</b>(*args)
|
726
726
|
</div>
|
727
727
|
<div class="description">
|
728
728
|
<p>
|
729
|
-
See <a href="Float.html#
|
729
|
+
See <a href="Float.html#M000369">Float#round_at</a>.
|
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('M000037_source')" id="l_M000037_source">show source</a> ]</p>
|
734
|
+
<div id="M000037_source" class="dyn-source">
|
735
735
|
<pre>
|
736
736
|
<span class="ruby-comment cmt"># File lib/core/facets/numeric/round.rb, line 27</span>
|
737
737
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">round_at</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
@@ -743,16 +743,16 @@ See <a href="Float.html#M000393">Float#round_at</a>.
|
|
743
743
|
</div>
|
744
744
|
<div class="method">
|
745
745
|
<div class="title">
|
746
|
-
<a name="
|
746
|
+
<a name="M000039"></a><b>round_at</b>(*args)
|
747
747
|
</div>
|
748
748
|
<div class="description">
|
749
749
|
<p>
|
750
|
-
See <a href="Float.html#
|
750
|
+
See <a href="Float.html#M000369">Float#round_at</a>.
|
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('M000039_source')" id="l_M000039_source">show source</a> ]</p>
|
755
|
+
<div id="M000039_source" class="dyn-source">
|
756
756
|
<pre>
|
757
757
|
<span class="ruby-comment cmt"># File lib/core/facets/numeric/round.rb, line 27</span>
|
758
758
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">round_at</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
@@ -764,16 +764,16 @@ See <a href="Float.html#M000393">Float#round_at</a>.
|
|
764
764
|
</div>
|
765
765
|
<div class="method">
|
766
766
|
<div class="title">
|
767
|
-
<a name="
|
767
|
+
<a name="M000038"></a><b>round_to</b>(*args)
|
768
768
|
</div>
|
769
769
|
<div class="description">
|
770
770
|
<p>
|
771
|
-
See <a href="Float.html#
|
771
|
+
See <a href="Float.html#M000370">Float#round_to</a>.
|
772
772
|
</p>
|
773
773
|
</div>
|
774
774
|
<div class="sourcecode">
|
775
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
776
|
-
<div id="
|
775
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000038_source')" id="l_M000038_source">show source</a> ]</p>
|
776
|
+
<div id="M000038_source" class="dyn-source">
|
777
777
|
<pre>
|
778
778
|
<span class="ruby-comment cmt"># File lib/core/facets/numeric/round.rb, line 33</span>
|
779
779
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">round_to</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
@@ -785,16 +785,16 @@ See <a href="Float.html#M000394">Float#round_to</a>.
|
|
785
785
|
</div>
|
786
786
|
<div class="method">
|
787
787
|
<div class="title">
|
788
|
-
<a name="
|
788
|
+
<a name="M000040"></a><b>round_to</b>(*args)
|
789
789
|
</div>
|
790
790
|
<div class="description">
|
791
791
|
<p>
|
792
|
-
See <a href="Float.html#
|
792
|
+
See <a href="Float.html#M000370">Float#round_to</a>.
|
793
793
|
</p>
|
794
794
|
</div>
|
795
795
|
<div class="sourcecode">
|
796
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
797
|
-
<div id="
|
796
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000040_source')" id="l_M000040_source">show source</a> ]</p>
|
797
|
+
<div id="M000040_source" class="dyn-source">
|
798
798
|
<pre>
|
799
799
|
<span class="ruby-comment cmt"># File lib/core/facets/numeric/round.rb, line 33</span>
|
800
800
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">round_to</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
@@ -806,41 +806,41 @@ See <a href="Float.html#M000394">Float#round_to</a>.
|
|
806
806
|
</div>
|
807
807
|
<div class="method">
|
808
808
|
<div class="title">
|
809
|
-
<a name="
|
809
|
+
<a name="M000025"></a><b>times_collect</b>(&block)
|
810
810
|
</div>
|
811
811
|
<div class="description">
|
812
812
|
<p>
|
813
|
-
Alias for <a href="Integer.html#
|
813
|
+
Alias for <a href="Integer.html#M000024">of</a>
|
814
814
|
</p>
|
815
815
|
</div>
|
816
816
|
</div>
|
817
817
|
<div class="method">
|
818
818
|
<div class="title">
|
819
|
-
<a name="
|
819
|
+
<a name="M000035"></a><b>times_collect</b>(&block)
|
820
820
|
</div>
|
821
821
|
<div class="description">
|
822
822
|
<p>
|
823
|
-
Alias for <a href="Integer.html#
|
823
|
+
Alias for <a href="Integer.html#M000024">of</a>
|
824
824
|
</p>
|
825
825
|
</div>
|
826
826
|
</div>
|
827
827
|
<div class="method">
|
828
828
|
<div class="title">
|
829
|
-
<a name="
|
829
|
+
<a name="M000036"></a><b>times_map</b>(&block)
|
830
830
|
</div>
|
831
831
|
<div class="description">
|
832
832
|
<p>
|
833
|
-
Alias for <a href="Integer.html#
|
833
|
+
Alias for <a href="Integer.html#M000024">of</a>
|
834
834
|
</p>
|
835
835
|
</div>
|
836
836
|
</div>
|
837
837
|
<div class="method">
|
838
838
|
<div class="title">
|
839
|
-
<a name="
|
839
|
+
<a name="M000026"></a><b>times_map</b>(&block)
|
840
840
|
</div>
|
841
841
|
<div class="description">
|
842
842
|
<p>
|
843
|
-
Alias for <a href="Integer.html#
|
843
|
+
Alias for <a href="Integer.html#M000024">of</a>
|
844
844
|
</p>
|
845
845
|
</div>
|
846
846
|
</div>
|