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
@@ -80,6 +80,7 @@
|
|
80
80
|
<a href="../files/lib/core/facets/kernel/not_nil_rb.html">lib/core/facets/kernel/not_nil.rb</a>
|
81
81
|
<a href="../files/lib/core/facets/kernel/deep_copy_rb.html">lib/core/facets/kernel/deep_copy.rb</a>
|
82
82
|
<a href="../files/lib/core/facets/kernel/silence_rb.html">lib/core/facets/kernel/silence.rb</a>
|
83
|
+
<a href="../files/lib/core/facets/kernel/require_all_rb.html">lib/core/facets/kernel/require_all.rb</a>
|
83
84
|
<a href="../files/lib/core/facets/kernel/resc_rb.html">lib/core/facets/kernel/resc.rb</a>
|
84
85
|
<a href="../files/lib/core/facets/kernel/instance_variables_rb.html">lib/core/facets/kernel/instance_variables.rb</a>
|
85
86
|
<a href="../files/lib/core/facets/kernel/instance_assign_rb.html">lib/core/facets/kernel/instance_assign.rb</a>
|
@@ -88,7 +89,6 @@
|
|
88
89
|
<a href="../files/lib/core/facets/kernel/__method___rb.html">lib/core/facets/kernel/__method__.rb</a>
|
89
90
|
<a href="../files/lib/core/facets/kernel/instance_class_rb.html">lib/core/facets/kernel/instance_class.rb</a>
|
90
91
|
<a href="../files/lib/core/facets/kernel/instance_exec_rb.html">lib/core/facets/kernel/instance_exec.rb</a>
|
91
|
-
<a href="../files/lib/core/facets/kernel/load_rb.html">lib/core/facets/kernel/load.rb</a>
|
92
92
|
<a href="../files/lib/core/facets/kernel/attr_singleton_rb.html">lib/core/facets/kernel/attr_singleton.rb</a>
|
93
93
|
<a href="../files/lib/core/facets/kernel/p_rb.html">lib/core/facets/kernel/p.rb</a>
|
94
94
|
<a href="../files/lib/core/facets/kernel/singleton_class_rb.html">lib/core/facets/kernel/singleton_class.rb</a>
|
@@ -98,6 +98,7 @@
|
|
98
98
|
<a href="../files/lib/core/facets/kernel/populate_rb.html">lib/core/facets/kernel/populate.rb</a>
|
99
99
|
<a href="../files/lib/core/facets/kernel/val_rb.html">lib/core/facets/kernel/val.rb</a>
|
100
100
|
<a href="../files/lib/core/facets/kernel/constant_rb.html">lib/core/facets/kernel/constant.rb</a>
|
101
|
+
<a href="../files/lib/core/facets/kernel/require_local_rb.html">lib/core/facets/kernel/require_local.rb</a>
|
101
102
|
<a href="../files/lib/core/facets/kernel/respond_rb.html">lib/core/facets/kernel/respond.rb</a>
|
102
103
|
<a href="../files/lib/core/facets/kernel/in_rb.html">lib/core/facets/kernel/in.rb</a>
|
103
104
|
<a href="../files/lib/core/facets/kernel/here_rb.html">lib/core/facets/kernel/here.rb</a>
|
@@ -119,6 +120,7 @@
|
|
119
120
|
<a href="../files/lib/core/facets/kernel/not_nil_rb.html">lib/core/facets/kernel/not_nil.rb</a>
|
120
121
|
<a href="../files/lib/core/facets/kernel/deep_copy_rb.html">lib/core/facets/kernel/deep_copy.rb</a>
|
121
122
|
<a href="../files/lib/core/facets/kernel/silence_rb.html">lib/core/facets/kernel/silence.rb</a>
|
123
|
+
<a href="../files/lib/core/facets/kernel/require_all_rb.html">lib/core/facets/kernel/require_all.rb</a>
|
122
124
|
<a href="../files/lib/core/facets/kernel/resc_rb.html">lib/core/facets/kernel/resc.rb</a>
|
123
125
|
<a href="../files/lib/core/facets/kernel/instance_variables_rb.html">lib/core/facets/kernel/instance_variables.rb</a>
|
124
126
|
<a href="../files/lib/core/facets/kernel/instance_assign_rb.html">lib/core/facets/kernel/instance_assign.rb</a>
|
@@ -127,7 +129,6 @@
|
|
127
129
|
<a href="../files/lib/core/facets/kernel/__method___rb.html">lib/core/facets/kernel/__method__.rb</a>
|
128
130
|
<a href="../files/lib/core/facets/kernel/instance_class_rb.html">lib/core/facets/kernel/instance_class.rb</a>
|
129
131
|
<a href="../files/lib/core/facets/kernel/instance_exec_rb.html">lib/core/facets/kernel/instance_exec.rb</a>
|
130
|
-
<a href="../files/lib/core/facets/kernel/load_rb.html">lib/core/facets/kernel/load.rb</a>
|
131
132
|
<a href="../files/lib/core/facets/kernel/attr_singleton_rb.html">lib/core/facets/kernel/attr_singleton.rb</a>
|
132
133
|
<a href="../files/lib/core/facets/kernel/p_rb.html">lib/core/facets/kernel/p.rb</a>
|
133
134
|
<a href="../files/lib/core/facets/kernel/singleton_class_rb.html">lib/core/facets/kernel/singleton_class.rb</a>
|
@@ -137,6 +138,7 @@
|
|
137
138
|
<a href="../files/lib/core/facets/kernel/populate_rb.html">lib/core/facets/kernel/populate.rb</a>
|
138
139
|
<a href="../files/lib/core/facets/kernel/val_rb.html">lib/core/facets/kernel/val.rb</a>
|
139
140
|
<a href="../files/lib/core/facets/kernel/constant_rb.html">lib/core/facets/kernel/constant.rb</a>
|
141
|
+
<a href="../files/lib/core/facets/kernel/require_local_rb.html">lib/core/facets/kernel/require_local.rb</a>
|
140
142
|
<a href="../files/lib/core/facets/kernel/respond_rb.html">lib/core/facets/kernel/respond.rb</a>
|
141
143
|
<a href="../files/lib/core/facets/kernel/in_rb.html">lib/core/facets/kernel/in.rb</a>
|
142
144
|
<a href="../files/lib/core/facets/callstack_rb.html">lib/core/facets/callstack.rb</a>
|
@@ -157,124 +159,124 @@
|
|
157
159
|
|
158
160
|
<div class="sectiontitle">Methods</div>
|
159
161
|
<ul>
|
160
|
-
<li><a href="#
|
161
|
-
<li><a href="#
|
162
|
-
<li><a href="#
|
163
|
-
<li><a href="#
|
164
|
-
<li><a href="#
|
165
|
-
<li><a href="#
|
166
|
-
<li><a href="#
|
167
|
-
<li><a href="#
|
168
|
-
<li><a href="#
|
169
|
-
<li><a href="#
|
170
|
-
<li><a href="#
|
171
|
-
<li><a href="#
|
172
|
-
<li><a href="#
|
173
|
-
<li><a href="#
|
174
|
-
<li><a href="#
|
175
|
-
<li><a href="#
|
176
|
-
<li><a href="#
|
177
|
-
<li><a href="#
|
178
|
-
<li><a href="#
|
179
|
-
<li><a href="#
|
180
|
-
<li><a href="#
|
181
|
-
<li><a href="#
|
182
|
-
<li><a href="#
|
183
|
-
<li><a href="#
|
184
|
-
<li><a href="#
|
185
|
-
<li><a href="#
|
186
|
-
<li><a href="#
|
187
|
-
<li><a href="#
|
188
|
-
<li><a href="#
|
189
|
-
<li><a href="#
|
190
|
-
<li><a href="#
|
191
|
-
<li><a href="#
|
192
|
-
<li><a href="#
|
193
|
-
<li><a href="#
|
194
|
-
<li><a href="#
|
195
|
-
<li><a href="#
|
196
|
-
<li><a href="#
|
197
|
-
<li><a href="#
|
198
|
-
<li><a href="#
|
199
|
-
<li><a href="#
|
200
|
-
<li><a href="#
|
201
|
-
<li><a href="#
|
202
|
-
<li><a href="#
|
203
|
-
<li><a href="#
|
204
|
-
<li><a href="#
|
205
|
-
<li><a href="#
|
206
|
-
<li><a href="#
|
207
|
-
<li><a href="#
|
208
|
-
<li><a href="#
|
209
|
-
<li><a href="#
|
210
|
-
<li><a href="#
|
211
|
-
<li><a href="#
|
212
|
-
<li><a href="#
|
213
|
-
<li><a href="#
|
214
|
-
<li><a href="#
|
215
|
-
<li><a href="#
|
216
|
-
<li><a href="#
|
217
|
-
<li><a href="#
|
218
|
-
<li><a href="#
|
219
|
-
<li><a href="#
|
220
|
-
<li><a href="#
|
221
|
-
<li><a href="#
|
222
|
-
<li><a href="#
|
223
|
-
<li><a href="#
|
224
|
-
<li><a href="#
|
225
|
-
<li><a href="#
|
226
|
-
<li><a href="#
|
227
|
-
<li><a href="#
|
228
|
-
<li><a href="#
|
229
|
-
<li><a href="#
|
230
|
-
<li><a href="#
|
231
|
-
<li><a href="#
|
232
|
-
<li><a href="#
|
233
|
-
<li><a href="#
|
234
|
-
<li><a href="#
|
235
|
-
<li><a href="#
|
236
|
-
<li><a href="#
|
237
|
-
<li><a href="#
|
238
|
-
<li><a href="#
|
239
|
-
<li><a href="#
|
240
|
-
<li><a href="#
|
241
|
-
<li><a href="#
|
242
|
-
<li><a href="#
|
243
|
-
<li><a href="#
|
244
|
-
<li><a href="#
|
245
|
-
<li><a href="#
|
246
|
-
<li><a href="#
|
247
|
-
<li><a href="#
|
248
|
-
<li><a href="#
|
249
|
-
<li><a href="#
|
250
|
-
<li><a href="#
|
251
|
-
<li><a href="#
|
252
|
-
<li><a href="#
|
253
|
-
<li><a href="#
|
254
|
-
<li><a href="#
|
255
|
-
<li><a href="#
|
256
|
-
<li><a href="#
|
257
|
-
<li><a href="#
|
258
|
-
<li><a href="#
|
259
|
-
<li><a href="#
|
260
|
-
<li><a href="#
|
261
|
-
<li><a href="#
|
262
|
-
<li><a href="#
|
263
|
-
<li><a href="#
|
264
|
-
<li><a href="#
|
265
|
-
<li><a href="#
|
266
|
-
<li><a href="#
|
267
|
-
<li><a href="#
|
268
|
-
<li><a href="#
|
269
|
-
<li><a href="#
|
270
|
-
<li><a href="#
|
271
|
-
<li><a href="#
|
272
|
-
<li><a href="#
|
273
|
-
<li><a href="#
|
274
|
-
<li><a href="#
|
275
|
-
<li><a href="#
|
276
|
-
<li><a href="#
|
277
|
-
<li><a href="#
|
162
|
+
<li><a href="#M000613">Bit</a></li>
|
163
|
+
<li><a href="#M000703">__DIR__</a></li>
|
164
|
+
<li><a href="#M000653">__DIR__</a></li>
|
165
|
+
<li><a href="#M000643">__HERE__</a></li>
|
166
|
+
<li><a href="#M000693">__HERE__</a></li>
|
167
|
+
<li><a href="#M000664">as</a></li>
|
168
|
+
<li><a href="#M000614">as</a></li>
|
169
|
+
<li><a href="#M000618">ask</a></li>
|
170
|
+
<li><a href="#M000668">ask</a></li>
|
171
|
+
<li><a href="#M000649">attr_singleton_accessor</a></li>
|
172
|
+
<li><a href="#M000699">attr_singleton_accessor</a></li>
|
173
|
+
<li><a href="#M000697">attr_singleton_reader</a></li>
|
174
|
+
<li><a href="#M000647">attr_singleton_reader</a></li>
|
175
|
+
<li><a href="#M000698">attr_singleton_writer</a></li>
|
176
|
+
<li><a href="#M000648">attr_singleton_writer</a></li>
|
177
|
+
<li><a href="#M000715">blank?</a></li>
|
178
|
+
<li><a href="#M000612">bool?</a></li>
|
179
|
+
<li><a href="#M000714">callstack</a></li>
|
180
|
+
<li><a href="#M000627">complete</a></li>
|
181
|
+
<li><a href="#M000677">complete</a></li>
|
182
|
+
<li><a href="#M000708">constant</a></li>
|
183
|
+
<li><a href="#M000658">constant</a></li>
|
184
|
+
<li><a href="#M000644">d</a></li>
|
185
|
+
<li><a href="#M000694">d</a></li>
|
186
|
+
<li><a href="#M000680">deep_copy</a></li>
|
187
|
+
<li><a href="#M000630">deep_copy</a></li>
|
188
|
+
<li><a href="#M000607">demand</a></li>
|
189
|
+
<li><a href="#M000670">demo</a></li>
|
190
|
+
<li><a href="#M000620">demo</a></li>
|
191
|
+
<li><a href="#M000605">eigenclass</a></li>
|
192
|
+
<li><a href="#M000636">enable_warnings</a></li>
|
193
|
+
<li><a href="#M000686">enable_warnings</a></li>
|
194
|
+
<li><a href="#M000676">ergo</a></li>
|
195
|
+
<li><a href="#M000626">ergo</a></li>
|
196
|
+
<li><a href="#M000611">false?</a></li>
|
197
|
+
<li><a href="#M000608">future</a></li>
|
198
|
+
<li><a href="#M000713">in?</a></li>
|
199
|
+
<li><a href="#M000663">in?</a></li>
|
200
|
+
<li><a href="#M000624">instance</a></li>
|
201
|
+
<li><a href="#M000674">instance</a></li>
|
202
|
+
<li><a href="#M000641">instance_assign</a></li>
|
203
|
+
<li><a href="#M000691">instance_assign</a></li>
|
204
|
+
<li><a href="#M000695">instance_class</a></li>
|
205
|
+
<li><a href="#M000645">instance_class</a></li>
|
206
|
+
<li><a href="#M000646">instance_exec</a></li>
|
207
|
+
<li><a href="#M000696">instance_exec</a></li>
|
208
|
+
<li><a href="#M000690">instance_values</a></li>
|
209
|
+
<li><a href="#M000640">instance_values</a></li>
|
210
|
+
<li><a href="#M000639">instance_vars</a></li>
|
211
|
+
<li><a href="#M000689">instance_vars</a></li>
|
212
|
+
<li><a href="#M000660">load_local</a></li>
|
213
|
+
<li><a href="#M000710">load_local</a></li>
|
214
|
+
<li><a href="#M000671">maybe</a></li>
|
215
|
+
<li><a href="#M000621">maybe</a></li>
|
216
|
+
<li><a href="#M000598">meta_alias</a></li>
|
217
|
+
<li><a href="#M000601">meta_class</a></li>
|
218
|
+
<li><a href="#M000600">meta_def</a></li>
|
219
|
+
<li><a href="#M000599">meta_eval</a></li>
|
220
|
+
<li><a href="#M000602">metaclass</a></li>
|
221
|
+
<li><a href="#M000679">non_nil?</a></li>
|
222
|
+
<li><a href="#M000629">non_nil?</a></li>
|
223
|
+
<li><a href="#M000678">not_nil?</a></li>
|
224
|
+
<li><a href="#M000628">not_nil?</a></li>
|
225
|
+
<li><a href="#M000672">object_hexid</a></li>
|
226
|
+
<li><a href="#M000622">object_hexid</a></li>
|
227
|
+
<li><a href="#M000675">object_send</a></li>
|
228
|
+
<li><a href="#M000625">object_send</a></li>
|
229
|
+
<li><a href="#M000700">p</a></li>
|
230
|
+
<li><a href="#M000650">p</a></li>
|
231
|
+
<li><a href="#M000655">populate</a></li>
|
232
|
+
<li><a href="#M000705">populate</a></li>
|
233
|
+
<li><a href="#M000606">promise</a></li>
|
234
|
+
<li><a href="#M000637">require_all</a></li>
|
235
|
+
<li><a href="#M000687">require_all</a></li>
|
236
|
+
<li><a href="#M000659">require_local</a></li>
|
237
|
+
<li><a href="#M000709">require_local</a></li>
|
238
|
+
<li><a href="#M000688">resc</a></li>
|
239
|
+
<li><a href="#M000638">resc</a></li>
|
240
|
+
<li><a href="#M000711">respond</a></li>
|
241
|
+
<li><a href="#M000661">respond</a></li>
|
242
|
+
<li><a href="#M000712">respond_with_value</a></li>
|
243
|
+
<li><a href="#M000662">respond_with_value</a></li>
|
244
|
+
<li><a href="#M000654">returning</a></li>
|
245
|
+
<li><a href="#M000704">returning</a></li>
|
246
|
+
<li><a href="#M000665">send_as</a></li>
|
247
|
+
<li><a href="#M000615">send_as</a></li>
|
248
|
+
<li><a href="#M000706">set_from</a></li>
|
249
|
+
<li><a href="#M000656">set_from</a></li>
|
250
|
+
<li><a href="#M000682">silence_stderr</a></li>
|
251
|
+
<li><a href="#M000632">silence_stderr</a></li>
|
252
|
+
<li><a href="#M000683">silence_stdout</a></li>
|
253
|
+
<li><a href="#M000633">silence_stdout</a></li>
|
254
|
+
<li><a href="#M000631">silence_stream</a></li>
|
255
|
+
<li><a href="#M000681">silence_stream</a></li>
|
256
|
+
<li><a href="#M000685">silence_warnings</a></li>
|
257
|
+
<li><a href="#M000635">silence_warnings</a></li>
|
258
|
+
<li><a href="#M000634">silently</a></li>
|
259
|
+
<li><a href="#M000684">silently</a></li>
|
260
|
+
<li><a href="#M000603">singleton</a></li>
|
261
|
+
<li><a href="#M000604">singleton_class</a></li>
|
262
|
+
<li><a href="#M000701">singleton_class</a></li>
|
263
|
+
<li><a href="#M000651">singleton_class</a></li>
|
264
|
+
<li><a href="#M000667">super_as</a></li>
|
265
|
+
<li><a href="#M000617">super_as</a></li>
|
266
|
+
<li><a href="#M000666">super_method</a></li>
|
267
|
+
<li><a href="#M000616">super_method</a></li>
|
268
|
+
<li><a href="#M000669">suppress</a></li>
|
269
|
+
<li><a href="#M000619">suppress</a></li>
|
270
|
+
<li><a href="#M000623">tap</a></li>
|
271
|
+
<li><a href="#M000673">tap</a></li>
|
272
|
+
<li><a href="#M000609">to_b</a></li>
|
273
|
+
<li><a href="#M000610">true?</a></li>
|
274
|
+
<li><a href="#M000702">try</a></li>
|
275
|
+
<li><a href="#M000652">try</a></li>
|
276
|
+
<li><a href="#M000657">val?</a></li>
|
277
|
+
<li><a href="#M000707">val?</a></li>
|
278
|
+
<li><a href="#M000692">with</a></li>
|
279
|
+
<li><a href="#M000642">with</a></li>
|
278
280
|
</ul>
|
279
281
|
|
280
282
|
|
@@ -285,7 +287,7 @@
|
|
285
287
|
<div class="sectiontitle">Public Instance methods</div>
|
286
288
|
<div class="method">
|
287
289
|
<div class="title">
|
288
|
-
<a name="
|
290
|
+
<a name="M000613"></a><b>Bit</b>(n)
|
289
291
|
</div>
|
290
292
|
<div class="description">
|
291
293
|
<p>
|
@@ -305,8 +307,8 @@ This is equivalent to n-shift: "1 << n".
|
|
305
307
|
</pre>
|
306
308
|
</div>
|
307
309
|
<div class="sourcecode">
|
308
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
309
|
-
<div id="
|
310
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000613_source')" id="l_M000613_source">show source</a> ]</p>
|
311
|
+
<div id="M000613_source" class="dyn-source">
|
310
312
|
<pre>
|
311
313
|
<span class="ruby-comment cmt"># File lib/core/facets/bitmask.rb, line 100</span>
|
312
314
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Bit</span>(<span class="ruby-identifier">n</span>)
|
@@ -318,7 +320,7 @@ This is equivalent to n-shift: "1 << n".
|
|
318
320
|
</div>
|
319
321
|
<div class="method">
|
320
322
|
<div class="title">
|
321
|
-
<a name="
|
323
|
+
<a name="M000703"></a><b>__DIR__</b>()
|
322
324
|
</div>
|
323
325
|
<div class="description">
|
324
326
|
<p>
|
@@ -330,8 +332,8 @@ CREDIT: Trans
|
|
330
332
|
</p>
|
331
333
|
</div>
|
332
334
|
<div class="sourcecode">
|
333
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
334
|
-
<div id="
|
335
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000703_source')" id="l_M000703_source">show source</a> ]</p>
|
336
|
+
<div id="M000703_source" class="dyn-source">
|
335
337
|
<pre>
|
336
338
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/__dir__.rb, line 8</span>
|
337
339
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">__DIR__</span>
|
@@ -343,7 +345,7 @@ CREDIT: Trans
|
|
343
345
|
</div>
|
344
346
|
<div class="method">
|
345
347
|
<div class="title">
|
346
|
-
<a name="
|
348
|
+
<a name="M000653"></a><b>__DIR__</b>()
|
347
349
|
</div>
|
348
350
|
<div class="description">
|
349
351
|
<p>
|
@@ -355,8 +357,8 @@ CREDIT: Trans
|
|
355
357
|
</p>
|
356
358
|
</div>
|
357
359
|
<div class="sourcecode">
|
358
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
359
|
-
<div id="
|
360
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000653_source')" id="l_M000653_source">show source</a> ]</p>
|
361
|
+
<div id="M000653_source" class="dyn-source">
|
360
362
|
<pre>
|
361
363
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/__dir__.rb, line 8</span>
|
362
364
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">__DIR__</span>
|
@@ -368,11 +370,11 @@ CREDIT: Trans
|
|
368
370
|
</div>
|
369
371
|
<div class="method">
|
370
372
|
<div class="title">
|
371
|
-
<a name="
|
373
|
+
<a name="M000643"></a><b>__HERE__</b>()
|
372
374
|
</div>
|
373
375
|
<div class="sourcecode">
|
374
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
375
|
-
<div id="
|
376
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000643_source')" id="l_M000643_source">show source</a> ]</p>
|
377
|
+
<div id="M000643_source" class="dyn-source">
|
376
378
|
<pre>
|
377
379
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/d.rb, line 3</span>
|
378
380
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">__HERE__</span>
|
@@ -384,11 +386,11 @@ CREDIT: Trans
|
|
384
386
|
</div>
|
385
387
|
<div class="method">
|
386
388
|
<div class="title">
|
387
|
-
<a name="
|
389
|
+
<a name="M000693"></a><b>__HERE__</b>()
|
388
390
|
</div>
|
389
391
|
<div class="sourcecode">
|
390
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
391
|
-
<div id="
|
392
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000693_source')" id="l_M000693_source">show source</a> ]</p>
|
393
|
+
<div id="M000693_source" class="dyn-source">
|
392
394
|
<pre>
|
393
395
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/d.rb, line 3</span>
|
394
396
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">__HERE__</span>
|
@@ -400,7 +402,7 @@ CREDIT: Trans
|
|
400
402
|
</div>
|
401
403
|
<div class="method">
|
402
404
|
<div class="title">
|
403
|
-
<a name="
|
405
|
+
<a name="M000664"></a><b>as</b>(ancestor, &blk)
|
404
406
|
</div>
|
405
407
|
<div class="description">
|
406
408
|
<p>
|
@@ -424,8 +426,8 @@ directly of the given object.
|
|
424
426
|
</pre>
|
425
427
|
</div>
|
426
428
|
<div class="sourcecode">
|
427
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
428
|
-
<div id="
|
429
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000664_source')" id="l_M000664_source">show source</a> ]</p>
|
430
|
+
<div id="M000664_source" class="dyn-source">
|
429
431
|
<pre>
|
430
432
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/as.rb, line 22</span>
|
431
433
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">as</span>(<span class="ruby-identifier">ancestor</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
@@ -443,7 +445,7 @@ directly of the given object.
|
|
443
445
|
</div>
|
444
446
|
<div class="method">
|
445
447
|
<div class="title">
|
446
|
-
<a name="
|
448
|
+
<a name="M000614"></a><b>as</b>(ancestor, &blk)
|
447
449
|
</div>
|
448
450
|
<div class="description">
|
449
451
|
<p>
|
@@ -467,8 +469,8 @@ directly of the given object.
|
|
467
469
|
</pre>
|
468
470
|
</div>
|
469
471
|
<div class="sourcecode">
|
470
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
471
|
-
<div id="
|
472
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000614_source')" id="l_M000614_source">show source</a> ]</p>
|
473
|
+
<div id="M000614_source" class="dyn-source">
|
472
474
|
<pre>
|
473
475
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/as.rb, line 22</span>
|
474
476
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">as</span>(<span class="ruby-identifier">ancestor</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
@@ -486,7 +488,7 @@ directly of the given object.
|
|
486
488
|
</div>
|
487
489
|
<div class="method">
|
488
490
|
<div class="title">
|
489
|
-
<a name="
|
491
|
+
<a name="M000618"></a><b>ask</b>(question, answers=nil)
|
490
492
|
</div>
|
491
493
|
<div class="description">
|
492
494
|
<p>
|
@@ -508,13 +510,13 @@ Responding:
|
|
508
510
|
$ Are you happy? [Yn] Y <ENTER>
|
509
511
|
</pre>
|
510
512
|
<p>
|
511
|
-
The <a href="Kernel.html#
|
513
|
+
The <a href="Kernel.html#M000618">ask</a> method would return
|
512
514
|
"Y".
|
513
515
|
</p>
|
514
516
|
</div>
|
515
517
|
<div class="sourcecode">
|
516
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
517
|
-
<div id="
|
518
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000618_source')" id="l_M000618_source">show source</a> ]</p>
|
519
|
+
<div id="M000618_source" class="dyn-source">
|
518
520
|
<pre>
|
519
521
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/ask.rb, line 19</span>
|
520
522
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ask</span>(<span class="ruby-identifier">question</span>, <span class="ruby-identifier">answers</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -529,7 +531,7 @@ The <a href="Kernel.html#M000624">ask</a> method would return
|
|
529
531
|
</div>
|
530
532
|
<div class="method">
|
531
533
|
<div class="title">
|
532
|
-
<a name="
|
534
|
+
<a name="M000668"></a><b>ask</b>(question, answers=nil)
|
533
535
|
</div>
|
534
536
|
<div class="description">
|
535
537
|
<p>
|
@@ -551,13 +553,13 @@ Responding:
|
|
551
553
|
$ Are you happy? [Yn] Y <ENTER>
|
552
554
|
</pre>
|
553
555
|
<p>
|
554
|
-
The <a href="Kernel.html#
|
556
|
+
The <a href="Kernel.html#M000618">ask</a> method would return
|
555
557
|
"Y".
|
556
558
|
</p>
|
557
559
|
</div>
|
558
560
|
<div class="sourcecode">
|
559
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
560
|
-
<div id="
|
561
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000668_source')" id="l_M000668_source">show source</a> ]</p>
|
562
|
+
<div id="M000668_source" class="dyn-source">
|
561
563
|
<pre>
|
562
564
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/ask.rb, line 19</span>
|
563
565
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ask</span>(<span class="ruby-identifier">question</span>, <span class="ruby-identifier">answers</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -572,12 +574,12 @@ The <a href="Kernel.html#M000624">ask</a> method would return
|
|
572
574
|
</div>
|
573
575
|
<div class="method">
|
574
576
|
<div class="title">
|
575
|
-
<a name="
|
577
|
+
<a name="M000649"></a><b>attr_singleton_accessor</b>(*args)
|
576
578
|
</div>
|
577
579
|
<div class="description">
|
578
580
|
<p>
|
579
|
-
Takes an array or hash <a href="Kernel.html#
|
580
|
-
values and creates <a href="Kernel.html#
|
581
|
+
Takes an array or hash <a href="Kernel.html#M000642">with</a> default
|
582
|
+
values and creates <a href="Kernel.html#M000603">singleton</a>
|
581
583
|
attr_accessors for each.
|
582
584
|
</p>
|
583
585
|
<pre>
|
@@ -593,8 +595,8 @@ attr_accessors for each.
|
|
593
595
|
</pre>
|
594
596
|
</div>
|
595
597
|
<div class="sourcecode">
|
596
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
597
|
-
<div id="
|
598
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000649_source')" id="l_M000649_source">show source</a> ]</p>
|
599
|
+
<div id="M000649_source" class="dyn-source">
|
598
600
|
<pre>
|
599
601
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/attr_singleton.rb, line 54</span>
|
600
602
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">attr_singleton_accessor</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
@@ -609,12 +611,12 @@ attr_accessors for each.
|
|
609
611
|
</div>
|
610
612
|
<div class="method">
|
611
613
|
<div class="title">
|
612
|
-
<a name="
|
614
|
+
<a name="M000699"></a><b>attr_singleton_accessor</b>(*args)
|
613
615
|
</div>
|
614
616
|
<div class="description">
|
615
617
|
<p>
|
616
|
-
Takes an array or hash <a href="Kernel.html#
|
617
|
-
values and creates <a href="Kernel.html#
|
618
|
+
Takes an array or hash <a href="Kernel.html#M000642">with</a> default
|
619
|
+
values and creates <a href="Kernel.html#M000603">singleton</a>
|
618
620
|
attr_accessors for each.
|
619
621
|
</p>
|
620
622
|
<pre>
|
@@ -630,8 +632,8 @@ attr_accessors for each.
|
|
630
632
|
</pre>
|
631
633
|
</div>
|
632
634
|
<div class="sourcecode">
|
633
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
634
|
-
<div id="
|
635
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000699_source')" id="l_M000699_source">show source</a> ]</p>
|
636
|
+
<div id="M000699_source" class="dyn-source">
|
635
637
|
<pre>
|
636
638
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/attr_singleton.rb, line 54</span>
|
637
639
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">attr_singleton_accessor</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
@@ -646,12 +648,12 @@ attr_accessors for each.
|
|
646
648
|
</div>
|
647
649
|
<div class="method">
|
648
650
|
<div class="title">
|
649
|
-
<a name="
|
651
|
+
<a name="M000697"></a><b>attr_singleton_reader</b>(*args)
|
650
652
|
</div>
|
651
653
|
<div class="description">
|
652
654
|
<p>
|
653
|
-
Takes an array or a hash <a href="Kernel.html#
|
654
|
-
values and creates <a href="Kernel.html#
|
655
|
+
Takes an array or a hash <a href="Kernel.html#M000642">with</a> default
|
656
|
+
values and creates <a href="Kernel.html#M000603">singleton</a> attr_readers
|
655
657
|
for each.
|
656
658
|
</p>
|
657
659
|
<pre>
|
@@ -665,8 +667,8 @@ for each.
|
|
665
667
|
</pre>
|
666
668
|
</div>
|
667
669
|
<div class="sourcecode">
|
668
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
669
|
-
<div id="
|
670
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000697_source')" id="l_M000697_source">show source</a> ]</p>
|
671
|
+
<div id="M000697_source" class="dyn-source">
|
670
672
|
<pre>
|
671
673
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/attr_singleton.rb, line 14</span>
|
672
674
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">attr_singleton_reader</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
@@ -681,12 +683,12 @@ for each.
|
|
681
683
|
</div>
|
682
684
|
<div class="method">
|
683
685
|
<div class="title">
|
684
|
-
<a name="
|
686
|
+
<a name="M000647"></a><b>attr_singleton_reader</b>(*args)
|
685
687
|
</div>
|
686
688
|
<div class="description">
|
687
689
|
<p>
|
688
|
-
Takes an array or a hash <a href="Kernel.html#
|
689
|
-
values and creates <a href="Kernel.html#
|
690
|
+
Takes an array or a hash <a href="Kernel.html#M000642">with</a> default
|
691
|
+
values and creates <a href="Kernel.html#M000603">singleton</a> attr_readers
|
690
692
|
for each.
|
691
693
|
</p>
|
692
694
|
<pre>
|
@@ -700,8 +702,8 @@ for each.
|
|
700
702
|
</pre>
|
701
703
|
</div>
|
702
704
|
<div class="sourcecode">
|
703
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
704
|
-
<div id="
|
705
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000647_source')" id="l_M000647_source">show source</a> ]</p>
|
706
|
+
<div id="M000647_source" class="dyn-source">
|
705
707
|
<pre>
|
706
708
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/attr_singleton.rb, line 14</span>
|
707
709
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">attr_singleton_reader</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
@@ -716,12 +718,12 @@ for each.
|
|
716
718
|
</div>
|
717
719
|
<div class="method">
|
718
720
|
<div class="title">
|
719
|
-
<a name="
|
721
|
+
<a name="M000698"></a><b>attr_singleton_writer</b>(*args)
|
720
722
|
</div>
|
721
723
|
<div class="description">
|
722
724
|
<p>
|
723
|
-
Takes an array or a hash <a href="Kernel.html#
|
724
|
-
values and creates <a href="Kernel.html#
|
725
|
+
Takes an array or a hash <a href="Kernel.html#M000642">with</a> default
|
726
|
+
values and creates <a href="Kernel.html#M000603">singleton</a> attr_writers
|
725
727
|
for each.
|
726
728
|
</p>
|
727
729
|
<pre>
|
@@ -737,8 +739,8 @@ for each.
|
|
737
739
|
</pre>
|
738
740
|
</div>
|
739
741
|
<div class="sourcecode">
|
740
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
741
|
-
<div id="
|
742
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000698_source')" id="l_M000698_source">show source</a> ]</p>
|
743
|
+
<div id="M000698_source" class="dyn-source">
|
742
744
|
<pre>
|
743
745
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/attr_singleton.rb, line 34</span>
|
744
746
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">attr_singleton_writer</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
@@ -753,12 +755,12 @@ for each.
|
|
753
755
|
</div>
|
754
756
|
<div class="method">
|
755
757
|
<div class="title">
|
756
|
-
<a name="
|
758
|
+
<a name="M000648"></a><b>attr_singleton_writer</b>(*args)
|
757
759
|
</div>
|
758
760
|
<div class="description">
|
759
761
|
<p>
|
760
|
-
Takes an array or a hash <a href="Kernel.html#
|
761
|
-
values and creates <a href="Kernel.html#
|
762
|
+
Takes an array or a hash <a href="Kernel.html#M000642">with</a> default
|
763
|
+
values and creates <a href="Kernel.html#M000603">singleton</a> attr_writers
|
762
764
|
for each.
|
763
765
|
</p>
|
764
766
|
<pre>
|
@@ -774,8 +776,8 @@ for each.
|
|
774
776
|
</pre>
|
775
777
|
</div>
|
776
778
|
<div class="sourcecode">
|
777
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
778
|
-
<div id="
|
779
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000648_source')" id="l_M000648_source">show source</a> ]</p>
|
780
|
+
<div id="M000648_source" class="dyn-source">
|
779
781
|
<pre>
|
780
782
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/attr_singleton.rb, line 34</span>
|
781
783
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">attr_singleton_writer</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
@@ -790,7 +792,7 @@ for each.
|
|
790
792
|
</div>
|
791
793
|
<div class="method">
|
792
794
|
<div class="title">
|
793
|
-
<a name="
|
795
|
+
<a name="M000715"></a><b>blank?</b>()
|
794
796
|
</div>
|
795
797
|
<div class="description">
|
796
798
|
<p>
|
@@ -811,8 +813,8 @@ to
|
|
811
813
|
</pre>
|
812
814
|
</div>
|
813
815
|
<div class="sourcecode">
|
814
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
815
|
-
<div id="
|
816
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000715_source')" id="l_M000715_source">show source</a> ]</p>
|
817
|
+
<div id="M000715_source" class="dyn-source">
|
816
818
|
<pre>
|
817
819
|
<span class="ruby-comment cmt"># File lib/core/facets/blank.rb, line 14</span>
|
818
820
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">blank?</span>
|
@@ -824,7 +826,7 @@ to
|
|
824
826
|
</div>
|
825
827
|
<div class="method">
|
826
828
|
<div class="title">
|
827
|
-
<a name="
|
829
|
+
<a name="M000612"></a><b>bool?</b>()
|
828
830
|
</div>
|
829
831
|
<div class="description">
|
830
832
|
<p>
|
@@ -838,8 +840,8 @@ or <a href="FalseClass.html">FalseClass</a>, otherwise false.
|
|
838
840
|
</pre>
|
839
841
|
</div>
|
840
842
|
<div class="sourcecode">
|
841
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
842
|
-
<div id="
|
843
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000612_source')" id="l_M000612_source">show source</a> ]</p>
|
844
|
+
<div id="M000612_source" class="dyn-source">
|
843
845
|
<pre>
|
844
846
|
<span class="ruby-comment cmt"># File lib/core/facets/boolean.rb, line 127</span>
|
845
847
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bool?</span>
|
@@ -851,12 +853,12 @@ or <a href="FalseClass.html">FalseClass</a>, otherwise false.
|
|
851
853
|
</div>
|
852
854
|
<div class="method">
|
853
855
|
<div class="title">
|
854
|
-
<a name="
|
856
|
+
<a name="M000714"></a><b>callstack</b>( level = 1 )
|
855
857
|
</div>
|
856
858
|
<div class="description">
|
857
859
|
<p>
|
858
860
|
Parse a caller string and break it into its components, <a
|
859
|
-
href="Kernel.html#
|
861
|
+
href="Kernel.html#M000654">returning</a> an array. Returns:
|
860
862
|
</p>
|
861
863
|
<ul>
|
862
864
|
<li>file (<a href="String.html">String</a>)
|
@@ -895,8 +897,8 @@ be indeterminate.
|
|
895
897
|
</pre>
|
896
898
|
</div>
|
897
899
|
<div class="sourcecode">
|
898
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
899
|
-
<div id="
|
900
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000714_source')" id="l_M000714_source">show source</a> ]</p>
|
901
|
+
<div id="M000714_source" class="dyn-source">
|
900
902
|
<pre>
|
901
903
|
<span class="ruby-comment cmt"># File lib/core/facets/callstack.rb, line 27</span>
|
902
904
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">callstack</span>( <span class="ruby-identifier">level</span> = <span class="ruby-value">1</span> )
|
@@ -917,7 +919,7 @@ be indeterminate.
|
|
917
919
|
</div>
|
918
920
|
<div class="method">
|
919
921
|
<div class="title">
|
920
|
-
<a name="
|
922
|
+
<a name="M000627"></a><b>complete</b>() {|| ...}
|
921
923
|
</div>
|
922
924
|
<div class="description">
|
923
925
|
<p>
|
@@ -934,8 +936,8 @@ Repeat loop until it yeilds false or nil.
|
|
934
936
|
</pre>
|
935
937
|
</div>
|
936
938
|
<div class="sourcecode">
|
937
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
938
|
-
<div id="
|
939
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000627_source')" id="l_M000627_source">show source</a> ]</p>
|
940
|
+
<div id="M000627_source" class="dyn-source">
|
939
941
|
<pre>
|
940
942
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/complete.rb, line 13</span>
|
941
943
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">complete</span>
|
@@ -947,7 +949,7 @@ Repeat loop until it yeilds false or nil.
|
|
947
949
|
</div>
|
948
950
|
<div class="method">
|
949
951
|
<div class="title">
|
950
|
-
<a name="
|
952
|
+
<a name="M000677"></a><b>complete</b>() {|| ...}
|
951
953
|
</div>
|
952
954
|
<div class="description">
|
953
955
|
<p>
|
@@ -964,8 +966,8 @@ Repeat loop until it yeilds false or nil.
|
|
964
966
|
</pre>
|
965
967
|
</div>
|
966
968
|
<div class="sourcecode">
|
967
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
968
|
-
<div id="
|
969
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000677_source')" id="l_M000677_source">show source</a> ]</p>
|
970
|
+
<div id="M000677_source" class="dyn-source">
|
969
971
|
<pre>
|
970
972
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/complete.rb, line 13</span>
|
971
973
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">complete</span>
|
@@ -977,7 +979,7 @@ Repeat loop until it yeilds false or nil.
|
|
977
979
|
</div>
|
978
980
|
<div class="method">
|
979
981
|
<div class="title">
|
980
|
-
<a name="
|
982
|
+
<a name="M000708"></a><b>constant</b>(const)
|
981
983
|
</div>
|
982
984
|
<div class="description">
|
983
985
|
<p>
|
@@ -999,8 +1001,8 @@ unlike <tt>const_get</tt>, can handle module hierarchy.
|
|
999
1001
|
</pre>
|
1000
1002
|
</div>
|
1001
1003
|
<div class="sourcecode">
|
1002
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1003
|
-
<div id="
|
1004
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000708_source')" id="l_M000708_source">show source</a> ]</p>
|
1005
|
+
<div id="M000708_source" class="dyn-source">
|
1004
1006
|
<pre>
|
1005
1007
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/constant.rb, line 18</span>
|
1006
1008
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">constant</span>(<span class="ruby-identifier">const</span>)
|
@@ -1014,7 +1016,7 @@ unlike <tt>const_get</tt>, can handle module hierarchy.
|
|
1014
1016
|
</div>
|
1015
1017
|
<div class="method">
|
1016
1018
|
<div class="title">
|
1017
|
-
<a name="
|
1019
|
+
<a name="M000658"></a><b>constant</b>(const)
|
1018
1020
|
</div>
|
1019
1021
|
<div class="description">
|
1020
1022
|
<p>
|
@@ -1036,8 +1038,8 @@ unlike <tt>const_get</tt>, can handle module hierarchy.
|
|
1036
1038
|
</pre>
|
1037
1039
|
</div>
|
1038
1040
|
<div class="sourcecode">
|
1039
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1040
|
-
<div id="
|
1041
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000658_source')" id="l_M000658_source">show source</a> ]</p>
|
1042
|
+
<div id="M000658_source" class="dyn-source">
|
1041
1043
|
<pre>
|
1042
1044
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/constant.rb, line 18</span>
|
1043
1045
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">constant</span>(<span class="ruby-identifier">const</span>)
|
@@ -1051,11 +1053,11 @@ unlike <tt>const_get</tt>, can handle module hierarchy.
|
|
1051
1053
|
</div>
|
1052
1054
|
<div class="method">
|
1053
1055
|
<div class="title">
|
1054
|
-
<a name="
|
1056
|
+
<a name="M000644"></a><b>d</b>(*x)
|
1055
1057
|
</div>
|
1056
1058
|
<div class="description">
|
1057
1059
|
<p>
|
1058
|
-
Like <a href="Kernel.html#
|
1060
|
+
Like <a href="Kernel.html#M000650">p</a> but gives file and line number.
|
1059
1061
|
</p>
|
1060
1062
|
<pre>
|
1061
1063
|
d("hi")
|
@@ -1075,8 +1077,8 @@ TODO: This is borderline "prime". Keep here?
|
|
1075
1077
|
</pre>
|
1076
1078
|
</div>
|
1077
1079
|
<div class="sourcecode">
|
1078
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1079
|
-
<div id="
|
1080
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000644_source')" id="l_M000644_source">show source</a> ]</p>
|
1081
|
+
<div id="M000644_source" class="dyn-source">
|
1080
1082
|
<pre>
|
1081
1083
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/d.rb, line 19</span>
|
1082
1084
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">d</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">x</span>)
|
@@ -1090,11 +1092,11 @@ TODO: This is borderline "prime". Keep here?
|
|
1090
1092
|
</div>
|
1091
1093
|
<div class="method">
|
1092
1094
|
<div class="title">
|
1093
|
-
<a name="
|
1095
|
+
<a name="M000694"></a><b>d</b>(*x)
|
1094
1096
|
</div>
|
1095
1097
|
<div class="description">
|
1096
1098
|
<p>
|
1097
|
-
Like <a href="Kernel.html#
|
1099
|
+
Like <a href="Kernel.html#M000650">p</a> but gives file and line number.
|
1098
1100
|
</p>
|
1099
1101
|
<pre>
|
1100
1102
|
d("hi")
|
@@ -1114,8 +1116,8 @@ TODO: This is borderline "prime". Keep here?
|
|
1114
1116
|
</pre>
|
1115
1117
|
</div>
|
1116
1118
|
<div class="sourcecode">
|
1117
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1118
|
-
<div id="
|
1119
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000694_source')" id="l_M000694_source">show source</a> ]</p>
|
1120
|
+
<div id="M000694_source" class="dyn-source">
|
1119
1121
|
<pre>
|
1120
1122
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/d.rb, line 19</span>
|
1121
1123
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">d</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">x</span>)
|
@@ -1129,20 +1131,20 @@ TODO: This is borderline "prime". Keep here?
|
|
1129
1131
|
</div>
|
1130
1132
|
<div class="method">
|
1131
1133
|
<div class="title">
|
1132
|
-
<a name="
|
1134
|
+
<a name="M000680"></a><b>deep_copy</b>()
|
1133
1135
|
</div>
|
1134
1136
|
<div class="description">
|
1135
1137
|
<p>
|
1136
1138
|
Anything that can be marshaled can be copied in totality. This is also
|
1137
|
-
commonly called a <a href="Kernel.html#
|
1139
|
+
commonly called a <a href="Kernel.html#M000630">deep_copy</a>.
|
1138
1140
|
</p>
|
1139
1141
|
<pre>
|
1140
1142
|
"ABC".copy #=> "ABC"
|
1141
1143
|
</pre>
|
1142
1144
|
</div>
|
1143
1145
|
<div class="sourcecode">
|
1144
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1145
|
-
<div id="
|
1146
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000680_source')" id="l_M000680_source">show source</a> ]</p>
|
1147
|
+
<div id="M000680_source" class="dyn-source">
|
1146
1148
|
<pre>
|
1147
1149
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/deep_copy.rb, line 8</span>
|
1148
1150
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">deep_copy</span>
|
@@ -1154,20 +1156,20 @@ commonly called a <a href="Kernel.html#M000636">deep_copy</a>.
|
|
1154
1156
|
</div>
|
1155
1157
|
<div class="method">
|
1156
1158
|
<div class="title">
|
1157
|
-
<a name="
|
1159
|
+
<a name="M000630"></a><b>deep_copy</b>()
|
1158
1160
|
</div>
|
1159
1161
|
<div class="description">
|
1160
1162
|
<p>
|
1161
1163
|
Anything that can be marshaled can be copied in totality. This is also
|
1162
|
-
commonly called a <a href="Kernel.html#
|
1164
|
+
commonly called a <a href="Kernel.html#M000630">deep_copy</a>.
|
1163
1165
|
</p>
|
1164
1166
|
<pre>
|
1165
1167
|
"ABC".copy #=> "ABC"
|
1166
1168
|
</pre>
|
1167
1169
|
</div>
|
1168
1170
|
<div class="sourcecode">
|
1169
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1170
|
-
<div id="
|
1171
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000630_source')" id="l_M000630_source">show source</a> ]</p>
|
1172
|
+
<div id="M000630_source" class="dyn-source">
|
1171
1173
|
<pre>
|
1172
1174
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/deep_copy.rb, line 8</span>
|
1173
1175
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">deep_copy</span>
|
@@ -1179,24 +1181,24 @@ commonly called a <a href="Kernel.html#M000636">deep_copy</a>.
|
|
1179
1181
|
</div>
|
1180
1182
|
<div class="method">
|
1181
1183
|
<div class="title">
|
1182
|
-
<a name="
|
1184
|
+
<a name="M000607"></a><b>demand</b>( promise )
|
1183
1185
|
</div>
|
1184
1186
|
<div class="description">
|
1185
1187
|
<p>
|
1186
|
-
Forces the result of a <a href="Kernel.html#
|
1188
|
+
Forces the result of a <a href="Kernel.html#M000606">promise</a> to be
|
1187
1189
|
computed (if necessary) and returns the bare result object. Once evaluated,
|
1188
|
-
the result of the <a href="Kernel.html#
|
1190
|
+
the result of the <a href="Kernel.html#M000606">promise</a> will be cached.
|
1189
1191
|
Nested promises will be evaluated together, until the first non-<a
|
1190
|
-
href="Kernel.html#
|
1192
|
+
href="Kernel.html#M000606">promise</a> result.
|
1191
1193
|
</p>
|
1192
1194
|
<p>
|
1193
1195
|
If called on a value that is not a <a
|
1194
|
-
href="Kernel.html#
|
1196
|
+
href="Kernel.html#M000606">promise</a>, it will simply return it.
|
1195
1197
|
</p>
|
1196
1198
|
</div>
|
1197
1199
|
<div class="sourcecode">
|
1198
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1199
|
-
<div id="
|
1200
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000607_source')" id="l_M000607_source">show source</a> ]</p>
|
1201
|
+
<div id="M000607_source" class="dyn-source">
|
1200
1202
|
<pre>
|
1201
1203
|
<span class="ruby-comment cmt"># File lib/core/facets/lazy.rb, line 219</span>
|
1202
1204
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">demand</span>( <span class="ruby-identifier">promise</span> )
|
@@ -1212,7 +1214,7 @@ href="Kernel.html#M000612">promise</a>, it will simply return it.
|
|
1212
1214
|
</div>
|
1213
1215
|
<div class="method">
|
1214
1216
|
<div class="title">
|
1215
|
-
<a name="
|
1217
|
+
<a name="M000670"></a><b>demo</b>(out=$stdout,&block)
|
1216
1218
|
</div>
|
1217
1219
|
<div class="description">
|
1218
1220
|
<p>
|
@@ -1237,8 +1239,8 @@ Produces:
|
|
1237
1239
|
</pre>
|
1238
1240
|
</div>
|
1239
1241
|
<div class="sourcecode">
|
1240
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1241
|
-
<div id="
|
1242
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000670_source')" id="l_M000670_source">show source</a> ]</p>
|
1243
|
+
<div id="M000670_source" class="dyn-source">
|
1242
1244
|
<pre>
|
1243
1245
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/demo.rb, line 19</span>
|
1244
1246
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">demo</span>(<span class="ruby-identifier">out</span>=<span class="ruby-identifier">$stdout</span>,<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -1250,7 +1252,7 @@ Produces:
|
|
1250
1252
|
</div>
|
1251
1253
|
<div class="method">
|
1252
1254
|
<div class="title">
|
1253
|
-
<a name="
|
1255
|
+
<a name="M000620"></a><b>demo</b>(out=$stdout,&block)
|
1254
1256
|
</div>
|
1255
1257
|
<div class="description">
|
1256
1258
|
<p>
|
@@ -1275,8 +1277,8 @@ Produces:
|
|
1275
1277
|
</pre>
|
1276
1278
|
</div>
|
1277
1279
|
<div class="sourcecode">
|
1278
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1279
|
-
<div id="
|
1280
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000620_source')" id="l_M000620_source">show source</a> ]</p>
|
1281
|
+
<div id="M000620_source" class="dyn-source">
|
1280
1282
|
<pre>
|
1281
1283
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/demo.rb, line 19</span>
|
1282
1284
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">demo</span>(<span class="ruby-identifier">out</span>=<span class="ruby-identifier">$stdout</span>,<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -1288,13 +1290,13 @@ Produces:
|
|
1288
1290
|
</div>
|
1289
1291
|
<div class="method">
|
1290
1292
|
<div class="title">
|
1291
|
-
<a name="
|
1293
|
+
<a name="M000605"></a><b>eigenclass</b>()
|
1292
1294
|
</div>
|
1293
1295
|
<div class="description">
|
1294
1296
|
<p>
|
1295
1297
|
During this trying time when no one can get their techie catchwords to
|
1296
1298
|
stick to the refrigerator no matter how hard they slap it # <a
|
1297
|
-
href="Kernel.html#
|
1299
|
+
href="Kernel.html#M000642">with</a> the enchanted magnetic spatula, it’s
|
1298
1300
|
good to know that the contrived phrases really do fly, graceful and
|
1299
1301
|
unclasped and bearing north toward chilled shrimp. I know what my
|
1300
1302
|
Hallowe’en pumpkin is going to say.
|
@@ -1306,8 +1308,8 @@ Hallowe’en pumpkin is going to say.
|
|
1306
1308
|
</pre>
|
1307
1309
|
</div>
|
1308
1310
|
<div class="sourcecode">
|
1309
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1310
|
-
<div id="
|
1311
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000605_source')" id="l_M000605_source">show source</a> ]</p>
|
1312
|
+
<div id="M000605_source" class="dyn-source">
|
1311
1313
|
<pre>
|
1312
1314
|
<span class="ruby-comment cmt"># File lib/core/facets/metaid.rb, line 82</span>
|
1313
1315
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">eigenclass</span>
|
@@ -1319,7 +1321,7 @@ Hallowe’en pumpkin is going to say.
|
|
1319
1321
|
</div>
|
1320
1322
|
<div class="method">
|
1321
1323
|
<div class="title">
|
1322
|
-
<a name="
|
1324
|
+
<a name="M000636"></a><b>enable_warnings</b>() {|| ...}
|
1323
1325
|
</div>
|
1324
1326
|
<div class="description">
|
1325
1327
|
<p>
|
@@ -1331,8 +1333,8 @@ original value afterwards.
|
|
1331
1333
|
</pre>
|
1332
1334
|
</div>
|
1333
1335
|
<div class="sourcecode">
|
1334
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1335
|
-
<div id="
|
1336
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000636_source')" id="l_M000636_source">show source</a> ]</p>
|
1337
|
+
<div id="M000636_source" class="dyn-source">
|
1336
1338
|
<pre>
|
1337
1339
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/silence.rb, line 67</span>
|
1338
1340
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">enable_warnings</span>
|
@@ -1347,7 +1349,7 @@ original value afterwards.
|
|
1347
1349
|
</div>
|
1348
1350
|
<div class="method">
|
1349
1351
|
<div class="title">
|
1350
|
-
<a name="
|
1352
|
+
<a name="M000686"></a><b>enable_warnings</b>() {|| ...}
|
1351
1353
|
</div>
|
1352
1354
|
<div class="description">
|
1353
1355
|
<p>
|
@@ -1359,8 +1361,8 @@ original value afterwards.
|
|
1359
1361
|
</pre>
|
1360
1362
|
</div>
|
1361
1363
|
<div class="sourcecode">
|
1362
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1363
|
-
<div id="
|
1364
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000686_source')" id="l_M000686_source">show source</a> ]</p>
|
1365
|
+
<div id="M000686_source" class="dyn-source">
|
1364
1366
|
<pre>
|
1365
1367
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/silence.rb, line 67</span>
|
1366
1368
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">enable_warnings</span>
|
@@ -1375,7 +1377,7 @@ original value afterwards.
|
|
1375
1377
|
</div>
|
1376
1378
|
<div class="method">
|
1377
1379
|
<div class="title">
|
1378
|
-
<a name="
|
1380
|
+
<a name="M000676"></a><b>ergo</b>() {|self| ...}
|
1379
1381
|
</div>
|
1380
1382
|
<div class="description">
|
1381
1383
|
<p>
|
@@ -1389,16 +1391,16 @@ Yield self -or- return self.
|
|
1389
1391
|
nil.ergo{ |o| o.foobar } #=> nil
|
1390
1392
|
</pre>
|
1391
1393
|
<p>
|
1392
|
-
This is like <a href="Kernel.html#
|
1393
|
-
href="Kernel.html#
|
1394
|
+
This is like <a href="Kernel.html#M000623">tap</a>, but <a
|
1395
|
+
href="Kernel.html#M000623">tap</a> yields self -and- returns self.
|
1394
1396
|
</p>
|
1395
1397
|
<pre>
|
1396
1398
|
CREDIT: Daniel DeLorme
|
1397
1399
|
</pre>
|
1398
1400
|
</div>
|
1399
1401
|
<div class="sourcecode">
|
1400
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1401
|
-
<div id="
|
1402
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000676_source')" id="l_M000676_source">show source</a> ]</p>
|
1403
|
+
<div id="M000676_source" class="dyn-source">
|
1402
1404
|
<pre>
|
1403
1405
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/ergo.rb, line 17</span>
|
1404
1406
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ergo</span> <span class="ruby-operator">&</span><span class="ruby-identifier">b</span>
|
@@ -1414,7 +1416,7 @@ href="Kernel.html#M000629">tap</a> yields self -and- returns self.
|
|
1414
1416
|
</div>
|
1415
1417
|
<div class="method">
|
1416
1418
|
<div class="title">
|
1417
|
-
<a name="
|
1419
|
+
<a name="M000626"></a><b>ergo</b>() {|self| ...}
|
1418
1420
|
</div>
|
1419
1421
|
<div class="description">
|
1420
1422
|
<p>
|
@@ -1428,16 +1430,16 @@ Yield self -or- return self.
|
|
1428
1430
|
nil.ergo{ |o| o.foobar } #=> nil
|
1429
1431
|
</pre>
|
1430
1432
|
<p>
|
1431
|
-
This is like <a href="Kernel.html#
|
1432
|
-
href="Kernel.html#
|
1433
|
+
This is like <a href="Kernel.html#M000623">tap</a>, but <a
|
1434
|
+
href="Kernel.html#M000623">tap</a> yields self -and- returns self.
|
1433
1435
|
</p>
|
1434
1436
|
<pre>
|
1435
1437
|
CREDIT: Daniel DeLorme
|
1436
1438
|
</pre>
|
1437
1439
|
</div>
|
1438
1440
|
<div class="sourcecode">
|
1439
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1440
|
-
<div id="
|
1441
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000626_source')" id="l_M000626_source">show source</a> ]</p>
|
1442
|
+
<div id="M000626_source" class="dyn-source">
|
1441
1443
|
<pre>
|
1442
1444
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/ergo.rb, line 17</span>
|
1443
1445
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ergo</span> <span class="ruby-operator">&</span><span class="ruby-identifier">b</span>
|
@@ -1453,7 +1455,7 @@ href="Kernel.html#M000629">tap</a> yields self -and- returns self.
|
|
1453
1455
|
</div>
|
1454
1456
|
<div class="method">
|
1455
1457
|
<div class="title">
|
1456
|
-
<a name="
|
1458
|
+
<a name="M000611"></a><b>false?</b>()
|
1457
1459
|
</div>
|
1458
1460
|
<div class="description">
|
1459
1461
|
<p>
|
@@ -1467,8 +1469,8 @@ href="FalseClass.html">FalseClass</a>, otherwise false.
|
|
1467
1469
|
</pre>
|
1468
1470
|
</div>
|
1469
1471
|
<div class="sourcecode">
|
1470
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1471
|
-
<div id="
|
1472
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000611_source')" id="l_M000611_source">show source</a> ]</p>
|
1473
|
+
<div id="M000611_source" class="dyn-source">
|
1472
1474
|
<pre>
|
1473
1475
|
<span class="ruby-comment cmt"># File lib/core/facets/boolean.rb, line 116</span>
|
1474
1476
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">false?</span>
|
@@ -1480,25 +1482,25 @@ href="FalseClass.html">FalseClass</a>, otherwise false.
|
|
1480
1482
|
</div>
|
1481
1483
|
<div class="method">
|
1482
1484
|
<div class="title">
|
1483
|
-
<a name="
|
1485
|
+
<a name="M000608"></a><b>future</b>( ) {|result| ...}
|
1484
1486
|
</div>
|
1485
1487
|
<div class="description">
|
1486
1488
|
<p>
|
1487
1489
|
Schedules a computation to be run asynchronously in a background thread and
|
1488
|
-
returns a <a href="Kernel.html#
|
1489
|
-
attempt to <a href="Kernel.html#
|
1490
|
-
href="Kernel.html#
|
1490
|
+
returns a <a href="Kernel.html#M000606">promise</a> for its result. An
|
1491
|
+
attempt to <a href="Kernel.html#M000607">demand</a> the result of the <a
|
1492
|
+
href="Kernel.html#M000606">promise</a> will block until the computation
|
1491
1493
|
finishes.
|
1492
1494
|
</p>
|
1493
1495
|
<p>
|
1494
|
-
As <a href="Kernel.html#
|
1495
|
-
href="Kernel.html#
|
1496
|
-
href="Kernel.html#
|
1496
|
+
As <a href="Kernel.html#M000642">with</a> <a
|
1497
|
+
href="Kernel.html#M000606">Kernel.promise</a>, this passes the block a <a
|
1498
|
+
href="Kernel.html#M000606">promise</a> for its own result. Use wisely.
|
1497
1499
|
</p>
|
1498
1500
|
</div>
|
1499
1501
|
<div class="sourcecode">
|
1500
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1501
|
-
<div id="
|
1502
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000608_source')" id="l_M000608_source">show source</a> ]</p>
|
1503
|
+
<div id="M000608_source" class="dyn-source">
|
1502
1504
|
<pre>
|
1503
1505
|
<span class="ruby-comment cmt"># File lib/core/facets/lazy.rb, line 234</span>
|
1504
1506
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">future</span>( <span class="ruby-operator">&</span><span class="ruby-identifier">computation</span> ) <span class="ruby-comment cmt">#:yields: result</span>
|
@@ -1510,7 +1512,7 @@ href="Kernel.html#M000612">promise</a> for its own result. Use wisely.
|
|
1510
1512
|
</div>
|
1511
1513
|
<div class="method">
|
1512
1514
|
<div class="title">
|
1513
|
-
<a name="
|
1515
|
+
<a name="M000713"></a><b>in?</b>(other)
|
1514
1516
|
</div>
|
1515
1517
|
<div class="description">
|
1516
1518
|
<p>
|
@@ -1522,8 +1524,8 @@ Is self included in other?
|
|
1522
1524
|
</pre>
|
1523
1525
|
</div>
|
1524
1526
|
<div class="sourcecode">
|
1525
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1526
|
-
<div id="
|
1527
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000713_source')" id="l_M000713_source">show source</a> ]</p>
|
1528
|
+
<div id="M000713_source" class="dyn-source">
|
1527
1529
|
<pre>
|
1528
1530
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/in.rb, line 8</span>
|
1529
1531
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">in?</span>(<span class="ruby-identifier">other</span>)
|
@@ -1535,7 +1537,7 @@ Is self included in other?
|
|
1535
1537
|
</div>
|
1536
1538
|
<div class="method">
|
1537
1539
|
<div class="title">
|
1538
|
-
<a name="
|
1540
|
+
<a name="M000663"></a><b>in?</b>(other)
|
1539
1541
|
</div>
|
1540
1542
|
<div class="description">
|
1541
1543
|
<p>
|
@@ -1547,8 +1549,8 @@ Is self included in other?
|
|
1547
1549
|
</pre>
|
1548
1550
|
</div>
|
1549
1551
|
<div class="sourcecode">
|
1550
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1551
|
-
<div id="
|
1552
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000663_source')" id="l_M000663_source">show source</a> ]</p>
|
1553
|
+
<div id="M000663_source" class="dyn-source">
|
1552
1554
|
<pre>
|
1553
1555
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/in.rb, line 8</span>
|
1554
1556
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">in?</span>(<span class="ruby-identifier">other</span>)
|
@@ -1560,12 +1562,12 @@ Is self included in other?
|
|
1560
1562
|
</div>
|
1561
1563
|
<div class="method">
|
1562
1564
|
<div class="title">
|
1563
|
-
<a name="
|
1565
|
+
<a name="M000624"></a><b>instance</b>()
|
1564
1566
|
</div>
|
1565
1567
|
<div class="description">
|
1566
1568
|
<p>
|
1567
|
-
Access internals of an object <a href="Kernel.html#
|
1568
|
-
href="Kernel.html#
|
1569
|
+
Access internals of an object <a href="Kernel.html#M000614">as</a> if <a
|
1570
|
+
href="Kernel.html#M000642">with</a> private access.
|
1569
1571
|
</p>
|
1570
1572
|
<pre>
|
1571
1573
|
class X
|
@@ -1574,8 +1576,8 @@ href="Kernel.html#M000647">with</a> private access.
|
|
1574
1576
|
</pre>
|
1575
1577
|
</div>
|
1576
1578
|
<div class="sourcecode">
|
1577
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1578
|
-
<div id="
|
1579
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000624_source')" id="l_M000624_source">show source</a> ]</p>
|
1580
|
+
<div id="M000624_source" class="dyn-source">
|
1579
1581
|
<pre>
|
1580
1582
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance.rb, line 12</span>
|
1581
1583
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">instance</span>
|
@@ -1589,12 +1591,12 @@ href="Kernel.html#M000647">with</a> private access.
|
|
1589
1591
|
</div>
|
1590
1592
|
<div class="method">
|
1591
1593
|
<div class="title">
|
1592
|
-
<a name="
|
1594
|
+
<a name="M000674"></a><b>instance</b>()
|
1593
1595
|
</div>
|
1594
1596
|
<div class="description">
|
1595
1597
|
<p>
|
1596
|
-
Access internals of an object <a href="Kernel.html#
|
1597
|
-
href="Kernel.html#
|
1598
|
+
Access internals of an object <a href="Kernel.html#M000614">as</a> if <a
|
1599
|
+
href="Kernel.html#M000642">with</a> private access.
|
1598
1600
|
</p>
|
1599
1601
|
<pre>
|
1600
1602
|
class X
|
@@ -1603,8 +1605,8 @@ href="Kernel.html#M000647">with</a> private access.
|
|
1603
1605
|
</pre>
|
1604
1606
|
</div>
|
1605
1607
|
<div class="sourcecode">
|
1606
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1607
|
-
<div id="
|
1608
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000674_source')" id="l_M000674_source">show source</a> ]</p>
|
1609
|
+
<div id="M000674_source" class="dyn-source">
|
1608
1610
|
<pre>
|
1609
1611
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance.rb, line 12</span>
|
1610
1612
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">instance</span>
|
@@ -1618,11 +1620,11 @@ href="Kernel.html#M000647">with</a> private access.
|
|
1618
1620
|
</div>
|
1619
1621
|
<div class="method">
|
1620
1622
|
<div class="title">
|
1621
|
-
<a name="
|
1623
|
+
<a name="M000641"></a><b>instance_assign</b>(hash)
|
1622
1624
|
</div>
|
1623
1625
|
<div class="description">
|
1624
1626
|
<p>
|
1625
|
-
Set <a href="Kernel.html#
|
1627
|
+
Set <a href="Kernel.html#M000624">instance</a> variables using a hash.
|
1626
1628
|
</p>
|
1627
1629
|
<pre>
|
1628
1630
|
instance_assign('@a'=>1, '@b'=>2)
|
@@ -1630,13 +1632,13 @@ Set <a href="Kernel.html#M000630">instance</a> variables using a hash.
|
|
1630
1632
|
@b #=> 2
|
1631
1633
|
</pre>
|
1632
1634
|
<p>
|
1633
|
-
WARNING: <a href="Kernel.html#
|
1635
|
+
WARNING: <a href="Kernel.html#M000641">instance_assign</a> will be
|
1634
1636
|
deprecated. Use instance_vars.update instead.
|
1635
1637
|
</p>
|
1636
1638
|
</div>
|
1637
1639
|
<div class="sourcecode">
|
1638
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1639
|
-
<div id="
|
1640
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000641_source')" id="l_M000641_source">show source</a> ]</p>
|
1641
|
+
<div id="M000641_source" class="dyn-source">
|
1640
1642
|
<pre>
|
1641
1643
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_assign.rb, line 32</span>
|
1642
1644
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">instance_assign</span>(<span class="ruby-identifier">hash</span>)
|
@@ -1652,11 +1654,11 @@ deprecated. Use instance_vars.update instead.
|
|
1652
1654
|
</div>
|
1653
1655
|
<div class="method">
|
1654
1656
|
<div class="title">
|
1655
|
-
<a name="
|
1657
|
+
<a name="M000691"></a><b>instance_assign</b>(hash)
|
1656
1658
|
</div>
|
1657
1659
|
<div class="description">
|
1658
1660
|
<p>
|
1659
|
-
Set <a href="Kernel.html#
|
1661
|
+
Set <a href="Kernel.html#M000624">instance</a> variables using a hash.
|
1660
1662
|
</p>
|
1661
1663
|
<pre>
|
1662
1664
|
instance_assign('@a'=>1, '@b'=>2)
|
@@ -1664,13 +1666,13 @@ Set <a href="Kernel.html#M000630">instance</a> variables using a hash.
|
|
1664
1666
|
@b #=> 2
|
1665
1667
|
</pre>
|
1666
1668
|
<p>
|
1667
|
-
WARNING: <a href="Kernel.html#
|
1669
|
+
WARNING: <a href="Kernel.html#M000641">instance_assign</a> will be
|
1668
1670
|
deprecated. Use instance_vars.update instead.
|
1669
1671
|
</p>
|
1670
1672
|
</div>
|
1671
1673
|
<div class="sourcecode">
|
1672
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1673
|
-
<div id="
|
1674
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000691_source')" id="l_M000691_source">show source</a> ]</p>
|
1675
|
+
<div id="M000691_source" class="dyn-source">
|
1674
1676
|
<pre>
|
1675
1677
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_assign.rb, line 32</span>
|
1676
1678
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">instance_assign</span>(<span class="ruby-identifier">hash</span>)
|
@@ -1686,14 +1688,14 @@ deprecated. Use instance_vars.update instead.
|
|
1686
1688
|
</div>
|
1687
1689
|
<div class="method">
|
1688
1690
|
<div class="title">
|
1689
|
-
<a name="
|
1691
|
+
<a name="M000695"></a><b>instance_class</b>(&block)
|
1690
1692
|
</div>
|
1691
1693
|
<div class="description">
|
1692
1694
|
<p>
|
1693
1695
|
Easy access to an object qua class, otherwise known <a
|
1694
|
-
href="Kernel.html#
|
1695
|
-
href="Kernel.html#
|
1696
|
-
href="Kernel.html#
|
1696
|
+
href="Kernel.html#M000614">as</a> the object‘s <a
|
1697
|
+
href="Kernel.html#M000602">metaclass</a> or <a
|
1698
|
+
href="Kernel.html#M000603">singleton</a> class. This implemnetation alwasy
|
1697
1699
|
returns the class, even if a block is provided to eval against it.
|
1698
1700
|
</p>
|
1699
1701
|
<pre>
|
@@ -1703,8 +1705,8 @@ returns the class, even if a block is provided to eval against it.
|
|
1703
1705
|
</pre>
|
1704
1706
|
</div>
|
1705
1707
|
<div class="sourcecode">
|
1706
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1707
|
-
<div id="
|
1708
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000695_source')" id="l_M000695_source">show source</a> ]</p>
|
1709
|
+
<div id="M000695_source" class="dyn-source">
|
1708
1710
|
<pre>
|
1709
1711
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_class.rb, line 19</span>
|
1710
1712
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">instance_class</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -1717,14 +1719,14 @@ returns the class, even if a block is provided to eval against it.
|
|
1717
1719
|
</div>
|
1718
1720
|
<div class="method">
|
1719
1721
|
<div class="title">
|
1720
|
-
<a name="
|
1722
|
+
<a name="M000645"></a><b>instance_class</b>(&block)
|
1721
1723
|
</div>
|
1722
1724
|
<div class="description">
|
1723
1725
|
<p>
|
1724
1726
|
Easy access to an object qua class, otherwise known <a
|
1725
|
-
href="Kernel.html#
|
1726
|
-
href="Kernel.html#
|
1727
|
-
href="Kernel.html#
|
1727
|
+
href="Kernel.html#M000614">as</a> the object‘s <a
|
1728
|
+
href="Kernel.html#M000602">metaclass</a> or <a
|
1729
|
+
href="Kernel.html#M000603">singleton</a> class. This implemnetation alwasy
|
1728
1730
|
returns the class, even if a block is provided to eval against it.
|
1729
1731
|
</p>
|
1730
1732
|
<pre>
|
@@ -1734,8 +1736,8 @@ returns the class, even if a block is provided to eval against it.
|
|
1734
1736
|
</pre>
|
1735
1737
|
</div>
|
1736
1738
|
<div class="sourcecode">
|
1737
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1738
|
-
<div id="
|
1739
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000645_source')" id="l_M000645_source">show source</a> ]</p>
|
1740
|
+
<div id="M000645_source" class="dyn-source">
|
1739
1741
|
<pre>
|
1740
1742
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_class.rb, line 19</span>
|
1741
1743
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">instance_class</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -1748,7 +1750,7 @@ returns the class, even if a block is provided to eval against it.
|
|
1748
1750
|
</div>
|
1749
1751
|
<div class="method">
|
1750
1752
|
<div class="title">
|
1751
|
-
<a name="
|
1753
|
+
<a name="M000646"></a><b>instance_exec</b>(*arguments, &block)
|
1752
1754
|
</div>
|
1753
1755
|
<div class="description">
|
1754
1756
|
<p>
|
@@ -1760,8 +1762,8 @@ instead.
|
|
1760
1762
|
</p>
|
1761
1763
|
</div>
|
1762
1764
|
<div class="sourcecode">
|
1763
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1764
|
-
<div id="
|
1765
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000646_source')" id="l_M000646_source">show source</a> ]</p>
|
1766
|
+
<div id="M000646_source" class="dyn-source">
|
1765
1767
|
<pre>
|
1766
1768
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_exec.rb, line 12</span>
|
1767
1769
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">instance_exec</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">arguments</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -1773,7 +1775,7 @@ instead.
|
|
1773
1775
|
</div>
|
1774
1776
|
<div class="method">
|
1775
1777
|
<div class="title">
|
1776
|
-
<a name="
|
1778
|
+
<a name="M000696"></a><b>instance_exec</b>(*arguments, &block)
|
1777
1779
|
</div>
|
1778
1780
|
<div class="description">
|
1779
1781
|
<p>
|
@@ -1785,8 +1787,8 @@ instead.
|
|
1785
1787
|
</p>
|
1786
1788
|
</div>
|
1787
1789
|
<div class="sourcecode">
|
1788
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1789
|
-
<div id="
|
1790
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000696_source')" id="l_M000696_source">show source</a> ]</p>
|
1791
|
+
<div id="M000696_source" class="dyn-source">
|
1790
1792
|
<pre>
|
1791
1793
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_exec.rb, line 12</span>
|
1792
1794
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">instance_exec</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">arguments</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -1798,11 +1800,11 @@ instead.
|
|
1798
1800
|
</div>
|
1799
1801
|
<div class="method">
|
1800
1802
|
<div class="title">
|
1801
|
-
<a name="
|
1803
|
+
<a name="M000690"></a><b>instance_values</b>()
|
1802
1804
|
</div>
|
1803
1805
|
<div class="description">
|
1804
1806
|
<p>
|
1805
|
-
Return <a href="Kernel.html#
|
1807
|
+
Return <a href="Kernel.html#M000624">instance</a> variable values in an
|
1806
1808
|
array.
|
1807
1809
|
</p>
|
1808
1810
|
<pre>
|
@@ -1817,13 +1819,13 @@ array.
|
|
1817
1819
|
x.instance_values #=> { "a"=>1, "b"=>2 }
|
1818
1820
|
</pre>
|
1819
1821
|
<p>
|
1820
|
-
WARNING: <a href="Kernel.html#
|
1822
|
+
WARNING: <a href="Kernel.html#M000640">instance_values</a> will be
|
1821
1823
|
deprecated. Use instance_vars.to_hash instead.
|
1822
1824
|
</p>
|
1823
1825
|
</div>
|
1824
1826
|
<div class="sourcecode">
|
1825
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1826
|
-
<div id="
|
1827
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000690_source')" id="l_M000690_source">show source</a> ]</p>
|
1828
|
+
<div id="M000690_source" class="dyn-source">
|
1827
1829
|
<pre>
|
1828
1830
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_assign.rb, line 17</span>
|
1829
1831
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">instance_values</span>
|
@@ -1838,11 +1840,11 @@ deprecated. Use instance_vars.to_hash instead.
|
|
1838
1840
|
</div>
|
1839
1841
|
<div class="method">
|
1840
1842
|
<div class="title">
|
1841
|
-
<a name="
|
1843
|
+
<a name="M000640"></a><b>instance_values</b>()
|
1842
1844
|
</div>
|
1843
1845
|
<div class="description">
|
1844
1846
|
<p>
|
1845
|
-
Return <a href="Kernel.html#
|
1847
|
+
Return <a href="Kernel.html#M000624">instance</a> variable values in an
|
1846
1848
|
array.
|
1847
1849
|
</p>
|
1848
1850
|
<pre>
|
@@ -1857,13 +1859,13 @@ array.
|
|
1857
1859
|
x.instance_values #=> { "a"=>1, "b"=>2 }
|
1858
1860
|
</pre>
|
1859
1861
|
<p>
|
1860
|
-
WARNING: <a href="Kernel.html#
|
1862
|
+
WARNING: <a href="Kernel.html#M000640">instance_values</a> will be
|
1861
1863
|
deprecated. Use instance_vars.to_hash instead.
|
1862
1864
|
</p>
|
1863
1865
|
</div>
|
1864
1866
|
<div class="sourcecode">
|
1865
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1866
|
-
<div id="
|
1867
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000640_source')" id="l_M000640_source">show source</a> ]</p>
|
1868
|
+
<div id="M000640_source" class="dyn-source">
|
1867
1869
|
<pre>
|
1868
1870
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_assign.rb, line 17</span>
|
1869
1871
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">instance_values</span>
|
@@ -1878,11 +1880,11 @@ deprecated. Use instance_vars.to_hash instead.
|
|
1878
1880
|
</div>
|
1879
1881
|
<div class="method">
|
1880
1882
|
<div class="title">
|
1881
|
-
<a name="
|
1883
|
+
<a name="M000639"></a><b>instance_vars</b>()
|
1882
1884
|
</div>
|
1883
1885
|
<div class="sourcecode">
|
1884
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1885
|
-
<div id="
|
1886
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000639_source')" id="l_M000639_source">show source</a> ]</p>
|
1887
|
+
<div id="M000639_source" class="dyn-source">
|
1886
1888
|
<pre>
|
1887
1889
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_variables.rb, line 3</span>
|
1888
1890
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">instance_vars</span>
|
@@ -1894,11 +1896,11 @@ deprecated. Use instance_vars.to_hash instead.
|
|
1894
1896
|
</div>
|
1895
1897
|
<div class="method">
|
1896
1898
|
<div class="title">
|
1897
|
-
<a name="
|
1899
|
+
<a name="M000689"></a><b>instance_vars</b>()
|
1898
1900
|
</div>
|
1899
1901
|
<div class="sourcecode">
|
1900
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1901
|
-
<div id="
|
1902
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000689_source')" id="l_M000689_source">show source</a> ]</p>
|
1903
|
+
<div id="M000689_source" class="dyn-source">
|
1902
1904
|
<pre>
|
1903
1905
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_variables.rb, line 3</span>
|
1904
1906
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">instance_vars</span>
|
@@ -1910,11 +1912,11 @@ deprecated. Use instance_vars.to_hash instead.
|
|
1910
1912
|
</div>
|
1911
1913
|
<div class="method">
|
1912
1914
|
<div class="title">
|
1913
|
-
<a name="
|
1915
|
+
<a name="M000660"></a><b>load_local</b>(fname, safe=nil)
|
1914
1916
|
</div>
|
1915
1917
|
<div class="description">
|
1916
1918
|
<p>
|
1917
|
-
Load file from same dir <a href="Kernel.html#
|
1919
|
+
Load file from same dir <a href="Kernel.html#M000614">as</a> calling
|
1918
1920
|
script.
|
1919
1921
|
</p>
|
1920
1922
|
<pre>
|
@@ -1922,10 +1924,10 @@ script.
|
|
1922
1924
|
</pre>
|
1923
1925
|
</div>
|
1924
1926
|
<div class="sourcecode">
|
1925
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1926
|
-
<div id="
|
1927
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000660_source')" id="l_M000660_source">show source</a> ]</p>
|
1928
|
+
<div id="M000660_source" class="dyn-source">
|
1927
1929
|
<pre>
|
1928
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/
|
1930
|
+
<span class="ruby-comment cmt"># File lib/core/facets/kernel/require_local.rb, line 17</span>
|
1929
1931
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">load_local</span>(<span class="ruby-identifier">fname</span>, <span class="ruby-identifier">safe</span>=<span class="ruby-keyword kw">nil</span>)
|
1930
1932
|
<span class="ruby-comment cmt">#fdir = File.expand_path( File.dirname( caller[0] ) )</span>
|
1931
1933
|
<span class="ruby-identifier">fdir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>( <span class="ruby-identifier">caller</span>[<span class="ruby-value">0</span>] )
|
@@ -1937,11 +1939,11 @@ script.
|
|
1937
1939
|
</div>
|
1938
1940
|
<div class="method">
|
1939
1941
|
<div class="title">
|
1940
|
-
<a name="
|
1942
|
+
<a name="M000710"></a><b>load_local</b>(fname, safe=nil)
|
1941
1943
|
</div>
|
1942
1944
|
<div class="description">
|
1943
1945
|
<p>
|
1944
|
-
Load file from same dir <a href="Kernel.html#
|
1946
|
+
Load file from same dir <a href="Kernel.html#M000614">as</a> calling
|
1945
1947
|
script.
|
1946
1948
|
</p>
|
1947
1949
|
<pre>
|
@@ -1949,10 +1951,10 @@ script.
|
|
1949
1951
|
</pre>
|
1950
1952
|
</div>
|
1951
1953
|
<div class="sourcecode">
|
1952
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1953
|
-
<div id="
|
1954
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000710_source')" id="l_M000710_source">show source</a> ]</p>
|
1955
|
+
<div id="M000710_source" class="dyn-source">
|
1954
1956
|
<pre>
|
1955
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/
|
1957
|
+
<span class="ruby-comment cmt"># File lib/core/facets/kernel/require_local.rb, line 17</span>
|
1956
1958
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">load_local</span>(<span class="ruby-identifier">fname</span>, <span class="ruby-identifier">safe</span>=<span class="ruby-keyword kw">nil</span>)
|
1957
1959
|
<span class="ruby-comment cmt">#fdir = File.expand_path( File.dirname( caller[0] ) )</span>
|
1958
1960
|
<span class="ruby-identifier">fdir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>( <span class="ruby-identifier">caller</span>[<span class="ruby-value">0</span>] )
|
@@ -1964,7 +1966,7 @@ script.
|
|
1964
1966
|
</div>
|
1965
1967
|
<div class="method">
|
1966
1968
|
<div class="title">
|
1967
|
-
<a name="
|
1969
|
+
<a name="M000671"></a><b>maybe</b>(chance = 0.5) {|if rand < chance| ...}
|
1968
1970
|
</div>
|
1969
1971
|
<div class="description">
|
1970
1972
|
<p>
|
@@ -1977,8 +1979,8 @@ a 50/50 chance to being executed.
|
|
1977
1979
|
</pre>
|
1978
1980
|
</div>
|
1979
1981
|
<div class="sourcecode">
|
1980
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1981
|
-
<div id="
|
1982
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000671_source')" id="l_M000671_source">show source</a> ]</p>
|
1983
|
+
<div id="M000671_source" class="dyn-source">
|
1982
1984
|
<pre>
|
1983
1985
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/maybe.rb, line 9</span>
|
1984
1986
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">maybe</span>(<span class="ruby-identifier">chance</span> = <span class="ruby-value">0</span><span class="ruby-value">.5</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -1994,7 +1996,7 @@ a 50/50 chance to being executed.
|
|
1994
1996
|
</div>
|
1995
1997
|
<div class="method">
|
1996
1998
|
<div class="title">
|
1997
|
-
<a name="
|
1999
|
+
<a name="M000621"></a><b>maybe</b>(chance = 0.5) {|if rand < chance| ...}
|
1998
2000
|
</div>
|
1999
2001
|
<div class="description">
|
2000
2002
|
<p>
|
@@ -2007,8 +2009,8 @@ a 50/50 chance to being executed.
|
|
2007
2009
|
</pre>
|
2008
2010
|
</div>
|
2009
2011
|
<div class="sourcecode">
|
2010
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2011
|
-
<div id="
|
2012
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000621_source')" id="l_M000621_source">show source</a> ]</p>
|
2013
|
+
<div id="M000621_source" class="dyn-source">
|
2012
2014
|
<pre>
|
2013
2015
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/maybe.rb, line 9</span>
|
2014
2016
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">maybe</span>(<span class="ruby-identifier">chance</span> = <span class="ruby-value">0</span><span class="ruby-value">.5</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -2024,12 +2026,12 @@ a 50/50 chance to being executed.
|
|
2024
2026
|
</div>
|
2025
2027
|
<div class="method">
|
2026
2028
|
<div class="title">
|
2027
|
-
<a name="
|
2029
|
+
<a name="M000598"></a><b>meta_alias</b>(*args)
|
2028
2030
|
</div>
|
2029
2031
|
<div class="description">
|
2030
2032
|
<p>
|
2031
|
-
Alias a method defined in the <a href="Kernel.html#
|
2032
|
-
(ie. <a href="Kernel.html#
|
2033
|
+
Alias a method defined in the <a href="Kernel.html#M000602">metaclass</a>
|
2034
|
+
(ie. <a href="Kernel.html#M000603">singleton</a> class).
|
2033
2035
|
</p>
|
2034
2036
|
<pre>
|
2035
2037
|
def X.y?; "y?" ; end
|
@@ -2040,8 +2042,8 @@ Alias a method defined in the <a href="Kernel.html#M000608">metaclass</a>
|
|
2040
2042
|
</pre>
|
2041
2043
|
</div>
|
2042
2044
|
<div class="sourcecode">
|
2043
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2044
|
-
<div id="
|
2045
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000598_source')" id="l_M000598_source">show source</a> ]</p>
|
2046
|
+
<div id="M000598_source" class="dyn-source">
|
2045
2047
|
<pre>
|
2046
2048
|
<span class="ruby-comment cmt"># File lib/core/facets/metaid.rb, line 11</span>
|
2047
2049
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">meta_alias</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
@@ -2055,23 +2057,23 @@ Alias a method defined in the <a href="Kernel.html#M000608">metaclass</a>
|
|
2055
2057
|
</div>
|
2056
2058
|
<div class="method">
|
2057
2059
|
<div class="title">
|
2058
|
-
<a name="
|
2060
|
+
<a name="M000601"></a><b>meta_class</b>(&block)
|
2059
2061
|
</div>
|
2060
2062
|
<div class="description">
|
2061
2063
|
<p>
|
2062
2064
|
Easy access to an object‘s "special" class, otherwise known
|
2063
|
-
<a href="Kernel.html#
|
2064
|
-
href="Kernel.html#
|
2065
|
-
href="Kernel.html#
|
2065
|
+
<a href="Kernel.html#M000614">as</a> it‘s <a
|
2066
|
+
href="Kernel.html#M000602">metaclass</a> or <a
|
2067
|
+
href="Kernel.html#M000603">singleton</a> class.
|
2066
2068
|
</p>
|
2067
2069
|
</div>
|
2068
2070
|
<div class="aka">
|
2069
2071
|
This method is also aliased as
|
2070
|
-
<a href="Kernel.html#
|
2072
|
+
<a href="Kernel.html#M000602">metaclass</a>
|
2071
2073
|
</div>
|
2072
2074
|
<div class="sourcecode">
|
2073
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2074
|
-
<div id="
|
2075
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000601_source')" id="l_M000601_source">show source</a> ]</p>
|
2076
|
+
<div id="M000601_source" class="dyn-source">
|
2075
2077
|
<pre>
|
2076
2078
|
<span class="ruby-comment cmt"># File lib/core/facets/metaid.rb, line 47</span>
|
2077
2079
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">meta_class</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -2087,12 +2089,12 @@ href="Kernel.html#M000609">singleton</a> class.
|
|
2087
2089
|
</div>
|
2088
2090
|
<div class="method">
|
2089
2091
|
<div class="title">
|
2090
|
-
<a name="
|
2092
|
+
<a name="M000600"></a><b>meta_def</b>( name, &block )
|
2091
2093
|
</div>
|
2092
2094
|
<div class="description">
|
2093
2095
|
<p>
|
2094
2096
|
Add method to a meta-class —i.e. a <a
|
2095
|
-
href="Kernel.html#
|
2097
|
+
href="Kernel.html#M000603">singleton</a> method.
|
2096
2098
|
</p>
|
2097
2099
|
<pre>
|
2098
2100
|
class X; end
|
@@ -2103,8 +2105,8 @@ href="Kernel.html#M000609">singleton</a> method.
|
|
2103
2105
|
</pre>
|
2104
2106
|
</div>
|
2105
2107
|
<div class="sourcecode">
|
2106
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2107
|
-
<div id="
|
2108
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000600_source')" id="l_M000600_source">show source</a> ]</p>
|
2109
|
+
<div id="M000600_source" class="dyn-source">
|
2108
2110
|
<pre>
|
2109
2111
|
<span class="ruby-comment cmt"># File lib/core/facets/metaid.rb, line 38</span>
|
2110
2112
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">meta_def</span>( <span class="ruby-identifier">name</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span> )
|
@@ -2118,11 +2120,11 @@ href="Kernel.html#M000609">singleton</a> method.
|
|
2118
2120
|
</div>
|
2119
2121
|
<div class="method">
|
2120
2122
|
<div class="title">
|
2121
|
-
<a name="
|
2123
|
+
<a name="M000599"></a><b>meta_eval</b>(str=nil, &blk)
|
2122
2124
|
</div>
|
2123
2125
|
<div class="description">
|
2124
2126
|
<p>
|
2125
|
-
Evaluate code in a <a href="Kernel.html#
|
2127
|
+
Evaluate code in a <a href="Kernel.html#M000602">metaclass</a>. This is
|
2126
2128
|
equivalent to ‘meta_class.instance_eval’.
|
2127
2129
|
</p>
|
2128
2130
|
<pre>
|
@@ -2130,8 +2132,8 @@ equivalent to ‘meta_class.instance_eval’.
|
|
2130
2132
|
</pre>
|
2131
2133
|
</div>
|
2132
2134
|
<div class="sourcecode">
|
2133
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2134
|
-
<div id="
|
2135
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000599_source')" id="l_M000599_source">show source</a> ]</p>
|
2136
|
+
<div id="M000599_source" class="dyn-source">
|
2135
2137
|
<pre>
|
2136
2138
|
<span class="ruby-comment cmt"># File lib/core/facets/metaid.rb, line 22</span>
|
2137
2139
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">meta_eval</span>(<span class="ruby-identifier">str</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
@@ -2147,17 +2149,17 @@ equivalent to ‘meta_class.instance_eval’.
|
|
2147
2149
|
</div>
|
2148
2150
|
<div class="method">
|
2149
2151
|
<div class="title">
|
2150
|
-
<a name="
|
2152
|
+
<a name="M000602"></a><b>metaclass</b>(&block)
|
2151
2153
|
</div>
|
2152
2154
|
<div class="description">
|
2153
2155
|
<p>
|
2154
|
-
Alias for <a href="Kernel.html#
|
2156
|
+
Alias for <a href="Kernel.html#M000601">meta_class</a>
|
2155
2157
|
</p>
|
2156
2158
|
</div>
|
2157
2159
|
</div>
|
2158
2160
|
<div class="method">
|
2159
2161
|
<div class="title">
|
2160
|
-
<a name="
|
2162
|
+
<a name="M000679"></a><b>non_nil?</b>()
|
2161
2163
|
</div>
|
2162
2164
|
<div class="description">
|
2163
2165
|
<p>
|
@@ -2167,7 +2169,7 @@ Alias for not_nil?
|
|
2167
2169
|
</div>
|
2168
2170
|
<div class="method">
|
2169
2171
|
<div class="title">
|
2170
|
-
<a name="
|
2172
|
+
<a name="M000629"></a><b>non_nil?</b>()
|
2171
2173
|
</div>
|
2172
2174
|
<div class="description">
|
2173
2175
|
<p>
|
@@ -2177,7 +2179,7 @@ Alias for not_nil?
|
|
2177
2179
|
</div>
|
2178
2180
|
<div class="method">
|
2179
2181
|
<div class="title">
|
2180
|
-
<a name="
|
2182
|
+
<a name="M000678"></a><b>not_nil?</b>()
|
2181
2183
|
</div>
|
2182
2184
|
<div class="description">
|
2183
2185
|
<p>
|
@@ -2191,8 +2193,8 @@ The opposite of nil?.
|
|
2191
2193
|
</pre>
|
2192
2194
|
</div>
|
2193
2195
|
<div class="sourcecode">
|
2194
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2195
|
-
<div id="
|
2196
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000678_source')" id="l_M000678_source">show source</a> ]</p>
|
2197
|
+
<div id="M000678_source" class="dyn-source">
|
2196
2198
|
<pre>
|
2197
2199
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/not_nil.rb, line 10</span>
|
2198
2200
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">not_nil?</span>
|
@@ -2204,7 +2206,7 @@ The opposite of nil?.
|
|
2204
2206
|
</div>
|
2205
2207
|
<div class="method">
|
2206
2208
|
<div class="title">
|
2207
|
-
<a name="
|
2209
|
+
<a name="M000628"></a><b>not_nil?</b>()
|
2208
2210
|
</div>
|
2209
2211
|
<div class="description">
|
2210
2212
|
<p>
|
@@ -2219,12 +2221,12 @@ The opposite of nil?.
|
|
2219
2221
|
</div>
|
2220
2222
|
<div class="aka">
|
2221
2223
|
This method is also aliased as
|
2222
|
-
<a href="Kernel.html#
|
2223
|
-
<a href="Kernel.html#
|
2224
|
+
<a href="Kernel.html#M000629">non_nil?</a>
|
2225
|
+
<a href="Kernel.html#M000679">non_nil?</a>
|
2224
2226
|
</div>
|
2225
2227
|
<div class="sourcecode">
|
2226
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2227
|
-
<div id="
|
2228
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000628_source')" id="l_M000628_source">show source</a> ]</p>
|
2229
|
+
<div id="M000628_source" class="dyn-source">
|
2228
2230
|
<pre>
|
2229
2231
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/not_nil.rb, line 10</span>
|
2230
2232
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">not_nil?</span>
|
@@ -2236,21 +2238,21 @@ The opposite of nil?.
|
|
2236
2238
|
</div>
|
2237
2239
|
<div class="method">
|
2238
2240
|
<div class="title">
|
2239
|
-
<a name="
|
2241
|
+
<a name="M000672"></a><b>object_hexid</b>()
|
2240
2242
|
</div>
|
2241
2243
|
<div class="description">
|
2242
2244
|
<p>
|
2243
|
-
Returns the object id <a href="Kernel.html#
|
2245
|
+
Returns the object id <a href="Kernel.html#M000614">as</a> a string in
|
2244
2246
|
hexideciaml, which is how Ruby reports them <a
|
2245
|
-
href="Kernel.html#
|
2247
|
+
href="Kernel.html#M000642">with</a> inspect.
|
2246
2248
|
</p>
|
2247
2249
|
<pre>
|
2248
2250
|
"ABC".object_hexid #=> "0x402d359c"
|
2249
2251
|
</pre>
|
2250
2252
|
</div>
|
2251
2253
|
<div class="sourcecode">
|
2252
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2253
|
-
<div id="
|
2254
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000672_source')" id="l_M000672_source">show source</a> ]</p>
|
2255
|
+
<div id="M000672_source" class="dyn-source">
|
2254
2256
|
<pre>
|
2255
2257
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/object_hexid.rb, line 8</span>
|
2256
2258
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">object_hexid</span>
|
@@ -2262,21 +2264,21 @@ href="Kernel.html#M000647">with</a> inspect.
|
|
2262
2264
|
</div>
|
2263
2265
|
<div class="method">
|
2264
2266
|
<div class="title">
|
2265
|
-
<a name="
|
2267
|
+
<a name="M000622"></a><b>object_hexid</b>()
|
2266
2268
|
</div>
|
2267
2269
|
<div class="description">
|
2268
2270
|
<p>
|
2269
|
-
Returns the object id <a href="Kernel.html#
|
2271
|
+
Returns the object id <a href="Kernel.html#M000614">as</a> a string in
|
2270
2272
|
hexideciaml, which is how Ruby reports them <a
|
2271
|
-
href="Kernel.html#
|
2273
|
+
href="Kernel.html#M000642">with</a> inspect.
|
2272
2274
|
</p>
|
2273
2275
|
<pre>
|
2274
2276
|
"ABC".object_hexid #=> "0x402d359c"
|
2275
2277
|
</pre>
|
2276
2278
|
</div>
|
2277
2279
|
<div class="sourcecode">
|
2278
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2279
|
-
<div id="
|
2280
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000622_source')" id="l_M000622_source">show source</a> ]</p>
|
2281
|
+
<div id="M000622_source" class="dyn-source">
|
2280
2282
|
<pre>
|
2281
2283
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/object_hexid.rb, line 8</span>
|
2282
2284
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">object_hexid</span>
|
@@ -2288,7 +2290,7 @@ href="Kernel.html#M000647">with</a> inspect.
|
|
2288
2290
|
</div>
|
2289
2291
|
<div class="method">
|
2290
2292
|
<div class="title">
|
2291
|
-
<a name="
|
2293
|
+
<a name="M000675"></a><b>object_send</b>(name,*args,&blk)
|
2292
2294
|
</div>
|
2293
2295
|
<div class="description">
|
2294
2296
|
<p>
|
@@ -2304,7 +2306,7 @@ Send only to public methods.
|
|
2304
2306
|
=> NoMethodError: private method `foo' called for #<X:0xb7ac6ba8>
|
2305
2307
|
</pre>
|
2306
2308
|
<p>
|
2307
|
-
TODO: <a href="Kernel.html#
|
2309
|
+
TODO: <a href="Kernel.html#M000625">object_send</a> needs to change for
|
2308
2310
|
1.9.
|
2309
2311
|
</p>
|
2310
2312
|
<pre>
|
@@ -2312,8 +2314,8 @@ TODO: <a href="Kernel.html#M000631">object_send</a> needs to change for
|
|
2312
2314
|
</pre>
|
2313
2315
|
</div>
|
2314
2316
|
<div class="sourcecode">
|
2315
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2316
|
-
<div id="
|
2317
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000675_source')" id="l_M000675_source">show source</a> ]</p>
|
2318
|
+
<div id="M000675_source" class="dyn-source">
|
2317
2319
|
<pre>
|
2318
2320
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/object_send.rb, line 20</span>
|
2319
2321
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">object_send</span>(<span class="ruby-identifier">name</span>,<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>,<span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
@@ -2332,7 +2334,7 @@ TODO: <a href="Kernel.html#M000631">object_send</a> needs to change for
|
|
2332
2334
|
</div>
|
2333
2335
|
<div class="method">
|
2334
2336
|
<div class="title">
|
2335
|
-
<a name="
|
2337
|
+
<a name="M000625"></a><b>object_send</b>(name,*args,&blk)
|
2336
2338
|
</div>
|
2337
2339
|
<div class="description">
|
2338
2340
|
<p>
|
@@ -2348,7 +2350,7 @@ Send only to public methods.
|
|
2348
2350
|
=> NoMethodError: private method `foo' called for #<X:0xb7ac6ba8>
|
2349
2351
|
</pre>
|
2350
2352
|
<p>
|
2351
|
-
TODO: <a href="Kernel.html#
|
2353
|
+
TODO: <a href="Kernel.html#M000625">object_send</a> needs to change for
|
2352
2354
|
1.9.
|
2353
2355
|
</p>
|
2354
2356
|
<pre>
|
@@ -2356,8 +2358,8 @@ TODO: <a href="Kernel.html#M000631">object_send</a> needs to change for
|
|
2356
2358
|
</pre>
|
2357
2359
|
</div>
|
2358
2360
|
<div class="sourcecode">
|
2359
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2360
|
-
<div id="
|
2361
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000625_source')" id="l_M000625_source">show source</a> ]</p>
|
2362
|
+
<div id="M000625_source" class="dyn-source">
|
2361
2363
|
<pre>
|
2362
2364
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/object_send.rb, line 20</span>
|
2363
2365
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">object_send</span>(<span class="ruby-identifier">name</span>,<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>,<span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
@@ -2376,11 +2378,11 @@ TODO: <a href="Kernel.html#M000631">object_send</a> needs to change for
|
|
2376
2378
|
</div>
|
2377
2379
|
<div class="method">
|
2378
2380
|
<div class="title">
|
2379
|
-
<a name="
|
2381
|
+
<a name="M000700"></a><b>p</b>(*x)
|
2380
2382
|
</div>
|
2381
2383
|
<div class="description">
|
2382
2384
|
<p>
|
2383
|
-
Alternate to standard <a href="Kernel.html#
|
2385
|
+
Alternate to standard <a href="Kernel.html#M000650">p</a> method that
|
2384
2386
|
outputs Kernel#inspect to stdout, but also passes through the orginal
|
2385
2387
|
argument(s).
|
2386
2388
|
</p>
|
@@ -2397,13 +2399,13 @@ produces
|
|
2397
2399
|
5
|
2398
2400
|
</pre>
|
2399
2401
|
<p>
|
2400
|
-
DEPRECATE AS OF 1.9, <em>if</em> <a href="Kernel.html#
|
2402
|
+
DEPRECATE AS OF 1.9, <em>if</em> <a href="Kernel.html#M000650">p</a> will
|
2401
2403
|
then do this too.
|
2402
2404
|
</p>
|
2403
2405
|
</div>
|
2404
2406
|
<div class="sourcecode">
|
2405
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2406
|
-
<div id="
|
2407
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000700_source')" id="l_M000700_source">show source</a> ]</p>
|
2408
|
+
<div id="M000700_source" class="dyn-source">
|
2407
2409
|
<pre>
|
2408
2410
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/p.rb, line 18</span>
|
2409
2411
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">p</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">x</span>)
|
@@ -2416,11 +2418,11 @@ then do this too.
|
|
2416
2418
|
</div>
|
2417
2419
|
<div class="method">
|
2418
2420
|
<div class="title">
|
2419
|
-
<a name="
|
2421
|
+
<a name="M000650"></a><b>p</b>(*x)
|
2420
2422
|
</div>
|
2421
2423
|
<div class="description">
|
2422
2424
|
<p>
|
2423
|
-
Alternate to standard <a href="Kernel.html#
|
2425
|
+
Alternate to standard <a href="Kernel.html#M000650">p</a> method that
|
2424
2426
|
outputs Kernel#inspect to stdout, but also passes through the orginal
|
2425
2427
|
argument(s).
|
2426
2428
|
</p>
|
@@ -2437,13 +2439,13 @@ produces
|
|
2437
2439
|
5
|
2438
2440
|
</pre>
|
2439
2441
|
<p>
|
2440
|
-
DEPRECATE AS OF 1.9, <em>if</em> <a href="Kernel.html#
|
2442
|
+
DEPRECATE AS OF 1.9, <em>if</em> <a href="Kernel.html#M000650">p</a> will
|
2441
2443
|
then do this too.
|
2442
2444
|
</p>
|
2443
2445
|
</div>
|
2444
2446
|
<div class="sourcecode">
|
2445
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2446
|
-
<div id="
|
2447
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000650_source')" id="l_M000650_source">show source</a> ]</p>
|
2448
|
+
<div id="M000650_source" class="dyn-source">
|
2447
2449
|
<pre>
|
2448
2450
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/p.rb, line 18</span>
|
2449
2451
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">p</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">x</span>)
|
@@ -2456,7 +2458,7 @@ then do this too.
|
|
2456
2458
|
</div>
|
2457
2459
|
<div class="method">
|
2458
2460
|
<div class="title">
|
2459
|
-
<a name="
|
2461
|
+
<a name="M000655"></a><b>populate</b>(data=nil) {|| ...}
|
2460
2462
|
</div>
|
2461
2463
|
<div class="description">
|
2462
2464
|
<p>
|
@@ -2470,7 +2472,7 @@ Assign via accessor methods using a hash, associative array or block.
|
|
2470
2472
|
object.populate{ |s| s.a = 1; s.b = 2 }
|
2471
2473
|
</pre>
|
2472
2474
|
<p>
|
2473
|
-
These are all the same <a href="Kernel.html#
|
2475
|
+
These are all the same <a href="Kernel.html#M000614">as</a> doing:
|
2474
2476
|
</p>
|
2475
2477
|
<pre>
|
2476
2478
|
object.a = 1
|
@@ -2488,8 +2490,8 @@ TODO: Better name, set_with ?
|
|
2488
2490
|
</p>
|
2489
2491
|
</div>
|
2490
2492
|
<div class="sourcecode">
|
2491
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2492
|
-
<div id="
|
2493
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000655_source')" id="l_M000655_source">show source</a> ]</p>
|
2494
|
+
<div id="M000655_source" class="dyn-source">
|
2493
2495
|
<pre>
|
2494
2496
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/populate.rb, line 25</span>
|
2495
2497
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">populate</span>(<span class="ruby-identifier">data</span>=<span class="ruby-keyword kw">nil</span>) <span class="ruby-comment cmt">#:yield:</span>
|
@@ -2507,7 +2509,7 @@ TODO: Better name, set_with ?
|
|
2507
2509
|
</div>
|
2508
2510
|
<div class="method">
|
2509
2511
|
<div class="title">
|
2510
|
-
<a name="
|
2512
|
+
<a name="M000705"></a><b>populate</b>(data=nil) {|| ...}
|
2511
2513
|
</div>
|
2512
2514
|
<div class="description">
|
2513
2515
|
<p>
|
@@ -2521,7 +2523,7 @@ Assign via accessor methods using a hash, associative array or block.
|
|
2521
2523
|
object.populate{ |s| s.a = 1; s.b = 2 }
|
2522
2524
|
</pre>
|
2523
2525
|
<p>
|
2524
|
-
These are all the same <a href="Kernel.html#
|
2526
|
+
These are all the same <a href="Kernel.html#M000614">as</a> doing:
|
2525
2527
|
</p>
|
2526
2528
|
<pre>
|
2527
2529
|
object.a = 1
|
@@ -2539,8 +2541,8 @@ TODO: Better name, set_with ?
|
|
2539
2541
|
</p>
|
2540
2542
|
</div>
|
2541
2543
|
<div class="sourcecode">
|
2542
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2543
|
-
<div id="
|
2544
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000705_source')" id="l_M000705_source">show source</a> ]</p>
|
2545
|
+
<div id="M000705_source" class="dyn-source">
|
2544
2546
|
<pre>
|
2545
2547
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/populate.rb, line 25</span>
|
2546
2548
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">populate</span>(<span class="ruby-identifier">data</span>=<span class="ruby-keyword kw">nil</span>) <span class="ruby-comment cmt">#:yield:</span>
|
@@ -2558,34 +2560,34 @@ TODO: Better name, set_with ?
|
|
2558
2560
|
</div>
|
2559
2561
|
<div class="method">
|
2560
2562
|
<div class="title">
|
2561
|
-
<a name="
|
2563
|
+
<a name="M000606"></a><b>promise</b>( ) {|result| ...}
|
2562
2564
|
</div>
|
2563
2565
|
<div class="description">
|
2564
2566
|
<p>
|
2565
|
-
The <a href="Kernel.html#
|
2566
|
-
<a href="Kernel.html#
|
2567
|
-
href="Kernel.html#
|
2568
|
-
returns a <a href="Kernel.html#
|
2569
|
-
provided block at a <a href="Kernel.html#
|
2567
|
+
The <a href="Kernel.html#M000606">promise</a>() function is used together
|
2568
|
+
<a href="Kernel.html#M000642">with</a> <a
|
2569
|
+
href="Kernel.html#M000607">demand</a>() to implement lazy evaluation. It
|
2570
|
+
returns a <a href="Kernel.html#M000606">promise</a> to evaluate the
|
2571
|
+
provided block at a <a href="Kernel.html#M000608">future</a> time.
|
2570
2572
|
Evaluation can be demanded and the block‘s result obtained via the <a
|
2571
|
-
href="Kernel.html#
|
2573
|
+
href="Kernel.html#M000607">demand</a>() function.
|
2572
2574
|
</p>
|
2573
2575
|
<p>
|
2574
2576
|
Implicit evaluation is also supported: the first message sent to it will <a
|
2575
|
-
href="Kernel.html#
|
2577
|
+
href="Kernel.html#M000607">demand</a> evaluation, after which that message
|
2576
2578
|
and any subsequent messages will be forwarded to the result object.
|
2577
2579
|
</p>
|
2578
2580
|
<p>
|
2579
2581
|
As an aid to circular programming, the block will be passed a <a
|
2580
|
-
href="Kernel.html#
|
2582
|
+
href="Kernel.html#M000606">promise</a> for its own result when it is
|
2581
2583
|
evaluated. Be careful not to force that <a
|
2582
|
-
href="Kernel.html#
|
2584
|
+
href="Kernel.html#M000606">promise</a> during the computation, lest the
|
2583
2585
|
computation diverge.
|
2584
2586
|
</p>
|
2585
2587
|
</div>
|
2586
2588
|
<div class="sourcecode">
|
2587
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2588
|
-
<div id="
|
2589
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000606_source')" id="l_M000606_source">show source</a> ]</p>
|
2590
|
+
<div id="M000606_source" class="dyn-source">
|
2589
2591
|
<pre>
|
2590
2592
|
<span class="ruby-comment cmt"># File lib/core/facets/lazy.rb, line 208</span>
|
2591
2593
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">promise</span>( <span class="ruby-operator">&</span><span class="ruby-identifier">computation</span> ) <span class="ruby-comment cmt">#:yields: result</span>
|
@@ -2597,22 +2599,22 @@ computation diverge.
|
|
2597
2599
|
</div>
|
2598
2600
|
<div class="method">
|
2599
2601
|
<div class="title">
|
2600
|
-
<a name="
|
2602
|
+
<a name="M000637"></a><b>require_all</b>(pat)
|
2601
2603
|
</div>
|
2602
2604
|
<div class="description">
|
2603
2605
|
<p>
|
2604
2606
|
Require a pattern of files. This make is easy to require an entire
|
2605
|
-
directory, for <a href="Kernel.html#
|
2607
|
+
directory, for <a href="Kernel.html#M000624">instance</a>.
|
2606
2608
|
</p>
|
2607
2609
|
<pre>
|
2608
2610
|
require_all 'facets/time/*'
|
2609
2611
|
</pre>
|
2610
2612
|
</div>
|
2611
2613
|
<div class="sourcecode">
|
2612
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2613
|
-
<div id="
|
2614
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000637_source')" id="l_M000637_source">show source</a> ]</p>
|
2615
|
+
<div id="M000637_source" class="dyn-source">
|
2614
2616
|
<pre>
|
2615
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/
|
2617
|
+
<span class="ruby-comment cmt"># File lib/core/facets/kernel/require_all.rb, line 8</span>
|
2616
2618
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">require_all</span>(<span class="ruby-identifier">pat</span>)
|
2617
2619
|
<span class="ruby-identifier">$LOAD_PATH</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">path</span><span class="ruby-operator">|</span>
|
2618
2620
|
<span class="ruby-identifier">fs</span> = <span class="ruby-constant">Dir</span>[<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">path</span>,<span class="ruby-identifier">pat</span>)]
|
@@ -2630,22 +2632,22 @@ directory, for <a href="Kernel.html#M000630">instance</a>.
|
|
2630
2632
|
</div>
|
2631
2633
|
<div class="method">
|
2632
2634
|
<div class="title">
|
2633
|
-
<a name="
|
2635
|
+
<a name="M000687"></a><b>require_all</b>(pat)
|
2634
2636
|
</div>
|
2635
2637
|
<div class="description">
|
2636
2638
|
<p>
|
2637
2639
|
Require a pattern of files. This make is easy to require an entire
|
2638
|
-
directory, for <a href="Kernel.html#
|
2640
|
+
directory, for <a href="Kernel.html#M000624">instance</a>.
|
2639
2641
|
</p>
|
2640
2642
|
<pre>
|
2641
2643
|
require_all 'facets/time/*'
|
2642
2644
|
</pre>
|
2643
2645
|
</div>
|
2644
2646
|
<div class="sourcecode">
|
2645
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2646
|
-
<div id="
|
2647
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000687_source')" id="l_M000687_source">show source</a> ]</p>
|
2648
|
+
<div id="M000687_source" class="dyn-source">
|
2647
2649
|
<pre>
|
2648
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/
|
2650
|
+
<span class="ruby-comment cmt"># File lib/core/facets/kernel/require_all.rb, line 8</span>
|
2649
2651
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">require_all</span>(<span class="ruby-identifier">pat</span>)
|
2650
2652
|
<span class="ruby-identifier">$LOAD_PATH</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">path</span><span class="ruby-operator">|</span>
|
2651
2653
|
<span class="ruby-identifier">fs</span> = <span class="ruby-constant">Dir</span>[<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">path</span>,<span class="ruby-identifier">pat</span>)]
|
@@ -2663,11 +2665,11 @@ directory, for <a href="Kernel.html#M000630">instance</a>.
|
|
2663
2665
|
</div>
|
2664
2666
|
<div class="method">
|
2665
2667
|
<div class="title">
|
2666
|
-
<a name="
|
2668
|
+
<a name="M000659"></a><b>require_local</b>(fname)
|
2667
2669
|
</div>
|
2668
2670
|
<div class="description">
|
2669
2671
|
<p>
|
2670
|
-
Require file from same dir <a href="Kernel.html#
|
2672
|
+
Require file from same dir <a href="Kernel.html#M000614">as</a> calling
|
2671
2673
|
script.
|
2672
2674
|
</p>
|
2673
2675
|
<pre>
|
@@ -2675,10 +2677,10 @@ script.
|
|
2675
2677
|
</pre>
|
2676
2678
|
</div>
|
2677
2679
|
<div class="sourcecode">
|
2678
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2679
|
-
<div id="
|
2680
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000659_source')" id="l_M000659_source">show source</a> ]</p>
|
2681
|
+
<div id="M000659_source" class="dyn-source">
|
2680
2682
|
<pre>
|
2681
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/
|
2683
|
+
<span class="ruby-comment cmt"># File lib/core/facets/kernel/require_local.rb, line 7</span>
|
2682
2684
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">require_local</span>(<span class="ruby-identifier">fname</span>)
|
2683
2685
|
<span class="ruby-comment cmt">#fdir = File.expand_path( File.dirname( caller[0] ) )</span>
|
2684
2686
|
<span class="ruby-identifier">fdir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>( <span class="ruby-identifier">caller</span>[<span class="ruby-value">0</span>] )
|
@@ -2690,11 +2692,11 @@ script.
|
|
2690
2692
|
</div>
|
2691
2693
|
<div class="method">
|
2692
2694
|
<div class="title">
|
2693
|
-
<a name="
|
2695
|
+
<a name="M000709"></a><b>require_local</b>(fname)
|
2694
2696
|
</div>
|
2695
2697
|
<div class="description">
|
2696
2698
|
<p>
|
2697
|
-
Require file from same dir <a href="Kernel.html#
|
2699
|
+
Require file from same dir <a href="Kernel.html#M000614">as</a> calling
|
2698
2700
|
script.
|
2699
2701
|
</p>
|
2700
2702
|
<pre>
|
@@ -2702,10 +2704,10 @@ script.
|
|
2702
2704
|
</pre>
|
2703
2705
|
</div>
|
2704
2706
|
<div class="sourcecode">
|
2705
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2706
|
-
<div id="
|
2707
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000709_source')" id="l_M000709_source">show source</a> ]</p>
|
2708
|
+
<div id="M000709_source" class="dyn-source">
|
2707
2709
|
<pre>
|
2708
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/
|
2710
|
+
<span class="ruby-comment cmt"># File lib/core/facets/kernel/require_local.rb, line 7</span>
|
2709
2711
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">require_local</span>(<span class="ruby-identifier">fname</span>)
|
2710
2712
|
<span class="ruby-comment cmt">#fdir = File.expand_path( File.dirname( caller[0] ) )</span>
|
2711
2713
|
<span class="ruby-identifier">fdir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>( <span class="ruby-identifier">caller</span>[<span class="ruby-value">0</span>] )
|
@@ -2717,7 +2719,7 @@ script.
|
|
2717
2719
|
</div>
|
2718
2720
|
<div class="method">
|
2719
2721
|
<div class="title">
|
2720
|
-
<a name="
|
2722
|
+
<a name="M000688"></a><b>resc</b>(str)
|
2721
2723
|
</div>
|
2722
2724
|
<div class="description">
|
2723
2725
|
<p>
|
@@ -2732,8 +2734,8 @@ Provides a shortcut to the Regexp.escape module method.
|
|
2732
2734
|
</pre>
|
2733
2735
|
</div>
|
2734
2736
|
<div class="sourcecode">
|
2735
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2736
|
-
<div id="
|
2737
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000688_source')" id="l_M000688_source">show source</a> ]</p>
|
2738
|
+
<div id="M000688_source" class="dyn-source">
|
2737
2739
|
<pre>
|
2738
2740
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/resc.rb, line 11</span>
|
2739
2741
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">resc</span>(<span class="ruby-identifier">str</span>)
|
@@ -2745,7 +2747,7 @@ Provides a shortcut to the Regexp.escape module method.
|
|
2745
2747
|
</div>
|
2746
2748
|
<div class="method">
|
2747
2749
|
<div class="title">
|
2748
|
-
<a name="
|
2750
|
+
<a name="M000638"></a><b>resc</b>(str)
|
2749
2751
|
</div>
|
2750
2752
|
<div class="description">
|
2751
2753
|
<p>
|
@@ -2760,8 +2762,8 @@ Provides a shortcut to the Regexp.escape module method.
|
|
2760
2762
|
</pre>
|
2761
2763
|
</div>
|
2762
2764
|
<div class="sourcecode">
|
2763
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2764
|
-
<div id="
|
2765
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000638_source')" id="l_M000638_source">show source</a> ]</p>
|
2766
|
+
<div id="M000638_source" class="dyn-source">
|
2765
2767
|
<pre>
|
2766
2768
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/resc.rb, line 11</span>
|
2767
2769
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">resc</span>(<span class="ruby-identifier">str</span>)
|
@@ -2773,12 +2775,12 @@ Provides a shortcut to the Regexp.escape module method.
|
|
2773
2775
|
</div>
|
2774
2776
|
<div class="method">
|
2775
2777
|
<div class="title">
|
2776
|
-
<a name="
|
2778
|
+
<a name="M000711"></a><b>respond</b>(sym, *args)
|
2777
2779
|
</div>
|
2778
2780
|
<div class="description">
|
2779
2781
|
<p>
|
2780
2782
|
Like respond_to? but returns the result of the call if it does indeed <a
|
2781
|
-
href="Kernel.html#
|
2783
|
+
href="Kernel.html#M000661">respond</a>.
|
2782
2784
|
</p>
|
2783
2785
|
<pre>
|
2784
2786
|
class X
|
@@ -2793,8 +2795,8 @@ href="Kernel.html#M000667">respond</a>.
|
|
2793
2795
|
</pre>
|
2794
2796
|
</div>
|
2795
2797
|
<div class="sourcecode">
|
2796
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2797
|
-
<div id="
|
2798
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000711_source')" id="l_M000711_source">show source</a> ]</p>
|
2799
|
+
<div id="M000711_source" class="dyn-source">
|
2798
2800
|
<pre>
|
2799
2801
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/respond.rb, line 16</span>
|
2800
2802
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">respond</span>(<span class="ruby-identifier">sym</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
@@ -2807,12 +2809,12 @@ href="Kernel.html#M000667">respond</a>.
|
|
2807
2809
|
</div>
|
2808
2810
|
<div class="method">
|
2809
2811
|
<div class="title">
|
2810
|
-
<a name="
|
2812
|
+
<a name="M000661"></a><b>respond</b>(sym, *args)
|
2811
2813
|
</div>
|
2812
2814
|
<div class="description">
|
2813
2815
|
<p>
|
2814
2816
|
Like respond_to? but returns the result of the call if it does indeed <a
|
2815
|
-
href="Kernel.html#
|
2817
|
+
href="Kernel.html#M000661">respond</a>.
|
2816
2818
|
</p>
|
2817
2819
|
<pre>
|
2818
2820
|
class X
|
@@ -2828,12 +2830,12 @@ href="Kernel.html#M000667">respond</a>.
|
|
2828
2830
|
</div>
|
2829
2831
|
<div class="aka">
|
2830
2832
|
This method is also aliased as
|
2831
|
-
<a href="Kernel.html#
|
2832
|
-
<a href="Kernel.html#
|
2833
|
+
<a href="Kernel.html#M000662">respond_with_value</a>
|
2834
|
+
<a href="Kernel.html#M000712">respond_with_value</a>
|
2833
2835
|
</div>
|
2834
2836
|
<div class="sourcecode">
|
2835
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2836
|
-
<div id="
|
2837
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000661_source')" id="l_M000661_source">show source</a> ]</p>
|
2838
|
+
<div id="M000661_source" class="dyn-source">
|
2837
2839
|
<pre>
|
2838
2840
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/respond.rb, line 16</span>
|
2839
2841
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">respond</span>(<span class="ruby-identifier">sym</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
@@ -2846,27 +2848,27 @@ href="Kernel.html#M000667">respond</a>.
|
|
2846
2848
|
</div>
|
2847
2849
|
<div class="method">
|
2848
2850
|
<div class="title">
|
2849
|
-
<a name="
|
2851
|
+
<a name="M000712"></a><b>respond_with_value</b>(sym, *args)
|
2850
2852
|
</div>
|
2851
2853
|
<div class="description">
|
2852
2854
|
<p>
|
2853
|
-
Alias for <a href="Kernel.html#
|
2855
|
+
Alias for <a href="Kernel.html#M000661">respond</a>
|
2854
2856
|
</p>
|
2855
2857
|
</div>
|
2856
2858
|
</div>
|
2857
2859
|
<div class="method">
|
2858
2860
|
<div class="title">
|
2859
|
-
<a name="
|
2861
|
+
<a name="M000662"></a><b>respond_with_value</b>(sym, *args)
|
2860
2862
|
</div>
|
2861
2863
|
<div class="description">
|
2862
2864
|
<p>
|
2863
|
-
Alias for <a href="Kernel.html#
|
2865
|
+
Alias for <a href="Kernel.html#M000661">respond</a>
|
2864
2866
|
</p>
|
2865
2867
|
</div>
|
2866
2868
|
</div>
|
2867
2869
|
<div class="method">
|
2868
2870
|
<div class="title">
|
2869
|
-
<a name="
|
2871
|
+
<a name="M000654"></a><b>returning</b>(obj=self) {|| ...}
|
2870
2872
|
</div>
|
2871
2873
|
<div class="description">
|
2872
2874
|
<p>
|
@@ -2879,11 +2881,11 @@ A Ruby-ized realization of the K combinator.
|
|
2879
2881
|
end
|
2880
2882
|
</pre>
|
2881
2883
|
<p>
|
2882
|
-
Technically, <a href="Kernel.html#
|
2884
|
+
Technically, <a href="Kernel.html#M000654">returning</a> probably should
|
2883
2885
|
force the return of the stated object irregardless of any return statements
|
2884
2886
|
that might appear within it‘s block. This might differentiate <a
|
2885
|
-
href="Kernel.html#
|
2886
|
-
href="Kernel.html#
|
2887
|
+
href="Kernel.html#M000654">returning</a> from <a
|
2888
|
+
href="Kernel.html#M000642">with</a>, however it also would require
|
2887
2889
|
implementation in Ruby itself.
|
2888
2890
|
</p>
|
2889
2891
|
<pre>
|
@@ -2891,8 +2893,8 @@ implementation in Ruby itself.
|
|
2891
2893
|
</pre>
|
2892
2894
|
</div>
|
2893
2895
|
<div class="sourcecode">
|
2894
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2895
|
-
<div id="
|
2896
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000654_source')" id="l_M000654_source">show source</a> ]</p>
|
2897
|
+
<div id="M000654_source" class="dyn-source">
|
2896
2898
|
<pre>
|
2897
2899
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/returning.rb, line 18</span>
|
2898
2900
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">returning</span>(<span class="ruby-identifier">obj</span>=<span class="ruby-keyword kw">self</span>) <span class="ruby-comment cmt">#:yield:</span>
|
@@ -2905,7 +2907,7 @@ implementation in Ruby itself.
|
|
2905
2907
|
</div>
|
2906
2908
|
<div class="method">
|
2907
2909
|
<div class="title">
|
2908
|
-
<a name="
|
2910
|
+
<a name="M000704"></a><b>returning</b>(obj=self) {|| ...}
|
2909
2911
|
</div>
|
2910
2912
|
<div class="description">
|
2911
2913
|
<p>
|
@@ -2918,11 +2920,11 @@ A Ruby-ized realization of the K combinator.
|
|
2918
2920
|
end
|
2919
2921
|
</pre>
|
2920
2922
|
<p>
|
2921
|
-
Technically, <a href="Kernel.html#
|
2923
|
+
Technically, <a href="Kernel.html#M000654">returning</a> probably should
|
2922
2924
|
force the return of the stated object irregardless of any return statements
|
2923
2925
|
that might appear within it‘s block. This might differentiate <a
|
2924
|
-
href="Kernel.html#
|
2925
|
-
href="Kernel.html#
|
2926
|
+
href="Kernel.html#M000654">returning</a> from <a
|
2927
|
+
href="Kernel.html#M000642">with</a>, however it also would require
|
2926
2928
|
implementation in Ruby itself.
|
2927
2929
|
</p>
|
2928
2930
|
<pre>
|
@@ -2930,8 +2932,8 @@ implementation in Ruby itself.
|
|
2930
2932
|
</pre>
|
2931
2933
|
</div>
|
2932
2934
|
<div class="sourcecode">
|
2933
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2934
|
-
<div id="
|
2935
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000704_source')" id="l_M000704_source">show source</a> ]</p>
|
2936
|
+
<div id="M000704_source" class="dyn-source">
|
2935
2937
|
<pre>
|
2936
2938
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/returning.rb, line 18</span>
|
2937
2939
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">returning</span>(<span class="ruby-identifier">obj</span>=<span class="ruby-keyword kw">self</span>) <span class="ruby-comment cmt">#:yield:</span>
|
@@ -2944,7 +2946,7 @@ implementation in Ruby itself.
|
|
2944
2946
|
</div>
|
2945
2947
|
<div class="method">
|
2946
2948
|
<div class="title">
|
2947
|
-
<a name="
|
2949
|
+
<a name="M000665"></a><b>send_as</b>(ancestor, sym, *args, &blk)
|
2948
2950
|
</div>
|
2949
2951
|
<div class="description">
|
2950
2952
|
<p>
|
@@ -2955,8 +2957,8 @@ TODO: Does this have the proper scope for send?
|
|
2955
2957
|
</p>
|
2956
2958
|
</div>
|
2957
2959
|
<div class="sourcecode">
|
2958
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2959
|
-
<div id="
|
2960
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000665_source')" id="l_M000665_source">show source</a> ]</p>
|
2961
|
+
<div id="M000665_source" class="dyn-source">
|
2960
2962
|
<pre>
|
2961
2963
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/as.rb, line 36</span>
|
2962
2964
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">send_as</span>(<span class="ruby-identifier">ancestor</span>, <span class="ruby-identifier">sym</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
@@ -2968,7 +2970,7 @@ TODO: Does this have the proper scope for send?
|
|
2968
2970
|
</div>
|
2969
2971
|
<div class="method">
|
2970
2972
|
<div class="title">
|
2971
|
-
<a name="
|
2973
|
+
<a name="M000615"></a><b>send_as</b>(ancestor, sym, *args, &blk)
|
2972
2974
|
</div>
|
2973
2975
|
<div class="description">
|
2974
2976
|
<p>
|
@@ -2979,8 +2981,8 @@ TODO: Does this have the proper scope for send?
|
|
2979
2981
|
</p>
|
2980
2982
|
</div>
|
2981
2983
|
<div class="sourcecode">
|
2982
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2983
|
-
<div id="
|
2984
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000615_source')" id="l_M000615_source">show source</a> ]</p>
|
2985
|
+
<div id="M000615_source" class="dyn-source">
|
2984
2986
|
<pre>
|
2985
2987
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/as.rb, line 36</span>
|
2986
2988
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">send_as</span>(<span class="ruby-identifier">ancestor</span>, <span class="ruby-identifier">sym</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
@@ -2992,7 +2994,7 @@ TODO: Does this have the proper scope for send?
|
|
2992
2994
|
</div>
|
2993
2995
|
<div class="method">
|
2994
2996
|
<div class="title">
|
2995
|
-
<a name="
|
2997
|
+
<a name="M000706"></a><b>set_from</b>(obj, *fields)
|
2996
2998
|
</div>
|
2997
2999
|
<div class="description">
|
2998
3000
|
<p>
|
@@ -3019,8 +3021,8 @@ TODO: pepulate_from(obj) ?
|
|
3019
3021
|
</p>
|
3020
3022
|
</div>
|
3021
3023
|
<div class="sourcecode">
|
3022
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3023
|
-
<div id="
|
3024
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000706_source')" id="l_M000706_source">show source</a> ]</p>
|
3025
|
+
<div id="M000706_source" class="dyn-source">
|
3024
3026
|
<pre>
|
3025
3027
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/populate.rb, line 54</span>
|
3026
3028
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_from</span>(<span class="ruby-identifier">obj</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">fields</span>)
|
@@ -3046,7 +3048,7 @@ TODO: pepulate_from(obj) ?
|
|
3046
3048
|
</div>
|
3047
3049
|
<div class="method">
|
3048
3050
|
<div class="title">
|
3049
|
-
<a name="
|
3051
|
+
<a name="M000656"></a><b>set_from</b>(obj, *fields)
|
3050
3052
|
</div>
|
3051
3053
|
<div class="description">
|
3052
3054
|
<p>
|
@@ -3073,8 +3075,8 @@ TODO: pepulate_from(obj) ?
|
|
3073
3075
|
</p>
|
3074
3076
|
</div>
|
3075
3077
|
<div class="sourcecode">
|
3076
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3077
|
-
<div id="
|
3078
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000656_source')" id="l_M000656_source">show source</a> ]</p>
|
3079
|
+
<div id="M000656_source" class="dyn-source">
|
3078
3080
|
<pre>
|
3079
3081
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/populate.rb, line 54</span>
|
3080
3082
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_from</span>(<span class="ruby-identifier">obj</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">fields</span>)
|
@@ -3100,11 +3102,11 @@ TODO: pepulate_from(obj) ?
|
|
3100
3102
|
</div>
|
3101
3103
|
<div class="method">
|
3102
3104
|
<div class="title">
|
3103
|
-
<a name="
|
3105
|
+
<a name="M000682"></a><b>silence_stderr</b>( {|| ...}
|
3104
3106
|
</div>
|
3105
3107
|
<div class="sourcecode">
|
3106
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3107
|
-
<div id="
|
3108
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000682_source')" id="l_M000682_source">show source</a> ]</p>
|
3109
|
+
<div id="M000682_source" class="dyn-source">
|
3108
3110
|
<pre>
|
3109
3111
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/silence.rb, line 27</span>
|
3110
3112
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">silence_stderr</span> <span class="ruby-comment cmt">#:yeild:</span>
|
@@ -3116,11 +3118,11 @@ TODO: pepulate_from(obj) ?
|
|
3116
3118
|
</div>
|
3117
3119
|
<div class="method">
|
3118
3120
|
<div class="title">
|
3119
|
-
<a name="
|
3121
|
+
<a name="M000632"></a><b>silence_stderr</b>( {|| ...}
|
3120
3122
|
</div>
|
3121
3123
|
<div class="sourcecode">
|
3122
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3123
|
-
<div id="
|
3124
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000632_source')" id="l_M000632_source">show source</a> ]</p>
|
3125
|
+
<div id="M000632_source" class="dyn-source">
|
3124
3126
|
<pre>
|
3125
3127
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/silence.rb, line 27</span>
|
3126
3128
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">silence_stderr</span> <span class="ruby-comment cmt">#:yeild:</span>
|
@@ -3132,11 +3134,11 @@ TODO: pepulate_from(obj) ?
|
|
3132
3134
|
</div>
|
3133
3135
|
<div class="method">
|
3134
3136
|
<div class="title">
|
3135
|
-
<a name="
|
3137
|
+
<a name="M000683"></a><b>silence_stdout</b>( {|| ...}
|
3136
3138
|
</div>
|
3137
3139
|
<div class="sourcecode">
|
3138
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3139
|
-
<div id="
|
3140
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000683_source')" id="l_M000683_source">show source</a> ]</p>
|
3141
|
+
<div id="M000683_source" class="dyn-source">
|
3140
3142
|
<pre>
|
3141
3143
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/silence.rb, line 32</span>
|
3142
3144
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">silence_stdout</span> <span class="ruby-comment cmt">#:yeild:</span>
|
@@ -3148,11 +3150,11 @@ TODO: pepulate_from(obj) ?
|
|
3148
3150
|
</div>
|
3149
3151
|
<div class="method">
|
3150
3152
|
<div class="title">
|
3151
|
-
<a name="
|
3153
|
+
<a name="M000633"></a><b>silence_stdout</b>( {|| ...}
|
3152
3154
|
</div>
|
3153
3155
|
<div class="sourcecode">
|
3154
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3155
|
-
<div id="
|
3156
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000633_source')" id="l_M000633_source">show source</a> ]</p>
|
3157
|
+
<div id="M000633_source" class="dyn-source">
|
3156
3158
|
<pre>
|
3157
3159
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/silence.rb, line 32</span>
|
3158
3160
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">silence_stdout</span> <span class="ruby-comment cmt">#:yeild:</span>
|
@@ -3164,7 +3166,7 @@ TODO: pepulate_from(obj) ?
|
|
3164
3166
|
</div>
|
3165
3167
|
<div class="method">
|
3166
3168
|
<div class="title">
|
3167
|
-
<a name="
|
3169
|
+
<a name="M000631"></a><b>silence_stream</b>(*streams) {|| ...}
|
3168
3170
|
</div>
|
3169
3171
|
<div class="description">
|
3170
3172
|
<p>
|
@@ -3181,8 +3183,8 @@ Silences any stream for the duration of the block.
|
|
3181
3183
|
</pre>
|
3182
3184
|
</div>
|
3183
3185
|
<div class="sourcecode">
|
3184
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3185
|
-
<div id="
|
3186
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000631_source')" id="l_M000631_source">show source</a> ]</p>
|
3187
|
+
<div id="M000631_source" class="dyn-source">
|
3186
3188
|
<pre>
|
3187
3189
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/silence.rb, line 13</span>
|
3188
3190
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">silence_stream</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">streams</span>) <span class="ruby-comment cmt">#:yeild:</span>
|
@@ -3203,7 +3205,7 @@ Silences any stream for the duration of the block.
|
|
3203
3205
|
</div>
|
3204
3206
|
<div class="method">
|
3205
3207
|
<div class="title">
|
3206
|
-
<a name="
|
3208
|
+
<a name="M000681"></a><b>silence_stream</b>(*streams) {|| ...}
|
3207
3209
|
</div>
|
3208
3210
|
<div class="description">
|
3209
3211
|
<p>
|
@@ -3220,8 +3222,8 @@ Silences any stream for the duration of the block.
|
|
3220
3222
|
</pre>
|
3221
3223
|
</div>
|
3222
3224
|
<div class="sourcecode">
|
3223
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3224
|
-
<div id="
|
3225
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000681_source')" id="l_M000681_source">show source</a> ]</p>
|
3226
|
+
<div id="M000681_source" class="dyn-source">
|
3225
3227
|
<pre>
|
3226
3228
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/silence.rb, line 13</span>
|
3227
3229
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">silence_stream</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">streams</span>) <span class="ruby-comment cmt">#:yeild:</span>
|
@@ -3242,7 +3244,7 @@ Silences any stream for the duration of the block.
|
|
3242
3244
|
</div>
|
3243
3245
|
<div class="method">
|
3244
3246
|
<div class="title">
|
3245
|
-
<a name="
|
3247
|
+
<a name="M000685"></a><b>silence_warnings</b>() {|| ...}
|
3246
3248
|
</div>
|
3247
3249
|
<div class="description">
|
3248
3250
|
<p>
|
@@ -3260,8 +3262,8 @@ value afterwards.
|
|
3260
3262
|
</pre>
|
3261
3263
|
</div>
|
3262
3264
|
<div class="sourcecode">
|
3263
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3264
|
-
<div id="
|
3265
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000685_source')" id="l_M000685_source">show source</a> ]</p>
|
3266
|
+
<div id="M000685_source" class="dyn-source">
|
3265
3267
|
<pre>
|
3266
3268
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/silence.rb, line 55</span>
|
3267
3269
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">silence_warnings</span>
|
@@ -3276,7 +3278,7 @@ value afterwards.
|
|
3276
3278
|
</div>
|
3277
3279
|
<div class="method">
|
3278
3280
|
<div class="title">
|
3279
|
-
<a name="
|
3281
|
+
<a name="M000635"></a><b>silence_warnings</b>() {|| ...}
|
3280
3282
|
</div>
|
3281
3283
|
<div class="description">
|
3282
3284
|
<p>
|
@@ -3294,8 +3296,8 @@ value afterwards.
|
|
3294
3296
|
</pre>
|
3295
3297
|
</div>
|
3296
3298
|
<div class="sourcecode">
|
3297
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3298
|
-
<div id="
|
3299
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000635_source')" id="l_M000635_source">show source</a> ]</p>
|
3300
|
+
<div id="M000635_source" class="dyn-source">
|
3299
3301
|
<pre>
|
3300
3302
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/silence.rb, line 55</span>
|
3301
3303
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">silence_warnings</span>
|
@@ -3310,17 +3312,17 @@ value afterwards.
|
|
3310
3312
|
</div>
|
3311
3313
|
<div class="method">
|
3312
3314
|
<div class="title">
|
3313
|
-
<a name="
|
3315
|
+
<a name="M000634"></a><b>silently</b>(*streams) {|| ...}
|
3314
3316
|
</div>
|
3315
3317
|
<div class="description">
|
3316
3318
|
<p>
|
3317
|
-
Just like <a href="Kernel.html#
|
3319
|
+
Just like <a href="Kernel.html#M000631">silence_stream</a>, but will
|
3318
3320
|
default to STDOUT, STDERR if no streams are given.
|
3319
3321
|
</p>
|
3320
3322
|
</div>
|
3321
3323
|
<div class="sourcecode">
|
3322
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3323
|
-
<div id="
|
3324
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000634_source')" id="l_M000634_source">show source</a> ]</p>
|
3325
|
+
<div id="M000634_source" class="dyn-source">
|
3324
3326
|
<pre>
|
3325
3327
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/silence.rb, line 39</span>
|
3326
3328
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">silently</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">streams</span>) <span class="ruby-comment cmt">#:yeild:</span>
|
@@ -3333,17 +3335,17 @@ default to STDOUT, STDERR if no streams are given.
|
|
3333
3335
|
</div>
|
3334
3336
|
<div class="method">
|
3335
3337
|
<div class="title">
|
3336
|
-
<a name="
|
3338
|
+
<a name="M000684"></a><b>silently</b>(*streams) {|| ...}
|
3337
3339
|
</div>
|
3338
3340
|
<div class="description">
|
3339
3341
|
<p>
|
3340
|
-
Just like <a href="Kernel.html#
|
3342
|
+
Just like <a href="Kernel.html#M000631">silence_stream</a>, but will
|
3341
3343
|
default to STDOUT, STDERR if no streams are given.
|
3342
3344
|
</p>
|
3343
3345
|
</div>
|
3344
3346
|
<div class="sourcecode">
|
3345
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3346
|
-
<div id="
|
3347
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000684_source')" id="l_M000684_source">show source</a> ]</p>
|
3348
|
+
<div id="M000684_source" class="dyn-source">
|
3347
3349
|
<pre>
|
3348
3350
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/silence.rb, line 39</span>
|
3349
3351
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">silently</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">streams</span>) <span class="ruby-comment cmt">#:yeild:</span>
|
@@ -3356,22 +3358,22 @@ default to STDOUT, STDERR if no streams are given.
|
|
3356
3358
|
</div>
|
3357
3359
|
<div class="method">
|
3358
3360
|
<div class="title">
|
3359
|
-
<a name="
|
3361
|
+
<a name="M000603"></a><b>singleton</b>()
|
3360
3362
|
</div>
|
3361
3363
|
<div class="description">
|
3362
3364
|
<p>
|
3363
3365
|
Access to an object‘s "special" class, otherwise known <a
|
3364
|
-
href="Kernel.html#
|
3365
|
-
href="Kernel.html#
|
3366
|
-
href="Kernel.html#
|
3366
|
+
href="Kernel.html#M000614">as</a> it‘s <a
|
3367
|
+
href="Kernel.html#M000605">eigenclass</a> or <a
|
3368
|
+
href="Kernel.html#M000602">metaclass</a>, etc.
|
3367
3369
|
</p>
|
3368
3370
|
<p>
|
3369
3371
|
One day these names must be reconciled!
|
3370
3372
|
</p>
|
3371
3373
|
</div>
|
3372
3374
|
<div class="sourcecode">
|
3373
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3374
|
-
<div id="
|
3375
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000603_source')" id="l_M000603_source">show source</a> ]</p>
|
3376
|
+
<div id="M000603_source" class="dyn-source">
|
3375
3377
|
<pre>
|
3376
3378
|
<span class="ruby-comment cmt"># File lib/core/facets/metaid.rb, line 62</span>
|
3377
3379
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">singleton</span>
|
@@ -3383,17 +3385,33 @@ One day these names must be reconciled!
|
|
3383
3385
|
</div>
|
3384
3386
|
<div class="method">
|
3385
3387
|
<div class="title">
|
3386
|
-
<a name="
|
3388
|
+
<a name="M000604"></a><b>singleton_class</b>()
|
3389
|
+
</div>
|
3390
|
+
<div class="sourcecode">
|
3391
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000604_source')" id="l_M000604_source">show source</a> ]</p>
|
3392
|
+
<div id="M000604_source" class="dyn-source">
|
3393
|
+
<pre>
|
3394
|
+
<span class="ruby-comment cmt"># File lib/core/facets/metaid.rb, line 66</span>
|
3395
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">singleton_class</span>
|
3396
|
+
(<span class="ruby-keyword kw">class</span> <span class="ruby-operator"><<</span> <span class="ruby-keyword kw">self</span>; <span class="ruby-keyword kw">self</span>; <span class="ruby-keyword kw">end</span>)
|
3397
|
+
<span class="ruby-keyword kw">end</span>
|
3398
|
+
</pre>
|
3399
|
+
</div>
|
3400
|
+
</div>
|
3401
|
+
</div>
|
3402
|
+
<div class="method">
|
3403
|
+
<div class="title">
|
3404
|
+
<a name="M000701"></a><b>singleton_class</b>(&block)
|
3387
3405
|
</div>
|
3388
3406
|
<div class="description">
|
3389
3407
|
<p>
|
3390
3408
|
Easy access to an object‘s "special" class, otherwise known
|
3391
|
-
<a href="Kernel.html#
|
3409
|
+
<a href="Kernel.html#M000614">as</a> it‘s eigen or meta class.
|
3392
3410
|
</p>
|
3393
3411
|
</div>
|
3394
3412
|
<div class="sourcecode">
|
3395
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3396
|
-
<div id="
|
3413
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000701_source')" id="l_M000701_source">show source</a> ]</p>
|
3414
|
+
<div id="M000701_source" class="dyn-source">
|
3397
3415
|
<pre>
|
3398
3416
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/singleton_class.rb, line 6</span>
|
3399
3417
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">singleton_class</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -3409,17 +3427,17 @@ Easy access to an object‘s "special" class, otherwise known
|
|
3409
3427
|
</div>
|
3410
3428
|
<div class="method">
|
3411
3429
|
<div class="title">
|
3412
|
-
<a name="
|
3430
|
+
<a name="M000651"></a><b>singleton_class</b>(&block)
|
3413
3431
|
</div>
|
3414
3432
|
<div class="description">
|
3415
3433
|
<p>
|
3416
3434
|
Easy access to an object‘s "special" class, otherwise known
|
3417
|
-
<a href="Kernel.html#
|
3435
|
+
<a href="Kernel.html#M000614">as</a> it‘s eigen or meta class.
|
3418
3436
|
</p>
|
3419
3437
|
</div>
|
3420
3438
|
<div class="sourcecode">
|
3421
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3422
|
-
<div id="
|
3439
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000651_source')" id="l_M000651_source">show source</a> ]</p>
|
3440
|
+
<div id="M000651_source" class="dyn-source">
|
3423
3441
|
<pre>
|
3424
3442
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/singleton_class.rb, line 6</span>
|
3425
3443
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">singleton_class</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -3435,23 +3453,7 @@ Easy access to an object‘s "special" class, otherwise known
|
|
3435
3453
|
</div>
|
3436
3454
|
<div class="method">
|
3437
3455
|
<div class="title">
|
3438
|
-
<a name="
|
3439
|
-
</div>
|
3440
|
-
<div class="sourcecode">
|
3441
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000610_source')" id="l_M000610_source">show source</a> ]</p>
|
3442
|
-
<div id="M000610_source" class="dyn-source">
|
3443
|
-
<pre>
|
3444
|
-
<span class="ruby-comment cmt"># File lib/core/facets/metaid.rb, line 66</span>
|
3445
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">singleton_class</span>
|
3446
|
-
(<span class="ruby-keyword kw">class</span> <span class="ruby-operator"><<</span> <span class="ruby-keyword kw">self</span>; <span class="ruby-keyword kw">self</span>; <span class="ruby-keyword kw">end</span>)
|
3447
|
-
<span class="ruby-keyword kw">end</span>
|
3448
|
-
</pre>
|
3449
|
-
</div>
|
3450
|
-
</div>
|
3451
|
-
</div>
|
3452
|
-
<div class="method">
|
3453
|
-
<div class="title">
|
3454
|
-
<a name="M000673"></a><b>super_as</b>(klass=self.class.superclass, *args, &blk)
|
3456
|
+
<a name="M000667"></a><b>super_as</b>(klass=self.class.superclass, *args, &blk)
|
3455
3457
|
</div>
|
3456
3458
|
<div class="description">
|
3457
3459
|
<p>
|
@@ -3474,8 +3476,8 @@ Like super but skips to a specific ancestor module or class.
|
|
3474
3476
|
</pre>
|
3475
3477
|
</div>
|
3476
3478
|
<div class="sourcecode">
|
3477
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3478
|
-
<div id="
|
3479
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000667_source')" id="l_M000667_source">show source</a> ]</p>
|
3480
|
+
<div id="M000667_source" class="dyn-source">
|
3479
3481
|
<pre>
|
3480
3482
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/as.rb, line 73</span>
|
3481
3483
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">super_as</span>(<span class="ruby-identifier">klass</span>=<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">superclass</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
@@ -3491,7 +3493,7 @@ Like super but skips to a specific ancestor module or class.
|
|
3491
3493
|
</div>
|
3492
3494
|
<div class="method">
|
3493
3495
|
<div class="title">
|
3494
|
-
<a name="
|
3496
|
+
<a name="M000617"></a><b>super_as</b>(klass=self.class.superclass, *args, &blk)
|
3495
3497
|
</div>
|
3496
3498
|
<div class="description">
|
3497
3499
|
<p>
|
@@ -3514,8 +3516,8 @@ Like super but skips to a specific ancestor module or class.
|
|
3514
3516
|
</pre>
|
3515
3517
|
</div>
|
3516
3518
|
<div class="sourcecode">
|
3517
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3518
|
-
<div id="
|
3519
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000617_source')" id="l_M000617_source">show source</a> ]</p>
|
3520
|
+
<div id="M000617_source" class="dyn-source">
|
3519
3521
|
<pre>
|
3520
3522
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/as.rb, line 73</span>
|
3521
3523
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">super_as</span>(<span class="ruby-identifier">klass</span>=<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">superclass</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
@@ -3531,7 +3533,7 @@ Like super but skips to a specific ancestor module or class.
|
|
3531
3533
|
</div>
|
3532
3534
|
<div class="method">
|
3533
3535
|
<div class="title">
|
3534
|
-
<a name="
|
3536
|
+
<a name="M000666"></a><b>super_method</b>(klass, meth)
|
3535
3537
|
</div>
|
3536
3538
|
<div class="description">
|
3537
3539
|
<p>
|
@@ -3539,8 +3541,8 @@ Returns method of a parent class bound to self.
|
|
3539
3541
|
</p>
|
3540
3542
|
</div>
|
3541
3543
|
<div class="sourcecode">
|
3542
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3543
|
-
<div id="
|
3544
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000666_source')" id="l_M000666_source">show source</a> ]</p>
|
3545
|
+
<div id="M000666_source" class="dyn-source">
|
3544
3546
|
<pre>
|
3545
3547
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/as.rb, line 50</span>
|
3546
3548
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">super_method</span>(<span class="ruby-identifier">klass</span>, <span class="ruby-identifier">meth</span>)
|
@@ -3555,7 +3557,7 @@ Returns method of a parent class bound to self.
|
|
3555
3557
|
</div>
|
3556
3558
|
<div class="method">
|
3557
3559
|
<div class="title">
|
3558
|
-
<a name="
|
3560
|
+
<a name="M000616"></a><b>super_method</b>(klass, meth)
|
3559
3561
|
</div>
|
3560
3562
|
<div class="description">
|
3561
3563
|
<p>
|
@@ -3563,8 +3565,8 @@ Returns method of a parent class bound to self.
|
|
3563
3565
|
</p>
|
3564
3566
|
</div>
|
3565
3567
|
<div class="sourcecode">
|
3566
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3567
|
-
<div id="
|
3568
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000616_source')" id="l_M000616_source">show source</a> ]</p>
|
3569
|
+
<div id="M000616_source" class="dyn-source">
|
3568
3570
|
<pre>
|
3569
3571
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/as.rb, line 50</span>
|
3570
3572
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">super_method</span>(<span class="ruby-identifier">klass</span>, <span class="ruby-identifier">meth</span>)
|
@@ -3579,24 +3581,24 @@ Returns method of a parent class bound to self.
|
|
3579
3581
|
</div>
|
3580
3582
|
<div class="method">
|
3581
3583
|
<div class="title">
|
3582
|
-
<a name="
|
3584
|
+
<a name="M000669"></a><b>suppress</b>(*exception_classes) {|| ...}
|
3583
3585
|
</div>
|
3584
3586
|
<div class="description">
|
3585
3587
|
<p>
|
3586
3588
|
Supress errors while executing a block, <a
|
3587
|
-
href="Kernel.html#
|
3589
|
+
href="Kernel.html#M000642">with</a> execptions.
|
3588
3590
|
</p>
|
3589
3591
|
<p>
|
3590
3592
|
TODO: This will be deprecatd in favor or <a
|
3591
|
-
href="Exception.html#
|
3593
|
+
href="Exception.html#M000394">Exception#suppress</a>.
|
3592
3594
|
</p>
|
3593
3595
|
<pre>
|
3594
3596
|
CREDIT: David Heinemeier Hansson
|
3595
3597
|
</pre>
|
3596
3598
|
</div>
|
3597
3599
|
<div class="sourcecode">
|
3598
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3599
|
-
<div id="
|
3600
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000669_source')" id="l_M000669_source">show source</a> ]</p>
|
3601
|
+
<div id="M000669_source" class="dyn-source">
|
3600
3602
|
<pre>
|
3601
3603
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/suppress.rb, line 9</span>
|
3602
3604
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">suppress</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">exception_classes</span>)
|
@@ -3612,24 +3614,24 @@ href="Exception.html#M000418">Exception#suppress</a>.
|
|
3612
3614
|
</div>
|
3613
3615
|
<div class="method">
|
3614
3616
|
<div class="title">
|
3615
|
-
<a name="
|
3617
|
+
<a name="M000619"></a><b>suppress</b>(*exception_classes) {|| ...}
|
3616
3618
|
</div>
|
3617
3619
|
<div class="description">
|
3618
3620
|
<p>
|
3619
3621
|
Supress errors while executing a block, <a
|
3620
|
-
href="Kernel.html#
|
3622
|
+
href="Kernel.html#M000642">with</a> execptions.
|
3621
3623
|
</p>
|
3622
3624
|
<p>
|
3623
3625
|
TODO: This will be deprecatd in favor or <a
|
3624
|
-
href="Exception.html#
|
3626
|
+
href="Exception.html#M000394">Exception#suppress</a>.
|
3625
3627
|
</p>
|
3626
3628
|
<pre>
|
3627
3629
|
CREDIT: David Heinemeier Hansson
|
3628
3630
|
</pre>
|
3629
3631
|
</div>
|
3630
3632
|
<div class="sourcecode">
|
3631
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3632
|
-
<div id="
|
3633
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000619_source')" id="l_M000619_source">show source</a> ]</p>
|
3634
|
+
<div id="M000619_source" class="dyn-source">
|
3633
3635
|
<pre>
|
3634
3636
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/suppress.rb, line 9</span>
|
3635
3637
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">suppress</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">exception_classes</span>)
|
@@ -3645,17 +3647,17 @@ href="Exception.html#M000418">Exception#suppress</a>.
|
|
3645
3647
|
</div>
|
3646
3648
|
<div class="method">
|
3647
3649
|
<div class="title">
|
3648
|
-
<a name="
|
3650
|
+
<a name="M000623"></a><b>tap</b>() {|self| ...}
|
3649
3651
|
</div>
|
3650
3652
|
<div class="description">
|
3651
3653
|
<p>
|
3652
|
-
The <a href="Kernel.html#
|
3654
|
+
The <a href="Kernel.html#M000623">tap</a> K-Combinator. This yields self
|
3653
3655
|
-and- returns self.
|
3654
3656
|
</p>
|
3655
3657
|
</div>
|
3656
3658
|
<div class="sourcecode">
|
3657
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3658
|
-
<div id="
|
3659
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000623_source')" id="l_M000623_source">show source</a> ]</p>
|
3660
|
+
<div id="M000623_source" class="dyn-source">
|
3659
3661
|
<pre>
|
3660
3662
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/tap.rb, line 7</span>
|
3661
3663
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tap</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">b</span>)
|
@@ -3670,17 +3672,17 @@ The <a href="Kernel.html#M000629">tap</a> K-Combinator. This yields self
|
|
3670
3672
|
</div>
|
3671
3673
|
<div class="method">
|
3672
3674
|
<div class="title">
|
3673
|
-
<a name="
|
3675
|
+
<a name="M000673"></a><b>tap</b>() {|self| ...}
|
3674
3676
|
</div>
|
3675
3677
|
<div class="description">
|
3676
3678
|
<p>
|
3677
|
-
The <a href="Kernel.html#
|
3679
|
+
The <a href="Kernel.html#M000623">tap</a> K-Combinator. This yields self
|
3678
3680
|
-and- returns self.
|
3679
3681
|
</p>
|
3680
3682
|
</div>
|
3681
3683
|
<div class="sourcecode">
|
3682
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3683
|
-
<div id="
|
3684
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000673_source')" id="l_M000673_source">show source</a> ]</p>
|
3685
|
+
<div id="M000673_source" class="dyn-source">
|
3684
3686
|
<pre>
|
3685
3687
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/tap.rb, line 7</span>
|
3686
3688
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tap</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">b</span>)
|
@@ -3695,7 +3697,7 @@ The <a href="Kernel.html#M000629">tap</a> K-Combinator. This yields self
|
|
3695
3697
|
</div>
|
3696
3698
|
<div class="method">
|
3697
3699
|
<div class="title">
|
3698
|
-
<a name="
|
3700
|
+
<a name="M000609"></a><b>to_b</b>()
|
3699
3701
|
</div>
|
3700
3702
|
<div class="description">
|
3701
3703
|
<p>
|
@@ -3710,8 +3712,8 @@ this to suite the particular need.
|
|
3710
3712
|
</pre>
|
3711
3713
|
</div>
|
3712
3714
|
<div class="sourcecode">
|
3713
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3714
|
-
<div id="
|
3715
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000609_source')" id="l_M000609_source">show source</a> ]</p>
|
3716
|
+
<div id="M000609_source" class="dyn-source">
|
3715
3717
|
<pre>
|
3716
3718
|
<span class="ruby-comment cmt"># File lib/core/facets/boolean.rb, line 94</span>
|
3717
3719
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_b</span>
|
@@ -3723,7 +3725,7 @@ this to suite the particular need.
|
|
3723
3725
|
</div>
|
3724
3726
|
<div class="method">
|
3725
3727
|
<div class="title">
|
3726
|
-
<a name="
|
3728
|
+
<a name="M000610"></a><b>true?</b>()
|
3727
3729
|
</div>
|
3728
3730
|
<div class="description">
|
3729
3731
|
<p>
|
@@ -3737,8 +3739,8 @@ otherwise false.
|
|
3737
3739
|
</pre>
|
3738
3740
|
</div>
|
3739
3741
|
<div class="sourcecode">
|
3740
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3741
|
-
<div id="
|
3742
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000610_source')" id="l_M000610_source">show source</a> ]</p>
|
3743
|
+
<div id="M000610_source" class="dyn-source">
|
3742
3744
|
<pre>
|
3743
3745
|
<span class="ruby-comment cmt"># File lib/core/facets/boolean.rb, line 105</span>
|
3744
3746
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">true?</span>
|
@@ -3750,7 +3752,7 @@ otherwise false.
|
|
3750
3752
|
</div>
|
3751
3753
|
<div class="method">
|
3752
3754
|
<div class="title">
|
3753
|
-
<a name="
|
3755
|
+
<a name="M000702"></a><b>try</b>(method, default=nil)
|
3754
3756
|
</div>
|
3755
3757
|
<div class="description">
|
3756
3758
|
<p>
|
@@ -3769,8 +3771,8 @@ vs
|
|
3769
3771
|
</pre>
|
3770
3772
|
</div>
|
3771
3773
|
<div class="sourcecode">
|
3772
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3773
|
-
<div id="
|
3774
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000702_source')" id="l_M000702_source">show source</a> ]</p>
|
3775
|
+
<div id="M000702_source" class="dyn-source">
|
3774
3776
|
<pre>
|
3775
3777
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/try.rb, line 10</span>
|
3776
3778
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">try</span>(<span class="ruby-identifier">method</span>, <span class="ruby-identifier">default</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -3786,7 +3788,7 @@ vs
|
|
3786
3788
|
</div>
|
3787
3789
|
<div class="method">
|
3788
3790
|
<div class="title">
|
3789
|
-
<a name="
|
3791
|
+
<a name="M000652"></a><b>try</b>(method, default=nil)
|
3790
3792
|
</div>
|
3791
3793
|
<div class="description">
|
3792
3794
|
<p>
|
@@ -3805,8 +3807,8 @@ vs
|
|
3805
3807
|
</pre>
|
3806
3808
|
</div>
|
3807
3809
|
<div class="sourcecode">
|
3808
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3809
|
-
<div id="
|
3810
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000652_source')" id="l_M000652_source">show source</a> ]</p>
|
3811
|
+
<div id="M000652_source" class="dyn-source">
|
3810
3812
|
<pre>
|
3811
3813
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/try.rb, line 10</span>
|
3812
3814
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">try</span>(<span class="ruby-identifier">method</span>, <span class="ruby-identifier">default</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -3822,7 +3824,7 @@ vs
|
|
3822
3824
|
</div>
|
3823
3825
|
<div class="method">
|
3824
3826
|
<div class="title">
|
3825
|
-
<a name="
|
3827
|
+
<a name="M000657"></a><b>val?</b>()
|
3826
3828
|
</div>
|
3827
3829
|
<div class="description">
|
3828
3830
|
<p>
|
@@ -3837,8 +3839,8 @@ if it is not nil? and if it responds to empty?, is not empty.
|
|
3837
3839
|
</pre>
|
3838
3840
|
</div>
|
3839
3841
|
<div class="sourcecode">
|
3840
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3841
|
-
<div id="
|
3842
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000657_source')" id="l_M000657_source">show source</a> ]</p>
|
3843
|
+
<div id="M000657_source" class="dyn-source">
|
3842
3844
|
<pre>
|
3843
3845
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/val.rb, line 12</span>
|
3844
3846
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">val?</span>
|
@@ -3852,7 +3854,7 @@ if it is not nil? and if it responds to empty?, is not empty.
|
|
3852
3854
|
</div>
|
3853
3855
|
<div class="method">
|
3854
3856
|
<div class="title">
|
3855
|
-
<a name="
|
3857
|
+
<a name="M000707"></a><b>val?</b>()
|
3856
3858
|
</div>
|
3857
3859
|
<div class="description">
|
3858
3860
|
<p>
|
@@ -3867,8 +3869,8 @@ if it is not nil? and if it responds to empty?, is not empty.
|
|
3867
3869
|
</pre>
|
3868
3870
|
</div>
|
3869
3871
|
<div class="sourcecode">
|
3870
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3871
|
-
<div id="
|
3872
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000707_source')" id="l_M000707_source">show source</a> ]</p>
|
3873
|
+
<div id="M000707_source" class="dyn-source">
|
3872
3874
|
<pre>
|
3873
3875
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/val.rb, line 12</span>
|
3874
3876
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">val?</span>
|
@@ -3882,11 +3884,11 @@ if it is not nil? and if it responds to empty?, is not empty.
|
|
3882
3884
|
</div>
|
3883
3885
|
<div class="method">
|
3884
3886
|
<div class="title">
|
3885
|
-
<a name="
|
3887
|
+
<a name="M000692"></a><b>with</b>(obj=self, &block)
|
3886
3888
|
</div>
|
3887
3889
|
<div class="description">
|
3888
3890
|
<p>
|
3889
|
-
Like <a href="Kernel.html#
|
3891
|
+
Like <a href="Kernel.html#M000654">returning</a> but exectures the block
|
3890
3892
|
via instance_eval.
|
3891
3893
|
</p>
|
3892
3894
|
<pre>
|
@@ -3901,8 +3903,8 @@ via instance_eval.
|
|
3901
3903
|
</pre>
|
3902
3904
|
</div>
|
3903
3905
|
<div class="sourcecode">
|
3904
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3905
|
-
<div id="
|
3906
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000692_source')" id="l_M000692_source">show source</a> ]</p>
|
3907
|
+
<div id="M000692_source" class="dyn-source">
|
3906
3908
|
<pre>
|
3907
3909
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/with.rb, line 15</span>
|
3908
3910
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">with</span>(<span class="ruby-identifier">obj</span>=<span class="ruby-keyword kw">self</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -3914,11 +3916,11 @@ via instance_eval.
|
|
3914
3916
|
</div>
|
3915
3917
|
<div class="method">
|
3916
3918
|
<div class="title">
|
3917
|
-
<a name="
|
3919
|
+
<a name="M000642"></a><b>with</b>(obj=self, &block)
|
3918
3920
|
</div>
|
3919
3921
|
<div class="description">
|
3920
3922
|
<p>
|
3921
|
-
Like <a href="Kernel.html#
|
3923
|
+
Like <a href="Kernel.html#M000654">returning</a> but exectures the block
|
3922
3924
|
via instance_eval.
|
3923
3925
|
</p>
|
3924
3926
|
<pre>
|
@@ -3933,8 +3935,8 @@ via instance_eval.
|
|
3933
3935
|
</pre>
|
3934
3936
|
</div>
|
3935
3937
|
<div class="sourcecode">
|
3936
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3937
|
-
<div id="
|
3938
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000642_source')" id="l_M000642_source">show source</a> ]</p>
|
3939
|
+
<div id="M000642_source" class="dyn-source">
|
3938
3940
|
<pre>
|
3939
3941
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/with.rb, line 15</span>
|
3940
3942
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">with</span>(<span class="ruby-identifier">obj</span>=<span class="ruby-keyword kw">self</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|