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
@@ -58,13 +58,13 @@
|
|
58
58
|
<td>In:</td>
|
59
59
|
<td>
|
60
60
|
<a href="../files/lib/core/facets/class/prepend_rb.html">lib/core/facets/class/prepend.rb</a>
|
61
|
-
<a href="../files/lib/core/facets/class/
|
62
|
-
<a href="../files/lib/core/facets/class/
|
61
|
+
<a href="../files/lib/core/facets/class/methodize_rb.html">lib/core/facets/class/methodize.rb</a>
|
62
|
+
<a href="../files/lib/core/facets/class/pathize_rb.html">lib/core/facets/class/pathize.rb</a>
|
63
63
|
<a href="../files/lib/core/facets/class/descendents_rb.html">lib/core/facets/class/descendents.rb</a>
|
64
64
|
<a href="../files/lib/core/facets/class/to_proc_rb.html">lib/core/facets/class/to_proc.rb</a>
|
65
65
|
<a href="../files/lib/core/facets/class/prepend_rb.html">lib/core/facets/class/prepend.rb</a>
|
66
|
-
<a href="../files/lib/core/facets/class/
|
67
|
-
<a href="../files/lib/core/facets/class/
|
66
|
+
<a href="../files/lib/core/facets/class/methodize_rb.html">lib/core/facets/class/methodize.rb</a>
|
67
|
+
<a href="../files/lib/core/facets/class/pathize_rb.html">lib/core/facets/class/pathize.rb</a>
|
68
68
|
<a href="../files/lib/core/facets/class/descendents_rb.html">lib/core/facets/class/descendents.rb</a>
|
69
69
|
<a href="../files/lib/core/facets/class/to_proc_rb.html">lib/core/facets/class/to_proc.rb</a>
|
70
70
|
</td>
|
@@ -91,18 +91,18 @@ Object
|
|
91
91
|
|
92
92
|
<div class="sectiontitle">Methods</div>
|
93
93
|
<ul>
|
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="#
|
94
|
+
<li><a href="#M000360">descendents</a></li>
|
95
|
+
<li><a href="#M000366">descendents</a></li>
|
96
|
+
<li><a href="#M000358">methodize</a></li>
|
97
|
+
<li><a href="#M000364">methodize</a></li>
|
98
|
+
<li><a href="#M000359">pathize</a></li>
|
99
|
+
<li><a href="#M000365">pathize</a></li>
|
100
|
+
<li><a href="#M000357">prepend</a></li>
|
101
|
+
<li><a href="#M000363">prepend</a></li>
|
102
|
+
<li><a href="#M000367">subclasses</a></li>
|
103
|
+
<li><a href="#M000361">subclasses</a></li>
|
104
|
+
<li><a href="#M000362">to_proc</a></li>
|
105
|
+
<li><a href="#M000368">to_proc</a></li>
|
106
106
|
</ul>
|
107
107
|
|
108
108
|
|
@@ -113,7 +113,7 @@ Object
|
|
113
113
|
<div class="sectiontitle">Public Instance methods</div>
|
114
114
|
<div class="method">
|
115
115
|
<div class="title">
|
116
|
-
<a name="
|
116
|
+
<a name="M000360"></a><b>descendents</b>()
|
117
117
|
</div>
|
118
118
|
<div class="description">
|
119
119
|
<p>
|
@@ -131,12 +131,12 @@ NOTE: This is a intesive operation. Do not expect it to be super fast.
|
|
131
131
|
</div>
|
132
132
|
<div class="aka">
|
133
133
|
This method is also aliased as
|
134
|
-
<a href="Class.html#
|
135
|
-
<a href="Class.html#
|
134
|
+
<a href="Class.html#M000361">subclasses</a>
|
135
|
+
<a href="Class.html#M000367">subclasses</a>
|
136
136
|
</div>
|
137
137
|
<div class="sourcecode">
|
138
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
139
|
-
<div id="
|
138
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000360_source')" id="l_M000360_source">show source</a> ]</p>
|
139
|
+
<div id="M000360_source" class="dyn-source">
|
140
140
|
<pre>
|
141
141
|
<span class="ruby-comment cmt"># File lib/core/facets/class/descendents.rb, line 13</span>
|
142
142
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">descendents</span>
|
@@ -154,7 +154,7 @@ NOTE: This is a intesive operation. Do not expect it to be super fast.
|
|
154
154
|
</div>
|
155
155
|
<div class="method">
|
156
156
|
<div class="title">
|
157
|
-
<a name="
|
157
|
+
<a name="M000366"></a><b>descendents</b>()
|
158
158
|
</div>
|
159
159
|
<div class="description">
|
160
160
|
<p>
|
@@ -171,8 +171,8 @@ NOTE: This is a intesive operation. Do not expect it to be super fast.
|
|
171
171
|
</p>
|
172
172
|
</div>
|
173
173
|
<div class="sourcecode">
|
174
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
175
|
-
<div id="
|
174
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000366_source')" id="l_M000366_source">show source</a> ]</p>
|
175
|
+
<div id="M000366_source" class="dyn-source">
|
176
176
|
<pre>
|
177
177
|
<span class="ruby-comment cmt"># File lib/core/facets/class/descendents.rb, line 13</span>
|
178
178
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">descendents</span>
|
@@ -190,7 +190,103 @@ NOTE: This is a intesive operation. Do not expect it to be super fast.
|
|
190
190
|
</div>
|
191
191
|
<div class="method">
|
192
192
|
<div class="title">
|
193
|
-
<a name="
|
193
|
+
<a name="M000358"></a><b>methodize</b>()
|
194
|
+
</div>
|
195
|
+
<div class="description">
|
196
|
+
<p>
|
197
|
+
Translate a class name to a suitable method name.
|
198
|
+
</p>
|
199
|
+
<pre>
|
200
|
+
My::CoolClass.methodize => "my__cool_class"
|
201
|
+
</pre>
|
202
|
+
</div>
|
203
|
+
<div class="sourcecode">
|
204
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000358_source')" id="l_M000358_source">show source</a> ]</p>
|
205
|
+
<div id="M000358_source" class="dyn-source">
|
206
|
+
<pre>
|
207
|
+
<span class="ruby-comment cmt"># File lib/core/facets/class/methodize.rb, line 9</span>
|
208
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">methodize</span>
|
209
|
+
<span class="ruby-identifier">name</span>.<span class="ruby-identifier">methodize</span>
|
210
|
+
<span class="ruby-keyword kw">end</span>
|
211
|
+
</pre>
|
212
|
+
</div>
|
213
|
+
</div>
|
214
|
+
</div>
|
215
|
+
<div class="method">
|
216
|
+
<div class="title">
|
217
|
+
<a name="M000364"></a><b>methodize</b>()
|
218
|
+
</div>
|
219
|
+
<div class="description">
|
220
|
+
<p>
|
221
|
+
Translate a class name to a suitable method name.
|
222
|
+
</p>
|
223
|
+
<pre>
|
224
|
+
My::CoolClass.methodize => "my__cool_class"
|
225
|
+
</pre>
|
226
|
+
</div>
|
227
|
+
<div class="sourcecode">
|
228
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000364_source')" id="l_M000364_source">show source</a> ]</p>
|
229
|
+
<div id="M000364_source" class="dyn-source">
|
230
|
+
<pre>
|
231
|
+
<span class="ruby-comment cmt"># File lib/core/facets/class/methodize.rb, line 9</span>
|
232
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">methodize</span>
|
233
|
+
<span class="ruby-identifier">name</span>.<span class="ruby-identifier">methodize</span>
|
234
|
+
<span class="ruby-keyword kw">end</span>
|
235
|
+
</pre>
|
236
|
+
</div>
|
237
|
+
</div>
|
238
|
+
</div>
|
239
|
+
<div class="method">
|
240
|
+
<div class="title">
|
241
|
+
<a name="M000359"></a><b>pathize</b>()
|
242
|
+
</div>
|
243
|
+
<div class="description">
|
244
|
+
<p>
|
245
|
+
Converts a class name to a unix path.
|
246
|
+
</p>
|
247
|
+
<pre>
|
248
|
+
My::CoolClass.pathize #=> "my/cool_class"
|
249
|
+
</pre>
|
250
|
+
</div>
|
251
|
+
<div class="sourcecode">
|
252
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000359_source')" id="l_M000359_source">show source</a> ]</p>
|
253
|
+
<div id="M000359_source" class="dyn-source">
|
254
|
+
<pre>
|
255
|
+
<span class="ruby-comment cmt"># File lib/core/facets/class/pathize.rb, line 9</span>
|
256
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pathize</span>
|
257
|
+
<span class="ruby-identifier">name</span>.<span class="ruby-identifier">pathize</span>
|
258
|
+
<span class="ruby-keyword kw">end</span>
|
259
|
+
</pre>
|
260
|
+
</div>
|
261
|
+
</div>
|
262
|
+
</div>
|
263
|
+
<div class="method">
|
264
|
+
<div class="title">
|
265
|
+
<a name="M000365"></a><b>pathize</b>()
|
266
|
+
</div>
|
267
|
+
<div class="description">
|
268
|
+
<p>
|
269
|
+
Converts a class name to a unix path.
|
270
|
+
</p>
|
271
|
+
<pre>
|
272
|
+
My::CoolClass.pathize #=> "my/cool_class"
|
273
|
+
</pre>
|
274
|
+
</div>
|
275
|
+
<div class="sourcecode">
|
276
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000365_source')" id="l_M000365_source">show source</a> ]</p>
|
277
|
+
<div id="M000365_source" class="dyn-source">
|
278
|
+
<pre>
|
279
|
+
<span class="ruby-comment cmt"># File lib/core/facets/class/pathize.rb, line 9</span>
|
280
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pathize</span>
|
281
|
+
<span class="ruby-identifier">name</span>.<span class="ruby-identifier">pathize</span>
|
282
|
+
<span class="ruby-keyword kw">end</span>
|
283
|
+
</pre>
|
284
|
+
</div>
|
285
|
+
</div>
|
286
|
+
</div>
|
287
|
+
<div class="method">
|
288
|
+
<div class="title">
|
289
|
+
<a name="M000357"></a><b>prepend</b>( aspect )
|
194
290
|
</div>
|
195
291
|
<div class="description">
|
196
292
|
<p>
|
@@ -230,8 +326,8 @@ TODO: Perhaps rename this to preallocate, b/c of
|
|
230
326
|
</pre>
|
231
327
|
</div>
|
232
328
|
<div class="sourcecode">
|
233
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
234
|
-
<div id="
|
329
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000357_source')" id="l_M000357_source">show source</a> ]</p>
|
330
|
+
<div id="M000357_source" class="dyn-source">
|
235
331
|
<pre>
|
236
332
|
<span class="ruby-comment cmt"># File lib/core/facets/class/prepend.rb, line 31</span>
|
237
333
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">prepend</span>( <span class="ruby-identifier">aspect</span> )
|
@@ -256,7 +352,7 @@ TODO: Perhaps rename this to preallocate, b/c of
|
|
256
352
|
</div>
|
257
353
|
<div class="method">
|
258
354
|
<div class="title">
|
259
|
-
<a name="
|
355
|
+
<a name="M000363"></a><b>prepend</b>( aspect )
|
260
356
|
</div>
|
261
357
|
<div class="description">
|
262
358
|
<p>
|
@@ -296,8 +392,8 @@ TODO: Perhaps rename this to preallocate, b/c of
|
|
296
392
|
</pre>
|
297
393
|
</div>
|
298
394
|
<div class="sourcecode">
|
299
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
300
|
-
<div id="
|
395
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000363_source')" id="l_M000363_source">show source</a> ]</p>
|
396
|
+
<div id="M000363_source" class="dyn-source">
|
301
397
|
<pre>
|
302
398
|
<span class="ruby-comment cmt"># File lib/core/facets/class/prepend.rb, line 31</span>
|
303
399
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">prepend</span>( <span class="ruby-identifier">aspect</span> )
|
@@ -322,123 +418,27 @@ TODO: Perhaps rename this to preallocate, b/c of
|
|
322
418
|
</div>
|
323
419
|
<div class="method">
|
324
420
|
<div class="title">
|
325
|
-
<a name="
|
421
|
+
<a name="M000367"></a><b>subclasses</b>()
|
326
422
|
</div>
|
327
423
|
<div class="description">
|
328
424
|
<p>
|
329
|
-
Alias for <a href="Class.html#
|
425
|
+
Alias for <a href="Class.html#M000360">descendents</a>
|
330
426
|
</p>
|
331
427
|
</div>
|
332
428
|
</div>
|
333
429
|
<div class="method">
|
334
430
|
<div class="title">
|
335
|
-
<a name="
|
431
|
+
<a name="M000361"></a><b>subclasses</b>()
|
336
432
|
</div>
|
337
433
|
<div class="description">
|
338
434
|
<p>
|
339
|
-
Alias for <a href="Class.html#
|
435
|
+
Alias for <a href="Class.html#M000360">descendents</a>
|
340
436
|
</p>
|
341
437
|
</div>
|
342
438
|
</div>
|
343
439
|
<div class="method">
|
344
440
|
<div class="title">
|
345
|
-
<a name="
|
346
|
-
</div>
|
347
|
-
<div class="description">
|
348
|
-
<p>
|
349
|
-
Translate a class name to a suitable method name.
|
350
|
-
</p>
|
351
|
-
<pre>
|
352
|
-
My::CoolClass.methodize => "my__cool_class"
|
353
|
-
</pre>
|
354
|
-
</div>
|
355
|
-
<div class="sourcecode">
|
356
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000388_source')" id="l_M000388_source">show source</a> ]</p>
|
357
|
-
<div id="M000388_source" class="dyn-source">
|
358
|
-
<pre>
|
359
|
-
<span class="ruby-comment cmt"># File lib/core/facets/class/to_methodname.rb, line 7</span>
|
360
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_methodname</span>
|
361
|
-
<span class="ruby-identifier">name</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/([A-Z]+)([A-Z])/</span>,<span class="ruby-value str">'\1_\2'</span>).<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/([a-z])([A-Z])/</span>,<span class="ruby-value str">'\1_\2'</span>).<span class="ruby-identifier">gsub</span>(<span class="ruby-value str">'::'</span>,<span class="ruby-value str">'__'</span>).<span class="ruby-identifier">downcase</span>
|
362
|
-
<span class="ruby-keyword kw">end</span>
|
363
|
-
</pre>
|
364
|
-
</div>
|
365
|
-
</div>
|
366
|
-
</div>
|
367
|
-
<div class="method">
|
368
|
-
<div class="title">
|
369
|
-
<a name="M000382"></a><b>to_methodname</b>()
|
370
|
-
</div>
|
371
|
-
<div class="description">
|
372
|
-
<p>
|
373
|
-
Translate a class name to a suitable method name.
|
374
|
-
</p>
|
375
|
-
<pre>
|
376
|
-
My::CoolClass.methodize => "my__cool_class"
|
377
|
-
</pre>
|
378
|
-
</div>
|
379
|
-
<div class="sourcecode">
|
380
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000382_source')" id="l_M000382_source">show source</a> ]</p>
|
381
|
-
<div id="M000382_source" class="dyn-source">
|
382
|
-
<pre>
|
383
|
-
<span class="ruby-comment cmt"># File lib/core/facets/class/to_methodname.rb, line 7</span>
|
384
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_methodname</span>
|
385
|
-
<span class="ruby-identifier">name</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/([A-Z]+)([A-Z])/</span>,<span class="ruby-value str">'\1_\2'</span>).<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/([a-z])([A-Z])/</span>,<span class="ruby-value str">'\1_\2'</span>).<span class="ruby-identifier">gsub</span>(<span class="ruby-value str">'::'</span>,<span class="ruby-value str">'__'</span>).<span class="ruby-identifier">downcase</span>
|
386
|
-
<span class="ruby-keyword kw">end</span>
|
387
|
-
</pre>
|
388
|
-
</div>
|
389
|
-
</div>
|
390
|
-
</div>
|
391
|
-
<div class="method">
|
392
|
-
<div class="title">
|
393
|
-
<a name="M000383"></a><b>to_pathname</b>()
|
394
|
-
</div>
|
395
|
-
<div class="description">
|
396
|
-
<p>
|
397
|
-
Converts a class name to a unix path
|
398
|
-
</p>
|
399
|
-
<pre>
|
400
|
-
My::CoolClass.pathize #=> "/my/cool_class"
|
401
|
-
</pre>
|
402
|
-
</div>
|
403
|
-
<div class="sourcecode">
|
404
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000383_source')" id="l_M000383_source">show source</a> ]</p>
|
405
|
-
<div id="M000383_source" class="dyn-source">
|
406
|
-
<pre>
|
407
|
-
<span class="ruby-comment cmt"># File lib/core/facets/class/to_pathname.rb, line 7</span>
|
408
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_pathname</span>
|
409
|
-
<span class="ruby-value str">'/'</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">name</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/([A-Z]+)([A-Z])/</span>,<span class="ruby-value str">'\1_\2'</span>).<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/([a-z])([A-Z])/</span>,<span class="ruby-value str">'\1_\2'</span>).<span class="ruby-identifier">gsub</span>(<span class="ruby-value str">'::'</span>,<span class="ruby-value str">'/'</span>).<span class="ruby-identifier">downcase</span>
|
410
|
-
<span class="ruby-keyword kw">end</span>
|
411
|
-
</pre>
|
412
|
-
</div>
|
413
|
-
</div>
|
414
|
-
</div>
|
415
|
-
<div class="method">
|
416
|
-
<div class="title">
|
417
|
-
<a name="M000389"></a><b>to_pathname</b>()
|
418
|
-
</div>
|
419
|
-
<div class="description">
|
420
|
-
<p>
|
421
|
-
Converts a class name to a unix path
|
422
|
-
</p>
|
423
|
-
<pre>
|
424
|
-
My::CoolClass.pathize #=> "/my/cool_class"
|
425
|
-
</pre>
|
426
|
-
</div>
|
427
|
-
<div class="sourcecode">
|
428
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000389_source')" id="l_M000389_source">show source</a> ]</p>
|
429
|
-
<div id="M000389_source" class="dyn-source">
|
430
|
-
<pre>
|
431
|
-
<span class="ruby-comment cmt"># File lib/core/facets/class/to_pathname.rb, line 7</span>
|
432
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_pathname</span>
|
433
|
-
<span class="ruby-value str">'/'</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">name</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/([A-Z]+)([A-Z])/</span>,<span class="ruby-value str">'\1_\2'</span>).<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/([a-z])([A-Z])/</span>,<span class="ruby-value str">'\1_\2'</span>).<span class="ruby-identifier">gsub</span>(<span class="ruby-value str">'::'</span>,<span class="ruby-value str">'/'</span>).<span class="ruby-identifier">downcase</span>
|
434
|
-
<span class="ruby-keyword kw">end</span>
|
435
|
-
</pre>
|
436
|
-
</div>
|
437
|
-
</div>
|
438
|
-
</div>
|
439
|
-
<div class="method">
|
440
|
-
<div class="title">
|
441
|
-
<a name="M000386"></a><b>to_proc</b>()
|
441
|
+
<a name="M000362"></a><b>to_proc</b>()
|
442
442
|
</div>
|
443
443
|
<div class="description">
|
444
444
|
<p>
|
@@ -462,8 +462,8 @@ CREDIT: Daniel Schierbeck
|
|
462
462
|
</p>
|
463
463
|
</div>
|
464
464
|
<div class="sourcecode">
|
465
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
466
|
-
<div id="
|
465
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000362_source')" id="l_M000362_source">show source</a> ]</p>
|
466
|
+
<div id="M000362_source" class="dyn-source">
|
467
467
|
<pre>
|
468
468
|
<span class="ruby-comment cmt"># File lib/core/facets/class/to_proc.rb, line 19</span>
|
469
469
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_proc</span>
|
@@ -475,7 +475,7 @@ CREDIT: Daniel Schierbeck
|
|
475
475
|
</div>
|
476
476
|
<div class="method">
|
477
477
|
<div class="title">
|
478
|
-
<a name="
|
478
|
+
<a name="M000368"></a><b>to_proc</b>()
|
479
479
|
</div>
|
480
480
|
<div class="description">
|
481
481
|
<p>
|
@@ -499,8 +499,8 @@ CREDIT: Daniel Schierbeck
|
|
499
499
|
</p>
|
500
500
|
</div>
|
501
501
|
<div class="sourcecode">
|
502
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
503
|
-
<div id="
|
502
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000368_source')" id="l_M000368_source">show source</a> ]</p>
|
503
|
+
<div id="M000368_source" class="dyn-source">
|
504
504
|
<pre>
|
505
505
|
<span class="ruby-comment cmt"># File lib/core/facets/class/to_proc.rb, line 19</span>
|
506
506
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_proc</span>
|
@@ -77,18 +77,18 @@
|
|
77
77
|
|
78
78
|
<div class="sectiontitle">Methods</div>
|
79
79
|
<ul>
|
80
|
+
<li><a href="#M000716">at_least</a></li>
|
80
81
|
<li><a href="#M000722">at_least</a></li>
|
81
|
-
<li><a href="#M000728">at_least</a></li>
|
82
|
-
<li><a href="#M000729">at_most</a></li>
|
83
82
|
<li><a href="#M000723">at_most</a></li>
|
83
|
+
<li><a href="#M000717">at_most</a></li>
|
84
|
+
<li><a href="#M000719">bound</a></li>
|
84
85
|
<li><a href="#M000725">bound</a></li>
|
85
|
-
<li><a href="#
|
86
|
+
<li><a href="#M000718">cap</a></li>
|
86
87
|
<li><a href="#M000724">cap</a></li>
|
87
|
-
<li><a href="#
|
88
|
+
<li><a href="#M000720">clip</a></li>
|
88
89
|
<li><a href="#M000726">clip</a></li>
|
89
|
-
<li><a href="#
|
90
|
+
<li><a href="#M000721">cmp</a></li>
|
90
91
|
<li><a href="#M000727">cmp</a></li>
|
91
|
-
<li><a href="#M000733">cmp</a></li>
|
92
92
|
</ul>
|
93
93
|
|
94
94
|
|
@@ -99,7 +99,7 @@
|
|
99
99
|
<div class="sectiontitle">Public Instance methods</div>
|
100
100
|
<div class="method">
|
101
101
|
<div class="title">
|
102
|
-
<a name="
|
102
|
+
<a name="M000716"></a><b>at_least</b>(x)
|
103
103
|
</div>
|
104
104
|
<div class="description">
|
105
105
|
<p>
|
@@ -113,8 +113,8 @@ Returns the lower of self or x.
|
|
113
113
|
</pre>
|
114
114
|
</div>
|
115
115
|
<div class="sourcecode">
|
116
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
117
|
-
<div id="
|
116
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000716_source')" id="l_M000716_source">show source</a> ]</p>
|
117
|
+
<div id="M000716_source" class="dyn-source">
|
118
118
|
<pre>
|
119
119
|
<span class="ruby-comment cmt"># File lib/core/facets/comparable/bound.rb, line 16</span>
|
120
120
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">at_least</span>(<span class="ruby-identifier">x</span>)
|
@@ -126,7 +126,7 @@ Returns the lower of self or x.
|
|
126
126
|
</div>
|
127
127
|
<div class="method">
|
128
128
|
<div class="title">
|
129
|
-
<a name="
|
129
|
+
<a name="M000722"></a><b>at_least</b>(x)
|
130
130
|
</div>
|
131
131
|
<div class="description">
|
132
132
|
<p>
|
@@ -140,8 +140,8 @@ Returns the lower of self or x.
|
|
140
140
|
</pre>
|
141
141
|
</div>
|
142
142
|
<div class="sourcecode">
|
143
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
144
|
-
<div id="
|
143
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000722_source')" id="l_M000722_source">show source</a> ]</p>
|
144
|
+
<div id="M000722_source" class="dyn-source">
|
145
145
|
<pre>
|
146
146
|
<span class="ruby-comment cmt"># File lib/core/facets/comparable/bound.rb, line 16</span>
|
147
147
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">at_least</span>(<span class="ruby-identifier">x</span>)
|
@@ -153,7 +153,7 @@ Returns the lower of self or x.
|
|
153
153
|
</div>
|
154
154
|
<div class="method">
|
155
155
|
<div class="title">
|
156
|
-
<a name="
|
156
|
+
<a name="M000723"></a><b>at_most</b>(x)
|
157
157
|
</div>
|
158
158
|
<div class="description">
|
159
159
|
<p>
|
@@ -167,8 +167,8 @@ Returns the greater of self or x.
|
|
167
167
|
</pre>
|
168
168
|
</div>
|
169
169
|
<div class="sourcecode">
|
170
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
171
|
-
<div id="
|
170
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000723_source')" id="l_M000723_source">show source</a> ]</p>
|
171
|
+
<div id="M000723_source" class="dyn-source">
|
172
172
|
<pre>
|
173
173
|
<span class="ruby-comment cmt"># File lib/core/facets/comparable/bound.rb, line 27</span>
|
174
174
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">at_most</span>(<span class="ruby-identifier">x</span>)
|
@@ -180,7 +180,7 @@ Returns the greater of self or x.
|
|
180
180
|
</div>
|
181
181
|
<div class="method">
|
182
182
|
<div class="title">
|
183
|
-
<a name="
|
183
|
+
<a name="M000717"></a><b>at_most</b>(x)
|
184
184
|
</div>
|
185
185
|
<div class="description">
|
186
186
|
<p>
|
@@ -194,8 +194,8 @@ Returns the greater of self or x.
|
|
194
194
|
</pre>
|
195
195
|
</div>
|
196
196
|
<div class="sourcecode">
|
197
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
198
|
-
<div id="
|
197
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000717_source')" id="l_M000717_source">show source</a> ]</p>
|
198
|
+
<div id="M000717_source" class="dyn-source">
|
199
199
|
<pre>
|
200
200
|
<span class="ruby-comment cmt"># File lib/core/facets/comparable/bound.rb, line 27</span>
|
201
201
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">at_most</span>(<span class="ruby-identifier">x</span>)
|
@@ -207,14 +207,14 @@ Returns the greater of self or x.
|
|
207
207
|
</div>
|
208
208
|
<div class="method">
|
209
209
|
<div class="title">
|
210
|
-
<a name="
|
210
|
+
<a name="M000719"></a><b>bound</b>(lower, upper=nil)
|
211
211
|
</div>
|
212
212
|
<div class="description">
|
213
213
|
<p>
|
214
214
|
Returns self if above the given lower <a
|
215
|
-
href="Comparable.html#
|
215
|
+
href="Comparable.html#M000719">bound</a>, or within the given lower and
|
216
216
|
upper bounds, otherwise returns the the <a
|
217
|
-
href="Comparable.html#
|
217
|
+
href="Comparable.html#M000719">bound</a> of which the value falls outside.
|
218
218
|
</p>
|
219
219
|
<pre>
|
220
220
|
4.clip(3) #=> 4
|
@@ -228,12 +228,12 @@ href="Comparable.html#M000725">bound</a> of which the value falls outside.
|
|
228
228
|
</div>
|
229
229
|
<div class="aka">
|
230
230
|
This method is also aliased as
|
231
|
+
<a href="Comparable.html#M000720">clip</a>
|
231
232
|
<a href="Comparable.html#M000726">clip</a>
|
232
|
-
<a href="Comparable.html#M000732">clip</a>
|
233
233
|
</div>
|
234
234
|
<div class="sourcecode">
|
235
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
236
|
-
<div id="
|
235
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000719_source')" id="l_M000719_source">show source</a> ]</p>
|
236
|
+
<div id="M000719_source" class="dyn-source">
|
237
237
|
<pre>
|
238
238
|
<span class="ruby-comment cmt"># File lib/core/facets/comparable/bound.rb, line 55</span>
|
239
239
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bound</span>(<span class="ruby-identifier">lower</span>, <span class="ruby-identifier">upper</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -248,14 +248,14 @@ href="Comparable.html#M000725">bound</a> of which the value falls outside.
|
|
248
248
|
</div>
|
249
249
|
<div class="method">
|
250
250
|
<div class="title">
|
251
|
-
<a name="
|
251
|
+
<a name="M000725"></a><b>bound</b>(lower, upper=nil)
|
252
252
|
</div>
|
253
253
|
<div class="description">
|
254
254
|
<p>
|
255
255
|
Returns self if above the given lower <a
|
256
|
-
href="Comparable.html#
|
256
|
+
href="Comparable.html#M000719">bound</a>, or within the given lower and
|
257
257
|
upper bounds, otherwise returns the the <a
|
258
|
-
href="Comparable.html#
|
258
|
+
href="Comparable.html#M000719">bound</a> of which the value falls outside.
|
259
259
|
</p>
|
260
260
|
<pre>
|
261
261
|
4.clip(3) #=> 4
|
@@ -268,8 +268,8 @@ href="Comparable.html#M000725">bound</a> of which the value falls outside.
|
|
268
268
|
</pre>
|
269
269
|
</div>
|
270
270
|
<div class="sourcecode">
|
271
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
272
|
-
<div id="
|
271
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000725_source')" id="l_M000725_source">show source</a> ]</p>
|
272
|
+
<div id="M000725_source" class="dyn-source">
|
273
273
|
<pre>
|
274
274
|
<span class="ruby-comment cmt"># File lib/core/facets/comparable/bound.rb, line 55</span>
|
275
275
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bound</span>(<span class="ruby-identifier">lower</span>, <span class="ruby-identifier">upper</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -284,7 +284,7 @@ href="Comparable.html#M000725">bound</a> of which the value falls outside.
|
|
284
284
|
</div>
|
285
285
|
<div class="method">
|
286
286
|
<div class="title">
|
287
|
-
<a name="
|
287
|
+
<a name="M000718"></a><b>cap</b>(upper)
|
288
288
|
</div>
|
289
289
|
<div class="description">
|
290
290
|
<p>
|
@@ -298,8 +298,8 @@ Returns the greater of self or x.
|
|
298
298
|
</pre>
|
299
299
|
</div>
|
300
300
|
<div class="sourcecode">
|
301
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
302
|
-
<div id="
|
301
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000718_source')" id="l_M000718_source">show source</a> ]</p>
|
302
|
+
<div id="M000718_source" class="dyn-source">
|
303
303
|
<pre>
|
304
304
|
<span class="ruby-comment cmt"># File lib/core/facets/comparable/bound.rb, line 38</span>
|
305
305
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cap</span>(<span class="ruby-identifier">upper</span>)
|
@@ -311,7 +311,7 @@ Returns the greater of self or x.
|
|
311
311
|
</div>
|
312
312
|
<div class="method">
|
313
313
|
<div class="title">
|
314
|
-
<a name="
|
314
|
+
<a name="M000724"></a><b>cap</b>(upper)
|
315
315
|
</div>
|
316
316
|
<div class="description">
|
317
317
|
<p>
|
@@ -325,8 +325,8 @@ Returns the greater of self or x.
|
|
325
325
|
</pre>
|
326
326
|
</div>
|
327
327
|
<div class="sourcecode">
|
328
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
329
|
-
<div id="
|
328
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000724_source')" id="l_M000724_source">show source</a> ]</p>
|
329
|
+
<div id="M000724_source" class="dyn-source">
|
330
330
|
<pre>
|
331
331
|
<span class="ruby-comment cmt"># File lib/core/facets/comparable/bound.rb, line 38</span>
|
332
332
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cap</span>(<span class="ruby-identifier">upper</span>)
|
@@ -338,27 +338,27 @@ Returns the greater of self or x.
|
|
338
338
|
</div>
|
339
339
|
<div class="method">
|
340
340
|
<div class="title">
|
341
|
-
<a name="
|
341
|
+
<a name="M000720"></a><b>clip</b>(lower, upper=nil)
|
342
342
|
</div>
|
343
343
|
<div class="description">
|
344
344
|
<p>
|
345
|
-
Alias for <a href="Comparable.html#
|
345
|
+
Alias for <a href="Comparable.html#M000719">bound</a>
|
346
346
|
</p>
|
347
347
|
</div>
|
348
348
|
</div>
|
349
349
|
<div class="method">
|
350
350
|
<div class="title">
|
351
|
-
<a name="
|
351
|
+
<a name="M000726"></a><b>clip</b>(lower, upper=nil)
|
352
352
|
</div>
|
353
353
|
<div class="description">
|
354
354
|
<p>
|
355
|
-
Alias for <a href="Comparable.html#
|
355
|
+
Alias for <a href="Comparable.html#M000719">bound</a>
|
356
356
|
</p>
|
357
357
|
</div>
|
358
358
|
</div>
|
359
359
|
<div class="method">
|
360
360
|
<div class="title">
|
361
|
-
<a name="
|
361
|
+
<a name="M000721"></a><b>cmp</b>(o)
|
362
362
|
</div>
|
363
363
|
<div class="description">
|
364
364
|
<p>
|
@@ -378,8 +378,8 @@ This fundamental compare method is used to keep comparison compatible with
|
|
378
378
|
</pre>
|
379
379
|
</div>
|
380
380
|
<div class="sourcecode">
|
381
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
382
|
-
<div id="
|
381
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000721_source')" id="l_M000721_source">show source</a> ]</p>
|
382
|
+
<div id="M000721_source" class="dyn-source">
|
383
383
|
<pre>
|
384
384
|
<span class="ruby-comment cmt"># File lib/core/facets/comparable/cmp.rb, line 14</span>
|
385
385
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmp</span>(<span class="ruby-identifier">o</span>)
|
@@ -391,7 +391,7 @@ This fundamental compare method is used to keep comparison compatible with
|
|
391
391
|
</div>
|
392
392
|
<div class="method">
|
393
393
|
<div class="title">
|
394
|
-
<a name="
|
394
|
+
<a name="M000727"></a><b>cmp</b>(o)
|
395
395
|
</div>
|
396
396
|
<div class="description">
|
397
397
|
<p>
|
@@ -411,8 +411,8 @@ This fundamental compare method is used to keep comparison compatible with
|
|
411
411
|
</pre>
|
412
412
|
</div>
|
413
413
|
<div class="sourcecode">
|
414
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
415
|
-
<div id="
|
414
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000727_source')" id="l_M000727_source">show source</a> ]</p>
|
415
|
+
<div id="M000727_source" class="dyn-source">
|
416
416
|
<pre>
|
417
417
|
<span class="ruby-comment cmt"># File lib/core/facets/comparable/cmp.rb, line 14</span>
|
418
418
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmp</span>(<span class="ruby-identifier">o</span>)
|