facets 2.4.3 → 2.4.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +1584 -108
- data/MANIFEST +78 -1746
- data/METADATA +1 -1
- data/NEWS +37 -57
- data/demo/bench/bench_load.rb +56 -0
- data/{README.core → doc/README.core} +0 -0
- data/{README.lore → doc/README.lore} +0 -0
- data/{README.more → doc/README.more} +0 -0
- data/doc/{notes → book}/history.rdoc +0 -0
- data/doc/{notes → book}/notes.rdoc +0 -0
- data/doc/news/news-2.0.5 +8 -0
- data/doc/news/news-2.1.0 +9 -0
- data/doc/news/news-2.1.1 +5 -0
- data/doc/news/news-2.1.2 +6 -0
- data/doc/news/news-2.1.3 +5 -0
- data/doc/news/news-2.2.0 +14 -0
- data/doc/news/news-2.2.1 +4 -0
- data/doc/news/news-2.3.0 +6 -0
- data/doc/news/{NEWS-2.4.0 → news-2.4.0} +19 -1
- data/doc/news/news-2.4.1 +8 -0
- data/doc/news/news-2.4.2 +4 -0
- data/doc/news/news-2.4.3 +78 -0
- data/doc/rdoc/core/classes/Array.html +118 -850
- data/doc/rdoc/core/classes/Binding.html +45 -291
- data/doc/rdoc/core/classes/Class.html +20 -244
- data/doc/rdoc/core/classes/Comparable.html +26 -195
- data/doc/rdoc/core/classes/Dir.html +32 -332
- data/doc/rdoc/core/classes/Enumerable.html +152 -1154
- data/doc/rdoc/core/classes/Exception.html +8 -76
- data/doc/rdoc/core/classes/FalseClass.html +8 -8
- data/doc/rdoc/core/classes/File.html +59 -456
- data/doc/rdoc/core/classes/FileTest.html +4 -33
- data/doc/rdoc/core/classes/Float.html +10 -148
- data/doc/rdoc/core/classes/Friend.html +4 -43
- data/doc/rdoc/core/classes/Functor.html +12 -12
- data/doc/rdoc/core/classes/Hash.html +278 -1930
- data/doc/rdoc/core/classes/Indexable.html +97 -97
- data/doc/rdoc/core/classes/InstanceVariables.html +44 -251
- data/doc/rdoc/core/classes/Integer.html +90 -365
- data/doc/rdoc/core/classes/Kernel.html +365 -2062
- data/doc/rdoc/core/classes/Lazy/Promise.html +1 -1
- data/doc/rdoc/core/classes/MatchData.html +15 -121
- data/doc/rdoc/core/classes/Module.html +213 -1197
- data/doc/rdoc/core/classes/NilClass.html +22 -79
- data/doc/rdoc/core/classes/Numeric.html +27 -136
- data/doc/rdoc/core/classes/Object.html +52 -4
- data/doc/rdoc/core/classes/Proc.html +23 -228
- data/doc/rdoc/core/classes/Range.html +1 -263
- data/doc/rdoc/core/classes/Regexp.html +14 -110
- data/doc/rdoc/core/classes/Stackable.html +31 -31
- data/doc/rdoc/core/classes/String.html +401 -2464
- data/doc/rdoc/core/classes/Symbol.html +67 -245
- data/doc/rdoc/core/classes/Time.html +157 -459
- data/doc/rdoc/core/classes/TrueClass.html +8 -8
- data/doc/rdoc/core/classes/UnboundMethod.html +11 -110
- data/doc/rdoc/core/created.rid +1 -1
- data/doc/rdoc/core/files/{README_core.html → doc/README_core.html} +7 -6
- data/doc/rdoc/core/files/lib/core/facets/{module/alias_rb.html → array/index_rb.html} +4 -4
- data/doc/rdoc/core/files/lib/core/facets/array_rb.html +1 -37
- data/doc/rdoc/core/files/lib/core/facets/binding_rb.html +1 -9
- data/doc/rdoc/core/files/lib/core/facets/class/descendents_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/class_rb.html +1 -10
- data/doc/rdoc/core/files/lib/core/facets/comparable_rb.html +1 -7
- data/doc/rdoc/core/files/lib/core/facets/dir_rb.html +1 -11
- data/doc/rdoc/core/files/lib/core/facets/enumerable/group_by_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable_rb.html +1 -27
- data/doc/rdoc/core/files/lib/core/facets/exception_rb.html +1 -6
- data/doc/rdoc/core/files/lib/core/facets/file/split_root_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/file_rb.html +1 -9
- data/doc/rdoc/core/files/lib/core/facets/filetest_rb.html +1 -5
- data/doc/rdoc/core/files/lib/core/facets/float/round_rb.html +5 -5
- data/doc/rdoc/core/files/lib/core/facets/float_rb.html +1 -5
- data/doc/rdoc/core/files/lib/core/facets/hash/except_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/{time/to_date_rb.html → hash/op_push_rb.html} +4 -4
- data/doc/rdoc/core/files/lib/core/facets/hash/slice_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/update_rb.html +5 -1
- data/doc/rdoc/core/files/lib/core/facets/hash_rb.html +1 -32
- data/doc/rdoc/core/files/lib/core/facets/indexable_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/integer_rb.html +1 -10
- data/doc/rdoc/core/files/lib/core/facets/kernel/instance_exec_rb.html +1 -5
- data/doc/rdoc/core/files/lib/core/facets/kernel/qua_class_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/singleton_class_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/with_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel_rb.html +1 -46
- data/doc/rdoc/core/files/lib/core/facets/matchdata_rb.html +1 -6
- data/doc/rdoc/core/files/lib/core/facets/metaid_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/alias_accessor_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module/alias_method_chain_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module/alias_module_function_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module/instance_methods_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module_rb.html +1 -27
- data/doc/rdoc/core/files/lib/core/facets/nilclass/ergo_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/nilclass/to_f_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/nilclass_rb.html +1 -5
- data/doc/rdoc/core/files/lib/core/facets/numeric/round_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/numeric_rb.html +1 -7
- data/doc/rdoc/core/files/lib/core/facets/proc/bind_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/proc_rb.html +1 -9
- data/doc/rdoc/core/files/lib/core/facets/range_rb.html +1 -9
- data/doc/rdoc/core/files/lib/core/facets/regexp_rb.html +1 -6
- data/doc/rdoc/core/files/lib/core/facets/string/chars_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/each_char_rb.html +5 -1
- data/doc/rdoc/core/files/lib/core/facets/{kernel/suppress_rb.html → string/op_sub_rb.html} +4 -4
- data/doc/rdoc/core/files/lib/core/facets/string/subtract_rb.html +9 -1
- data/doc/rdoc/core/files/lib/core/facets/string/variablize_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string_rb.html +1 -38
- data/doc/rdoc/core/files/lib/core/facets/symbol/plain_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/symbol/query_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/symbol/setter_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/symbol/variablize_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/symbol_rb.html +1 -9
- data/doc/rdoc/core/files/lib/core/facets/time/advance_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/time/change_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/time/elapse_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/time/hence_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/time/set_rb.html +1 -5
- data/doc/rdoc/core/files/lib/core/facets/time/stamp_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/time/to_time_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/time/trunc_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/time_rb.html +1 -15
- data/doc/rdoc/core/files/lib/core/facets/unboundmethod_rb.html +1 -6
- data/doc/rdoc/core/fr_file_index.html +16 -242
- data/doc/rdoc/core/fr_method_index.html +425 -780
- data/doc/rdoc/core/index.html +1 -1
- data/doc/rdoc/lore/classes/Array.html +16 -16
- data/doc/rdoc/lore/classes/CGI.html +25 -19
- data/doc/rdoc/lore/classes/Config.html +8 -8
- data/doc/rdoc/lore/classes/Continuation.html +4 -4
- data/doc/rdoc/lore/classes/Date.html +425 -47
- data/doc/rdoc/lore/classes/DateTime.html +585 -0
- data/doc/rdoc/lore/classes/File.html +4 -4
- data/doc/rdoc/lore/classes/FileUtils.html +32 -376
- data/doc/rdoc/lore/classes/GetoptLong.html +4 -4
- data/doc/rdoc/lore/classes/GetoptLong/DSL.html +24 -24
- data/doc/rdoc/lore/classes/Kernel.html +137 -0
- data/doc/rdoc/lore/classes/Logger.html +12 -12
- data/doc/rdoc/lore/classes/Logger/Ansicolor.html +40 -40
- data/doc/rdoc/lore/classes/Logger/LogDevice.html +4 -4
- data/doc/rdoc/lore/classes/NilClass.html +5 -5
- data/doc/rdoc/lore/classes/OpenStruct.html +47 -47
- data/doc/rdoc/lore/classes/Pathname.html +126 -40
- data/doc/rdoc/lore/classes/Shellwords.html +4 -4
- data/doc/rdoc/lore/classes/String.html +29 -8
- data/doc/rdoc/lore/classes/Time.html +156 -0
- data/doc/rdoc/lore/classes/URI.html +48 -48
- data/doc/rdoc/lore/classes/URI/Hash.html +4 -4
- data/doc/rdoc/lore/classes/URI/Kernel.html +8 -8
- data/doc/rdoc/lore/created.rid +1 -1
- data/doc/rdoc/lore/files/{README_lore.html → doc/README_lore.html} +4 -4
- data/doc/rdoc/lore/files/lib/lore/facets/basicobject_rb.html +22 -94
- data/doc/rdoc/lore/files/lib/lore/facets/cgi_rb.html +1 -1
- data/doc/rdoc/lore/files/lib/lore/facets/continuation_rb.html +2 -2
- data/doc/rdoc/lore/files/lib/lore/facets/date_rb.html +2 -27
- data/doc/rdoc/lore/files/lib/lore/facets/ostruct_rb.html +1 -1
- data/doc/rdoc/lore/files/lib/lore/facets/pathname_rb.html +1 -15
- data/doc/rdoc/lore/files/lib/lore/facets/yaml_rb.html +2 -1
- data/doc/rdoc/lore/fr_class_index.html +3 -1
- data/doc/rdoc/lore/fr_file_index.html +1 -8
- data/doc/rdoc/lore/fr_method_index.html +125 -93
- data/doc/rdoc/lore/index.html +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/Argvector.html +489 -0
- data/doc/rdoc/more/classes/Association.html +28 -28
- data/doc/rdoc/more/classes/Association/Kernel.html +8 -8
- 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 +8 -61
- data/doc/rdoc/more/classes/BlankSlate.html +131 -0
- data/doc/rdoc/more/classes/Buildable.html +4 -4
- data/doc/rdoc/more/classes/BuildingBlock.html +1 -1
- data/doc/rdoc/more/classes/CLI/Arguments.html +88 -88
- data/doc/rdoc/more/classes/CLI/Command.html +29 -28
- data/doc/rdoc/more/classes/CLI/NoCommandError.html +5 -5
- data/doc/rdoc/more/classes/CLI/NoOptionError.html +5 -5
- 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 +35 -34
- data/doc/rdoc/more/classes/Crypt.html +16 -16
- data/doc/rdoc/more/classes/CssTree.html +8 -8
- data/doc/rdoc/more/classes/Dictionary.html +232 -232
- data/doc/rdoc/more/classes/DictionaryMatcher.html +38 -38
- data/doc/rdoc/more/classes/DictionaryMatcher/MatchData.html +4 -4
- 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/FileShell.html +174 -174
- 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 +35 -181
- data/doc/rdoc/more/classes/Hash2Xml.html +4 -4
- data/doc/rdoc/more/classes/HtmlFilter.html +9 -9
- 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 → Instantize.html} +17 -17
- data/doc/rdoc/more/classes/Interval.html +189 -189
- data/doc/rdoc/more/classes/It.html +12 -12
- 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/more/classes/Module.html +177 -177
- 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 +8 -69
- data/doc/rdoc/more/classes/NullClass.html +24 -24
- 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 +117 -117
- 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/Pool.html +18 -18
- data/doc/rdoc/more/classes/Proc.html +10 -10
- 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 +6 -23
- data/doc/rdoc/more/classes/Random/Array.html +52 -52
- data/doc/rdoc/more/classes/Random/Hash.html +64 -64
- data/doc/rdoc/more/classes/Random/Object.html +5 -5
- data/doc/rdoc/more/classes/Random/String.html +46 -46
- data/doc/rdoc/more/classes/Random/String/Self.html +13 -13
- 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/Rope.html +434 -0
- 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/String/Mask.html +557 -0
- data/doc/rdoc/more/classes/String/Style.html +146 -147
- data/doc/rdoc/more/classes/String/Words.html +31 -272
- data/doc/rdoc/more/classes/System.html +253 -253
- data/doc/rdoc/more/classes/Timer.html +50 -50
- data/doc/rdoc/more/classes/Timer/Dummy.html +9 -9
- data/doc/rdoc/more/classes/TracePoint.html +58 -58
- 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 +82 -56
- 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/{README_more.html → doc/README_more.html} +3 -3
- data/doc/rdoc/more/files/lib/more/facets/annotations_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/arguments_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/argvector_rb.html +142 -0
- data/doc/rdoc/more/files/lib/more/facets/bicrypt_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/blankslate_rb.html +92 -0
- data/doc/rdoc/more/files/lib/more/facets/buildable_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/bytes_rb.html +1 -78
- data/doc/rdoc/more/files/lib/more/facets/command_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/coroutine_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/dictionary_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/elementor_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/fileshell_rb.html +1 -29
- data/doc/rdoc/more/files/lib/more/facets/inheritor_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/instantise_rb.html +5 -54
- data/doc/rdoc/more/files/lib/more/facets/instantize_rb.html +160 -0
- data/doc/rdoc/more/files/lib/more/facets/interval_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/multipliers_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/openobject_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/random_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/recorder_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/reflection_rb.html +1 -2
- data/doc/rdoc/more/files/lib/more/facets/rope_rb.html +98 -0
- data/doc/rdoc/{core/files/lib/core/facets/string/to_time_rb.html → more/files/lib/more/facets/string/mask_rb.html} +5 -5
- data/doc/rdoc/more/files/lib/more/facets/{style_rb.html → string/style_rb.html} +4 -4
- data/doc/rdoc/more/files/lib/more/facets/timer_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/typecast_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/version_rb.html +2 -3
- data/doc/rdoc/more/fr_class_index.html +5 -2
- data/doc/rdoc/more/fr_file_index.html +7 -8
- data/doc/rdoc/more/fr_method_index.html +940 -926
- data/doc/rdoc/more/index.html +1 -1
- data/lib/core/facets-load.rb +12 -0
- data/lib/core/facets.rb +1 -1
- data/lib/core/facets/array.rb +5 -25
- data/lib/core/facets/array/index.rb +23 -0
- data/lib/core/facets/binding.rb +5 -6
- data/lib/core/facets/class.rb +5 -6
- data/lib/core/facets/class/descendents.rb +10 -2
- data/lib/core/facets/comparable.rb +5 -3
- data/lib/core/facets/dir.rb +5 -6
- data/lib/core/facets/enumerable.rb +5 -23
- data/lib/core/facets/enumerable/group_by.rb +2 -2
- data/lib/core/facets/exception.rb +6 -2
- data/lib/core/facets/file.rb +5 -5
- data/lib/core/facets/file/split_root.rb +10 -0
- data/lib/core/facets/filetest.rb +6 -1
- data/lib/core/facets/float.rb +6 -1
- data/lib/core/facets/float/round.rb +1 -35
- data/lib/core/facets/hash.rb +5 -28
- data/lib/core/facets/hash/except.rb +15 -11
- data/lib/core/facets/hash/op_push.rb +17 -0
- data/lib/core/facets/hash/slice.rb +21 -13
- data/lib/core/facets/hash/update.rb +19 -13
- data/lib/core/facets/indexable.rb +1 -0
- data/lib/core/facets/integer.rb +5 -7
- data/lib/core/facets/kernel.rb +5 -44
- data/lib/core/facets/kernel/instance_exec.rb +29 -8
- data/lib/core/facets/kernel/qua_class.rb +19 -0
- data/lib/core/facets/kernel/singleton_class.rb +6 -1
- data/lib/core/facets/kernel/with.rb +1 -1
- data/lib/core/facets/matchdata.rb +5 -3
- data/lib/core/facets/metaid.rb +0 -51
- data/lib/core/facets/module.rb +5 -23
- data/lib/core/facets/module/alias_accessor.rb +45 -0
- data/lib/core/facets/module/{alias.rb → alias_method_chain.rb} +0 -65
- data/lib/core/facets/module/alias_module_function.rb +30 -0
- data/lib/core/facets/module/instance_methods.rb +2 -2
- data/lib/core/facets/nilclass.rb +5 -2
- data/lib/core/facets/nilclass/ergo.rb +1 -0
- data/lib/core/facets/nilclass/to_f.rb +2 -2
- data/lib/core/facets/numeric.rb +5 -3
- data/lib/core/facets/numeric/round.rb +21 -0
- data/lib/core/facets/proc.rb +5 -5
- data/lib/core/facets/range.rb +5 -5
- data/lib/core/facets/regexp.rb +5 -2
- data/lib/core/facets/string.rb +5 -36
- data/lib/core/facets/string/chars.rb +3 -3
- data/lib/core/facets/string/each_char.rb +15 -6
- data/lib/core/facets/string/op_sub.rb +14 -0
- data/lib/core/facets/string/subtract.rb +3 -13
- data/lib/core/facets/string/variablize.rb +12 -0
- data/lib/core/facets/symbol.rb +5 -5
- data/lib/core/facets/symbol/plain.rb +44 -0
- data/lib/core/facets/symbol/query.rb +1 -0
- data/lib/core/facets/symbol/setter.rb +1 -0
- data/lib/core/facets/symbol/variablize.rb +12 -0
- data/lib/core/facets/time.rb +5 -12
- data/lib/core/facets/time/advance.rb +17 -0
- data/lib/core/facets/time/change.rb +16 -22
- data/lib/core/facets/time/elapse.rb +2 -2
- data/lib/core/facets/time/hence.rb +83 -50
- data/lib/core/facets/time/set.rb +21 -1
- data/lib/core/facets/time/stamp.rb +2 -4
- data/lib/core/facets/time/to_time.rb +8 -2
- data/lib/core/facets/unboundmethod.rb +5 -2
- data/lib/lore/facets/basicobject.rb +8 -257
- data/lib/lore/facets/cgi.rb +1 -1
- data/lib/lore/facets/date.rb +349 -43
- data/lib/lore/facets/ostruct.rb +1 -1
- data/lib/lore/facets/pathname.rb +41 -10
- data/lib/more/facets/annotations.rb +2 -0
- data/lib/more/facets/arguments.rb +2 -0
- data/lib/more/facets/argvector.rb +353 -0
- data/lib/more/facets/bicrypt.rb +1 -1
- data/lib/more/facets/blankslate.rb +66 -0
- data/lib/more/facets/buildable.rb +1 -1
- data/lib/more/facets/bytes.rb +2 -0
- data/lib/more/facets/command.rb +4 -1
- data/lib/more/facets/coroutine.rb +1 -0
- data/lib/more/facets/dictionary.rb +4 -4
- data/lib/more/facets/elementor.rb +1 -1
- data/lib/more/facets/fileshell.rb +2 -0
- data/lib/more/facets/inheritor.rb +9 -5
- data/lib/more/facets/instantise.rb +1 -92
- data/lib/more/facets/instantize.rb +95 -0
- data/lib/more/facets/interval.rb +2 -2
- data/lib/more/facets/multipliers.rb +4 -4
- data/lib/more/facets/openobject.rb +6 -1
- data/lib/more/facets/random.rb +25 -22
- data/lib/more/facets/recorder.rb +1 -1
- data/lib/more/facets/rope.rb +131 -0
- data/lib/more/facets/string/mask.rb +278 -0
- data/lib/more/facets/{style.rb → string/style.rb} +7 -6
- data/lib/more/facets/typecast.rb +1 -1
- data/lib/more/facets/version.rb +14 -0
- data/test/core/binding/test_local_variables.rb +1 -1
- data/test/core/enumerable/test_group_by.rb +7 -2
- data/test/core/hash/test_slice.rb +20 -0
- data/test/core/kernel/test_tap.rb +1 -1
- data/test/core/module/test_alias.rb +2 -1
- data/test/core/module/test_revise.rb +2 -2
- data/test/lore/test_basicobject.rb +26 -26
- data/test/lore/test_date.rb +9 -0
- data/test/lore/test_ostruct.rb +5 -5
- data/test/more/test_class_extension.rb +1 -1
- data/test/more/test_classmethods.rb +5 -5
- data/test/more/test_dictionary.rb +1 -1
- data/test/more/test_instantise.rb +2 -4
- data/test/more/test_interval.rb +4 -4
- data/test/more/test_linkedlist.rb +1 -1
- data/test/more/test_multipliers.rb +1 -1
- data/test/more/test_multiton.rb +1 -1
- data/test/more/test_random.rb +1 -1
- data/test/more/test_style.rb +1 -1
- data/test/more/test_typecast.rb +1 -1
- data/test/test_facets.rb +9 -0
- metadata +82 -1753
- data/doc/rdoc/lore/classes/BasicObject.html +0 -259
- data/doc/rdoc/more/classes/Kernel.html +0 -641
- data/doc/ri/ANSICode/cdesc-ANSICode.yaml +0 -60
- data/doc/ri/ANSICode/clear_line-i.yaml +0 -13
- data/doc/ri/ANSICode/clear_screen-i.yaml +0 -13
- data/doc/ri/ANSICode/clr-i.yaml +0 -12
- data/doc/ri/ANSICode/cls-i.yaml +0 -12
- data/doc/ri/ANSICode/colors-i.yaml +0 -10
- data/doc/ri/ANSICode/define_ansicolor_method-c.yaml +0 -12
- data/doc/ri/ANSICode/display-i.yaml +0 -12
- data/doc/ri/ANSICode/down-i.yaml +0 -12
- data/doc/ri/ANSICode/left-i.yaml +0 -12
- data/doc/ri/ANSICode/move-i.yaml +0 -12
- data/doc/ri/ANSICode/restore-i.yaml +0 -12
- data/doc/ri/ANSICode/right-i.yaml +0 -12
- data/doc/ri/ANSICode/save-i.yaml +0 -12
- data/doc/ri/ANSICode/uncolored-i.yaml +0 -10
- data/doc/ri/ANSICode/up-i.yaml +0 -12
- data/doc/ri/Advisable/Method/advice_after%3d-i.yaml +0 -10
- data/doc/ri/Advisable/Method/advice_around%3d-i.yaml +0 -10
- data/doc/ri/Advisable/Method/advice_before%3d-i.yaml +0 -10
- data/doc/ri/Advisable/Method/advised%3f-i.yaml +0 -10
- data/doc/ri/Advisable/Method/call_with_advice-i.yaml +0 -12
- data/doc/ri/Advisable/Method/cdesc-Method.yaml +0 -43
- data/doc/ri/Advisable/Method/lambda_target-i.yaml +0 -12
- data/doc/ri/Advisable/advice_after-i.yaml +0 -10
- data/doc/ri/Advisable/advice_around-i.yaml +0 -10
- data/doc/ri/Advisable/advice_before-i.yaml +0 -10
- data/doc/ri/Advisable/advise-i.yaml +0 -12
- data/doc/ri/Advisable/after-i.yaml +0 -10
- data/doc/ri/Advisable/around-i.yaml +0 -10
- data/doc/ri/Advisable/before-i.yaml +0 -10
- data/doc/ri/Advisable/cdesc-Advisable.yaml +0 -35
- data/doc/ri/Advisable/method_added-i.yaml +0 -16
- data/doc/ri/Archive/Tar/Minitar/BlockRequired/cdesc-BlockRequired.yaml +0 -17
- data/doc/ri/Archive/Tar/Minitar/ClosedStream/cdesc-ClosedStream.yaml +0 -17
- data/doc/ri/Archive/Tar/Minitar/FileNameTooLong/cdesc-FileNameTooLong.yaml +0 -17
- data/doc/ri/Archive/Tar/Minitar/Input/cdesc-Input.yaml +0 -30
- data/doc/ri/Archive/Tar/Minitar/Input/close-i.yaml +0 -12
- data/doc/ri/Archive/Tar/Minitar/Input/each-i.yaml +0 -12
- data/doc/ri/Archive/Tar/Minitar/Input/extract_entry-i.yaml +0 -43
- data/doc/ri/Archive/Tar/Minitar/Input/fsync_dir-i.yaml +0 -10
- data/doc/ri/Archive/Tar/Minitar/Input/new-c.yaml +0 -12
- data/doc/ri/Archive/Tar/Minitar/Input/open-c.yaml +0 -12
- data/doc/ri/Archive/Tar/Minitar/Input/tar-i.yaml +0 -12
- data/doc/ri/Archive/Tar/Minitar/NonSeekableStream/cdesc-NonSeekableStream.yaml +0 -17
- data/doc/ri/Archive/Tar/Minitar/Output/cdesc-Output.yaml +0 -23
- data/doc/ri/Archive/Tar/Minitar/Output/close-i.yaml +0 -12
- data/doc/ri/Archive/Tar/Minitar/Output/new-c.yaml +0 -12
- data/doc/ri/Archive/Tar/Minitar/Output/open-c.yaml +0 -12
- data/doc/ri/Archive/Tar/Minitar/Output/tar-i.yaml +0 -12
- data/doc/ri/Archive/Tar/Minitar/Reader/EntryStream/cdesc-EntryStream.yaml +0 -17
- data/doc/ri/Archive/Tar/Minitar/Reader/InvalidEntryStream/cdesc-InvalidEntryStream.yaml +0 -17
- data/doc/ri/Archive/Tar/Minitar/Reader/cdesc-Reader.yaml +0 -27
- data/doc/ri/Archive/Tar/Minitar/Reader/close-i.yaml +0 -10
- data/doc/ri/Archive/Tar/Minitar/Reader/each-i.yaml +0 -12
- data/doc/ri/Archive/Tar/Minitar/Reader/each_entry-i.yaml +0 -12
- data/doc/ri/Archive/Tar/Minitar/Reader/new-c.yaml +0 -12
- data/doc/ri/Archive/Tar/Minitar/Reader/open-c.yaml +0 -12
- data/doc/ri/Archive/Tar/Minitar/Reader/rewind-i.yaml +0 -12
- data/doc/ri/Archive/Tar/Minitar/UnexpectedEOF/cdesc-UnexpectedEOF.yaml +0 -17
- data/doc/ri/Archive/Tar/Minitar/Writer/BoundedStream/FileOverflow/cdesc-FileOverflow.yaml +0 -17
- data/doc/ri/Archive/Tar/Minitar/Writer/BoundedStream/cdesc-BoundedStream.yaml +0 -17
- data/doc/ri/Archive/Tar/Minitar/Writer/RestrictedStream/cdesc-RestrictedStream.yaml +0 -17
- data/doc/ri/Archive/Tar/Minitar/Writer/add_file-i.yaml +0 -34
- data/doc/ri/Archive/Tar/Minitar/Writer/add_file_simple-i.yaml +0 -33
- data/doc/ri/Archive/Tar/Minitar/Writer/cdesc-Writer.yaml +0 -31
- data/doc/ri/Archive/Tar/Minitar/Writer/close-i.yaml +0 -12
- data/doc/ri/Archive/Tar/Minitar/Writer/flush-i.yaml +0 -12
- data/doc/ri/Archive/Tar/Minitar/Writer/mkdir-i.yaml +0 -12
- data/doc/ri/Archive/Tar/Minitar/Writer/new-c.yaml +0 -12
- data/doc/ri/Archive/Tar/Minitar/Writer/open-c.yaml +0 -12
- data/doc/ri/Archive/Tar/Minitar/Writer/split_name-i.yaml +0 -10
- data/doc/ri/Archive/Tar/Minitar/cdesc-Minitar.yaml +0 -68
- data/doc/ri/Archive/Tar/Minitar/dir%3f-c.yaml +0 -12
- data/doc/ri/Archive/Tar/Minitar/open-c.yaml +0 -12
- data/doc/ri/Archive/Tar/Minitar/pack-c.yaml +0 -14
- data/doc/ri/Archive/Tar/Minitar/pack_file-c.yaml +0 -75
- data/doc/ri/Archive/Tar/Minitar/unpack-c.yaml +0 -12
- data/doc/ri/Archive/Tar/PosixHeader/cdesc-PosixHeader.yaml +0 -53
- data/doc/ri/Archive/Tar/cdesc-Tar.yaml +0 -15
- data/doc/ri/Archive/cdesc-Archive.yaml +0 -16
- data/doc/ri/Array/cdesc-Array.yaml +0 -17
- data/doc/ri/As/cdesc-As.yaml +0 -19
- data/doc/ri/Association/%3c%3d%3e-i.yaml +0 -10
- data/doc/ri/Association/%5b%5d-c.yaml +0 -10
- data/doc/ri/Association/Kernel/%3e%3e-i.yaml +0 -12
- data/doc/ri/Association/Kernel/associations-i.yaml +0 -10
- data/doc/ri/Association/Kernel/cdesc-Kernel.yaml +0 -20
- data/doc/ri/Association/cdesc-Association.yaml +0 -67
- data/doc/ri/Association/inspect-i.yaml +0 -10
- data/doc/ri/Association/invert%21-i.yaml +0 -10
- data/doc/ri/Association/new-c.yaml +0 -10
- data/doc/ri/Association/to_ary-i.yaml +0 -10
- data/doc/ri/Association/to_s-i.yaml +0 -10
- data/doc/ri/Autoarray/%5b%5d%3d-i.yaml +0 -10
- data/doc/ri/Autoarray/%5b%5d-i.yaml +0 -10
- data/doc/ri/Autoarray/cdesc-Autoarray.yaml +0 -26
- data/doc/ri/Autoarray/new-c.yaml +0 -10
- data/doc/ri/BBCode/ansi-c.yaml +0 -12
- data/doc/ri/BBCode/ansi_to_bbcode-c.yaml +0 -12
- data/doc/ri/BBCode/ansi_to_html-c.yaml +0 -12
- data/doc/ri/BBCode/bbcode_to_ansi-c.yaml +0 -12
- data/doc/ri/BBCode/bbcode_to_html-c.yaml +0 -12
- data/doc/ri/BBCode/cdesc-BBCode.yaml +0 -59
- data/doc/ri/BBCode/html_to_ansi-c.yaml +0 -12
- data/doc/ri/BBCode/html_to_bbcode-c.yaml +0 -12
- data/doc/ri/BBCode/strip_bbcode-c.yaml +0 -12
- data/doc/ri/BaseX/cdesc-BaseX.yaml +0 -27
- data/doc/ri/BaseX/convert_base-i.yaml +0 -10
- data/doc/ri/BaseX/decode-i.yaml +0 -10
- data/doc/ri/BaseX/encode-i.yaml +0 -10
- data/doc/ri/BaseX/new-c.yaml +0 -10
- data/doc/ri/BasicObject/__self__-i.yaml +0 -12
- data/doc/ri/BasicObject/cdesc-BasicObject.yaml +0 -53
- data/doc/ri/BasicObject/hide-c.yaml +0 -12
- data/doc/ri/BasicObject/object_self-i.yaml +0 -13
- data/doc/ri/BiCrypt/block_size-i.yaml +0 -10
- data/doc/ri/BiCrypt/carefully_open_file-i.yaml +0 -10
- data/doc/ri/BiCrypt/cdesc-BiCrypt.yaml +0 -53
- data/doc/ri/BiCrypt/decrypt_block-i.yaml +0 -10
- data/doc/ri/BiCrypt/decrypt_file-i.yaml +0 -10
- data/doc/ri/BiCrypt/decrypt_pair-i.yaml +0 -10
- data/doc/ri/BiCrypt/decrypt_stream-i.yaml +0 -10
- data/doc/ri/BiCrypt/decrypt_string-i.yaml +0 -10
- data/doc/ri/BiCrypt/encrypt_block-i.yaml +0 -10
- data/doc/ri/BiCrypt/encrypt_file-i.yaml +0 -10
- data/doc/ri/BiCrypt/encrypt_pair-i.yaml +0 -10
- data/doc/ri/BiCrypt/encrypt_stream-i.yaml +0 -10
- data/doc/ri/BiCrypt/encrypt_string-i.yaml +0 -10
- data/doc/ri/BiCrypt/f-i.yaml +0 -10
- data/doc/ri/BiCrypt/generate_initialization_vector-i.yaml +0 -12
- data/doc/ri/BiCrypt/new-c.yaml +0 -10
- data/doc/ri/BiCrypt/precalculate_S_table-i.yaml +0 -10
- data/doc/ri/BigDuration/cdesc-BigDuration.yaml +0 -41
- data/doc/ri/BigDuration/each-i.yaml +0 -12
- data/doc/ri/BigDuration/months%3d-i.yaml +0 -12
- data/doc/ri/BigDuration/new-c.yaml +0 -12
- data/doc/ri/BigDuration/seconds-i.yaml +0 -12
- data/doc/ri/BigDuration/strftime-i.yaml +0 -16
- data/doc/ri/BigDuration/years%3d-i.yaml +0 -12
- data/doc/ri/BinReadable/ByteOrder/big%3f-i.yaml +0 -12
- data/doc/ri/BinReadable/ByteOrder/big_endian%3f-i.yaml +0 -13
- data/doc/ri/BinReadable/ByteOrder/byte_order-i.yaml +0 -13
- data/doc/ri/BinReadable/ByteOrder/byteorder-i.yaml +0 -12
- data/doc/ri/BinReadable/ByteOrder/cdesc-ByteOrder.yaml +0 -39
- data/doc/ri/BinReadable/ByteOrder/little%3f-i.yaml +0 -12
- data/doc/ri/BinReadable/ByteOrder/little_endian%3f-i.yaml +0 -11
- data/doc/ri/BinReadable/ByteOrder/network%3f-i.yaml +0 -12
- data/doc/ri/BinReadable/byte_order%3d-i.yaml +0 -11
- data/doc/ri/BinReadable/byte_order-i.yaml +0 -13
- data/doc/ri/BinReadable/byteorder%3d-i.yaml +0 -12
- data/doc/ri/BinReadable/byteorder-i.yaml +0 -12
- data/doc/ri/BinReadable/cdesc-BinReadable.yaml +0 -65
- data/doc/ri/BinReadable/read_cstring-i.yaml +0 -10
- data/doc/ri/BinReadable/read_int16_big-i.yaml +0 -10
- data/doc/ri/BinReadable/read_int16_little-i.yaml +0 -10
- data/doc/ri/BinReadable/read_int16_native-i.yaml +0 -13
- data/doc/ri/BinReadable/read_int32_big-i.yaml +0 -10
- data/doc/ri/BinReadable/read_int32_little-i.yaml +0 -10
- data/doc/ri/BinReadable/read_int32_native-i.yaml +0 -13
- data/doc/ri/BinReadable/read_int8-i.yaml +0 -10
- data/doc/ri/BinReadable/read_uint8-i.yaml +0 -12
- data/doc/ri/BinReadable/read_word16_big-i.yaml +0 -10
- data/doc/ri/BinReadable/read_word16_little-i.yaml +0 -10
- data/doc/ri/BinReadable/read_word16_native-i.yaml +0 -13
- data/doc/ri/BinReadable/read_word32_big-i.yaml +0 -10
- data/doc/ri/BinReadable/read_word32_little-i.yaml +0 -10
- data/doc/ri/BinReadable/read_word32_native-i.yaml +0 -13
- data/doc/ri/BinReadable/read_word8-i.yaml +0 -13
- data/doc/ri/BinReadable/readn-i.yaml +0 -12
- data/doc/ri/BinReadable/ru-i.yaml +0 -12
- data/doc/ri/BinReadable/ru_swap-i.yaml +0 -12
- data/doc/ri/Binding/%5b%5d%3d-i.yaml +0 -14
- data/doc/ri/Binding/%5b%5d-i.yaml +0 -14
- data/doc/ri/Binding/__DIR__-i.yaml +0 -12
- data/doc/ri/Binding/__FILE__-i.yaml +0 -12
- data/doc/ri/Binding/__LINE__-i.yaml +0 -12
- data/doc/ri/Binding/__callee__-i.yaml +0 -14
- data/doc/ri/Binding/__method__-i.yaml +0 -14
- data/doc/ri/Binding/caller-i.yaml +0 -12
- data/doc/ri/Binding/callstack-i.yaml +0 -12
- data/doc/ri/Binding/cdesc-Binding.yaml +0 -40
- data/doc/ri/Binding/defined%3f-i.yaml +0 -12
- data/doc/ri/Binding/eval-i.yaml +0 -12
- data/doc/ri/Binding/local_variables-i.yaml +0 -14
- data/doc/ri/Binding/self-i.yaml +0 -12
- data/doc/ri/Buildable/cdesc-Buildable.yaml +0 -29
- data/doc/ri/Buildable/included-c.yaml +0 -10
- data/doc/ri/BuildingBlock/%3c%3c-i.yaml +0 -12
- data/doc/ri/BuildingBlock/build%21-i.yaml +0 -11
- data/doc/ri/BuildingBlock/cdesc-BuildingBlock.yaml +0 -57
- data/doc/ri/BuildingBlock/inspect-i.yaml +0 -12
- data/doc/ri/BuildingBlock/method_missing-i.yaml +0 -11
- data/doc/ri/BuildingBlock/new-c.yaml +0 -11
- data/doc/ri/BuildingBlock/to_buffer-i.yaml +0 -12
- data/doc/ri/BuildingBlock/to_s-i.yaml +0 -12
- data/doc/ri/BuildingBlock/to_str-i.yaml +0 -10
- data/doc/ri/CGI/cdesc-CGI.yaml +0 -25
- data/doc/ri/CGI/esc-i.yaml +0 -12
- data/doc/ri/CGI/escformat-i.yaml +0 -12
- data/doc/ri/CGI/marshal_from_cgi-i.yaml +0 -12
- data/doc/ri/CGI/marshal_to_cgi-i.yaml +0 -12
- data/doc/ri/CLI/Arguments/arguments-i.yaml +0 -12
- data/doc/ri/CLI/Arguments/assoc_options-i.yaml +0 -14
- data/doc/ri/CLI/Arguments/cdesc-Arguments.yaml +0 -77
- data/doc/ri/CLI/Arguments/flags-i.yaml +0 -12
- data/doc/ri/CLI/Arguments/format_options-i.yaml +0 -12
- data/doc/ri/CLI/Arguments/multi_flag-i.yaml +0 -12
- data/doc/ri/CLI/Arguments/new-c.yaml +0 -12
- data/doc/ri/CLI/Arguments/operands-i.yaml +0 -13
- data/doc/ri/CLI/Arguments/options-i.yaml +0 -12
- data/doc/ri/CLI/Arguments/parameters-c.yaml +0 -10
- data/doc/ri/CLI/Arguments/parameters-i.yaml +0 -12
- data/doc/ri/CLI/Arguments/parameters_without_duplicates-i.yaml +0 -12
- data/doc/ri/CLI/Arguments/parse-i.yaml +0 -14
- data/doc/ri/CLI/Arguments/parse_arity-i.yaml +0 -12
- data/doc/ri/CLI/Arguments/parse_line-i.yaml +0 -12
- data/doc/ri/CLI/Arguments/parse_preoptions-i.yaml +0 -12
- data/doc/ri/CLI/Arguments/preflags-i.yaml +0 -12
- data/doc/ri/CLI/Arguments/preoptions-i.yaml +0 -14
- data/doc/ri/CLI/Arguments/subcommand-i.yaml +0 -12
- data/doc/ri/CLI/Arguments/subcommand_with_arguments-i.yaml +0 -14
- data/doc/ri/CLI/Arguments/subcommand_with_parameters-i.yaml +0 -13
- data/doc/ri/CLI/Arguments/subcommand_with_preoptions-i.yaml +0 -11
- data/doc/ri/CLI/Command/UniversalOptions/cdesc-UniversalOptions.yaml +0 -17
- data/doc/ri/CLI/Command/call-i.yaml +0 -12
- data/doc/ri/CLI/Command/cdesc-Command.yaml +0 -50
- data/doc/ri/CLI/Command/command_missing-i.yaml +0 -11
- data/doc/ri/CLI/Command/commands-i.yaml +0 -11
- data/doc/ri/CLI/Command/default-i.yaml +0 -12
- data/doc/ri/CLI/Command/initialize_arguments-i.yaml +0 -11
- data/doc/ri/CLI/Command/initialize_options-i.yaml +0 -11
- data/doc/ri/CLI/Command/new-c.yaml +0 -11
- data/doc/ri/CLI/Command/option_arity-c.yaml +0 -11
- data/doc/ri/CLI/Command/option_missing-i.yaml +0 -11
- data/doc/ri/CLI/Command/start-c.yaml +0 -11
- data/doc/ri/CLI/Command/subcommand-c.yaml +0 -12
- data/doc/ri/CLI/NoCommandError/cdesc-NoCommandError.yaml +0 -16
- data/doc/ri/CLI/NoCommandError/new-c.yaml +0 -10
- data/doc/ri/CLI/NoOptionError/cdesc-NoOptionError.yaml +0 -18
- data/doc/ri/CLI/NoOptionError/new-c.yaml +0 -10
- data/doc/ri/CLI/cdesc-CLI.yaml +0 -20
- data/doc/ri/CacheDecorator/cache-c.yaml +0 -10
- data/doc/ri/CacheDecorator/cdesc-CacheDecorator.yaml +0 -45
- data/doc/ri/CacheDecorator/method_missing-i.yaml +0 -10
- data/doc/ri/CacheDecorator/new-c.yaml +0 -10
- data/doc/ri/CacheDecorator/self-i.yaml +0 -10
- data/doc/ri/CacheDecorator/uncache-c.yaml +0 -10
- data/doc/ri/Capsule/MissingFile/cdesc-MissingFile.yaml +0 -17
- data/doc/ri/Capsule/cdesc-Capsule.yaml +0 -55
- data/doc/ri/Capsule/include-i.yaml +0 -11
- data/doc/ri/Capsule/include_script-i.yaml +0 -10
- data/doc/ri/Capsule/load-c.yaml +0 -12
- data/doc/ri/Capsule/load-i.yaml +0 -16
- data/doc/ri/Capsule/load_in_module-i.yaml +0 -12
- data/doc/ri/Capsule/load_path_lookup-i.yaml +0 -12
- data/doc/ri/Capsule/new-c.yaml +0 -12
- data/doc/ri/Capsule/require-i.yaml +0 -14
- data/doc/ri/Chain/%7e-i.yaml +0 -10
- data/doc/ri/Chain/cdesc-Chain.yaml +0 -36
- data/doc/ri/Chain/end-i.yaml +0 -16
- data/doc/ri/Chain/method_missing-i.yaml +0 -10
- data/doc/ri/Chain/new-c.yaml +0 -10
- data/doc/ri/Class/cdesc-Class.yaml +0 -17
- data/doc/ri/Cloneable/cdesc-Cloneable.yaml +0 -21
- data/doc/ri/Cloneable/initialize_copy-i.yaml +0 -10
- data/doc/ri/Comparable/at_least-i.yaml +0 -14
- data/doc/ri/Comparable/at_most-i.yaml +0 -14
- data/doc/ri/Comparable/bound-i.yaml +0 -15
- data/doc/ri/Comparable/cap-i.yaml +0 -14
- data/doc/ri/Comparable/cdesc-Comparable.yaml +0 -26
- data/doc/ri/Comparable/clip-i.yaml +0 -12
- data/doc/ri/Comparable/cmp-i.yaml +0 -18
- data/doc/ri/Config/cdesc-Config.yaml +0 -18
- data/doc/ri/Config/datadir-c.yaml +0 -16
- data/doc/ri/Config/inspect-c.yaml +0 -10
- data/doc/ri/Console/cdesc-Console.yaml +0 -17
- data/doc/ri/ConsoleUtils/ask-i.yaml +0 -12
- data/doc/ri/ConsoleUtils/cdesc-ConsoleUtils.yaml +0 -27
- data/doc/ri/ConsoleUtils/password-i.yaml +0 -12
- data/doc/ri/ConsoleUtils/print_justified-i.yaml +0 -14
- data/doc/ri/ConsoleUtils/screen_width-i.yaml +0 -14
- data/doc/ri/Continuation/cdesc-Continuation.yaml +0 -16
- data/doc/ri/Continuation/create-c.yaml +0 -10
- data/doc/ri/Coroutine/%5b%5d%3d-i.yaml +0 -10
- data/doc/ri/Coroutine/%5b%5d-i.yaml +0 -10
- data/doc/ri/Coroutine/cdesc-Coroutine.yaml +0 -42
- data/doc/ri/Coroutine/continue-i.yaml +0 -10
- data/doc/ri/Coroutine/new-c.yaml +0 -10
- data/doc/ri/Coroutine/resume-i.yaml +0 -10
- data/doc/ri/Coroutine/run-i.yaml +0 -10
- data/doc/ri/Coroutine/stop-i.yaml +0 -10
- data/doc/ri/Crypt/cdesc-Crypt.yaml +0 -28
- data/doc/ri/Crypt/check-c.yaml +0 -12
- data/doc/ri/Crypt/crypt-c.yaml +0 -20
- data/doc/ri/Crypt/generate_salt-c.yaml +0 -12
- data/doc/ri/CssFilter/accept_host-i.yaml +0 -11
- data/doc/ri/CssFilter/cdesc-CssFilter.yaml +0 -98
- data/doc/ri/CssFilter/clean_properties-i.yaml +0 -14
- data/doc/ri/CssFilter/clean_value-i.yaml +0 -11
- data/doc/ri/CssFilter/filter-i.yaml +0 -11
- data/doc/ri/CssFilter/new-c.yaml +0 -11
- data/doc/ri/CssFilter/parse-i.yaml +0 -14
- data/doc/ri/CssFilter/remove_blanklines-i.yaml +0 -11
- data/doc/ri/CssFilter/remove_comments-i.yaml +0 -11
- data/doc/ri/CssFilter/remove_nullvalues-i.yaml +0 -11
- data/doc/ri/CssFilter/remove_urls-i.yaml +0 -12
- data/doc/ri/CssFilter/remove_whitespace-i.yaml +0 -11
- data/doc/ri/CssTree/cdesc-CssTree.yaml +0 -19
- data/doc/ri/CssTree/new-c.yaml +0 -10
- data/doc/ri/CssTree/to_css-i.yaml +0 -12
- data/doc/ri/Date/cdesc-Date.yaml +0 -28
- data/doc/ri/Date/days_in_month-i.yaml +0 -14
- data/doc/ri/Date/days_of_month-i.yaml +0 -10
- data/doc/ri/Date/month_name-i.yaml +0 -14
- data/doc/ri/Date/stamp-i.yaml +0 -13
- data/doc/ri/Date/to_date-i.yaml +0 -12
- data/doc/ri/Date/to_s-i.yaml +0 -12
- data/doc/ri/Date/to_time-i.yaml +0 -12
- data/doc/ri/Dictionary/%3c%3c-i.yaml +0 -10
- data/doc/ri/Dictionary/%3d%3d-i.yaml +0 -16
- data/doc/ri/Dictionary/%5b%5d%3d-i.yaml +0 -18
- data/doc/ri/Dictionary/%5b%5d-c.yaml +0 -10
- data/doc/ri/Dictionary/%5b%5d-i.yaml +0 -10
- data/doc/ri/Dictionary/alpha-c.yaml +0 -18
- data/doc/ri/Dictionary/auto-c.yaml +0 -14
- data/doc/ri/Dictionary/cdesc-Dictionary.yaml +0 -150
- data/doc/ri/Dictionary/clear-i.yaml +0 -10
- data/doc/ri/Dictionary/delete-i.yaml +0 -10
- data/doc/ri/Dictionary/delete_if-i.yaml +0 -10
- data/doc/ri/Dictionary/dup-i.yaml +0 -10
- data/doc/ri/Dictionary/each-i.yaml +0 -11
- data/doc/ri/Dictionary/each_key-i.yaml +0 -10
- data/doc/ri/Dictionary/each_pair-i.yaml +0 -12
- data/doc/ri/Dictionary/each_value-i.yaml +0 -10
- data/doc/ri/Dictionary/empty%3f-i.yaml +0 -10
- data/doc/ri/Dictionary/fetch-i.yaml +0 -10
- data/doc/ri/Dictionary/first-i.yaml +0 -11
- data/doc/ri/Dictionary/has_key%3f-i.yaml +0 -10
- data/doc/ri/Dictionary/insert-i.yaml +0 -10
- data/doc/ri/Dictionary/inspect-i.yaml +0 -10
- data/doc/ri/Dictionary/invert-i.yaml +0 -10
- data/doc/ri/Dictionary/key%3f-i.yaml +0 -10
- data/doc/ri/Dictionary/keys-i.yaml +0 -10
- data/doc/ri/Dictionary/last-i.yaml +0 -11
- data/doc/ri/Dictionary/length-i.yaml +0 -11
- data/doc/ri/Dictionary/merge%21-i.yaml +0 -12
- data/doc/ri/Dictionary/merge-i.yaml +0 -10
- data/doc/ri/Dictionary/new-c.yaml +0 -12
- data/doc/ri/Dictionary/new_by-c.yaml +0 -12
- data/doc/ri/Dictionary/order-i.yaml +0 -10
- data/doc/ri/Dictionary/order_by-i.yaml +0 -12
- data/doc/ri/Dictionary/order_by_key-i.yaml +0 -20
- data/doc/ri/Dictionary/order_by_value-i.yaml +0 -18
- data/doc/ri/Dictionary/pop-i.yaml +0 -10
- data/doc/ri/Dictionary/push-i.yaml +0 -10
- data/doc/ri/Dictionary/reject%21-i.yaml +0 -10
- data/doc/ri/Dictionary/reject-i.yaml +0 -10
- data/doc/ri/Dictionary/reorder-i.yaml +0 -11
- data/doc/ri/Dictionary/replace-i.yaml +0 -10
- data/doc/ri/Dictionary/reverse%21-i.yaml +0 -10
- data/doc/ri/Dictionary/reverse-i.yaml +0 -10
- data/doc/ri/Dictionary/select-i.yaml +0 -10
- data/doc/ri/Dictionary/shift-i.yaml +0 -10
- data/doc/ri/Dictionary/size-i.yaml +0 -12
- data/doc/ri/Dictionary/store-i.yaml +0 -10
- data/doc/ri/Dictionary/to_a-i.yaml +0 -10
- data/doc/ri/Dictionary/to_h-i.yaml +0 -10
- data/doc/ri/Dictionary/to_hash-i.yaml +0 -10
- data/doc/ri/Dictionary/to_s-i.yaml +0 -10
- data/doc/ri/Dictionary/unshift-i.yaml +0 -10
- data/doc/ri/Dictionary/update-i.yaml +0 -11
- data/doc/ri/Dictionary/values-i.yaml +0 -10
- data/doc/ri/DictionaryMatcher/%3c%3c-i.yaml +0 -12
- data/doc/ri/DictionaryMatcher/%3d%3d%3d-i.yaml +0 -12
- data/doc/ri/DictionaryMatcher/%3d%7e-i.yaml +0 -13
- data/doc/ri/DictionaryMatcher/MatchData/cdesc-MatchData.yaml +0 -18
- data/doc/ri/DictionaryMatcher/MatchData/inspect-i.yaml +0 -10
- data/doc/ri/DictionaryMatcher/add-i.yaml +0 -13
- data/doc/ri/DictionaryMatcher/cdesc-DictionaryMatcher.yaml +0 -38
- data/doc/ri/DictionaryMatcher/compute_failure_function-i.yaml +0 -10
- data/doc/ri/DictionaryMatcher/include%3f-i.yaml +0 -12
- data/doc/ri/DictionaryMatcher/inspect-i.yaml +0 -10
- data/doc/ri/DictionaryMatcher/internal_match-i.yaml +0 -10
- data/doc/ri/DictionaryMatcher/match-i.yaml +0 -12
- data/doc/ri/DictionaryMatcher/new-c.yaml +0 -12
- data/doc/ri/DictionaryMatcher/scan-i.yaml +0 -12
- data/doc/ri/Dir/ascend-c.yaml +0 -18
- data/doc/ri/Dir/cdesc-Dir.yaml +0 -28
- data/doc/ri/Dir/descend-c.yaml +0 -18
- data/doc/ri/Dir/ls_r-c.yaml +0 -12
- data/doc/ri/Dir/multiglob-c.yaml +0 -30
- data/doc/ri/Dir/multiglob_r-c.yaml +0 -22
- data/doc/ri/Dir/parent%3f-c.yaml +0 -14
- data/doc/ri/Dir/recurse-c.yaml +0 -14
- data/doc/ri/Downloader/Checksum/cdesc-Checksum.yaml +0 -17
- data/doc/ri/Downloader/Mirror/cdesc-Mirror.yaml +0 -15
- data/doc/ri/Downloader/add_mirror-i.yaml +0 -10
- data/doc/ri/Downloader/add_mirrors-i.yaml +0 -10
- data/doc/ri/Downloader/cdesc-Downloader.yaml +0 -49
- data/doc/ri/Downloader/compute_checksum-i.yaml +0 -12
- data/doc/ri/Downloader/download-i.yaml +0 -14
- data/doc/ri/Downloader/extract-i.yaml +0 -12
- data/doc/ri/Downloader/fetch-i.yaml +0 -12
- data/doc/ri/Downloader/interface%3d-i.yaml +0 -10
- data/doc/ri/Downloader/interface-i.yaml +0 -12
- data/doc/ri/Downloader/mirrors-i.yaml +0 -10
- data/doc/ri/Downloader/monitored_download-i.yaml +0 -12
- data/doc/ri/Downloader/new-c.yaml +0 -10
- data/doc/ri/Downloader/prioritize_urls-i.yaml +0 -12
- data/doc/ri/Duration/%2a-i.yaml +0 -16
- data/doc/ri/Duration/%2b-i.yaml +0 -16
- data/doc/ri/Duration/%2d-i.yaml +0 -16
- data/doc/ri/Duration/%2f-i.yaml +0 -16
- data/doc/ri/Duration/%3c%3d%3e-i.yaml +0 -16
- data/doc/ri/Duration/cdesc-Duration.yaml +0 -93
- data/doc/ri/Duration/days%3d-i.yaml +0 -16
- data/doc/ri/Duration/each-i.yaml +0 -20
- data/doc/ri/Duration/hours%3d-i.yaml +0 -16
- data/doc/ri/Duration/inspect-i.yaml +0 -16
- data/doc/ri/Duration/minutes%3d-i.yaml +0 -16
- data/doc/ri/Duration/new-c.yaml +0 -16
- data/doc/ri/Duration/seconds%3d-i.yaml +0 -16
- data/doc/ri/Duration/seconds-i.yaml +0 -16
- data/doc/ri/Duration/strftime-i.yaml +0 -20
- data/doc/ri/Duration/to_s-i.yaml +0 -16
- data/doc/ri/Duration/weeks%3d-i.yaml +0 -16
- data/doc/ri/Enumerable/Elementor/cdesc-Elementor.yaml +0 -26
- data/doc/ri/Enumerable/Elementor/instance_delegate-i.yaml +0 -10
- data/doc/ri/Enumerable/Elementor/instance_operator-i.yaml +0 -10
- data/doc/ri/Enumerable/Elementor/method_missing-i.yaml +0 -10
- data/doc/ri/Enumerable/Elementor/new-c.yaml +0 -10
- data/doc/ri/Enumerable/Enumerator/cdesc-Enumerator.yaml +0 -16
- data/doc/ri/Enumerable/Enumerator/to_elem-i.yaml +0 -12
- data/doc/ri/Enumerable/accumulate-i.yaml +0 -18
- data/doc/ri/Enumerable/cdesc-Enumerable.yaml +0 -94
- data/doc/ri/Enumerable/cluster_by-i.yaml +0 -18
- data/doc/ri/Enumerable/collect_with_index-i.yaml +0 -15
- data/doc/ri/Enumerable/commonality-i.yaml +0 -14
- data/doc/ri/Enumerable/compact_collect-i.yaml +0 -12
- data/doc/ri/Enumerable/compact_map-i.yaml +0 -23
- data/doc/ri/Enumerable/count-i.yaml +0 -18
- data/doc/ri/Enumerable/divide-i.yaml +0 -14
- data/doc/ri/Enumerable/duplicates-i.yaml +0 -12
- data/doc/ri/Enumerable/each_by-i.yaml +0 -18
- data/doc/ri/Enumerable/elements%21-i.yaml +0 -12
- data/doc/ri/Enumerable/elements-i.yaml +0 -12
- data/doc/ri/Enumerable/elementwise-i.yaml +0 -15
- data/doc/ri/Enumerable/entropy-i.yaml +0 -14
- data/doc/ri/Enumerable/every%21-i.yaml +0 -13
- data/doc/ri/Enumerable/every-i.yaml +0 -15
- data/doc/ri/Enumerable/ewise-i.yaml +0 -12
- data/doc/ri/Enumerable/frequency-i.yaml +0 -14
- data/doc/ri/Enumerable/graph-i.yaml +0 -12
- data/doc/ri/Enumerable/group_by-i.yaml +0 -14
- data/doc/ri/Enumerable/ideal_entropy-i.yaml +0 -14
- data/doc/ri/Enumerable/inject%21-i.yaml +0 -20
- data/doc/ri/Enumerable/map_send-i.yaml +0 -14
- data/doc/ri/Enumerable/map_with_index-i.yaml +0 -12
- data/doc/ri/Enumerable/mash-i.yaml +0 -19
- data/doc/ri/Enumerable/mode-i.yaml +0 -14
- data/doc/ri/Enumerable/modulate-i.yaml +0 -18
- data/doc/ri/Enumerable/none%3f-i.yaml +0 -16
- data/doc/ri/Enumerable/nonuniq-i.yaml +0 -15
- data/doc/ri/Enumerable/occur-i.yaml +0 -14
- data/doc/ri/Enumerable/one%3f-i.yaml +0 -16
- data/doc/ri/Enumerable/per-i.yaml +0 -10
- data/doc/ri/Enumerable/probability-i.yaml +0 -14
- data/doc/ri/Enumerable/split-i.yaml +0 -16
- data/doc/ri/Enumerable/sum-i.yaml +0 -14
- data/doc/ri/Enumerable/threaded_map-i.yaml +0 -14
- data/doc/ri/Enumerable/threaded_map_send-i.yaml +0 -14
- data/doc/ri/Enumerable/to_elem-i.yaml +0 -12
- data/doc/ri/Enumerable/to_h-i.yaml +0 -14
- data/doc/ri/Enumerable/uniq_by-i.yaml +0 -18
- data/doc/ri/EnumerablePass/cdesc-EnumerablePass.yaml +0 -28
- data/doc/ri/EnumerablePass/detect-i.yaml +0 -12
- data/doc/ri/EnumerablePass/find-i.yaml +0 -15
- data/doc/ri/EnumerablePass/wrap_enumerable_method-c.yaml +0 -10
- data/doc/ri/Equatable/%3d%3d-i.yaml +0 -10
- data/doc/ri/Equatable/cdesc-Equatable.yaml +0 -34
- data/doc/ri/Equatable/eql%3f-i.yaml +0 -10
- data/doc/ri/Equatable/hash-i.yaml +0 -10
- data/doc/ri/Equatable/identify-c.yaml +0 -10
- data/doc/ri/EventHook/call-i.yaml +0 -10
- data/doc/ri/EventHook/cdesc-EventHook.yaml +0 -31
- data/doc/ri/EventHook/new-c.yaml +0 -10
- data/doc/ri/Exception/cdesc-Exception.yaml +0 -17
- data/doc/ri/Exception/detail-i.yaml +0 -18
- data/doc/ri/Exception/suppress-c.yaml +0 -14
- data/doc/ri/Expirable/cdesc-Expirable.yaml +0 -30
- data/doc/ri/Expirable/expired%3f-i.yaml +0 -12
- data/doc/ri/Expirable/expires_after-i.yaml +0 -12
- data/doc/ri/Expirable/expires_spread-i.yaml +0 -12
- data/doc/ri/Expirable/touch%21-i.yaml +0 -12
- data/doc/ri/FalseClass/cdesc-FalseClass.yaml +0 -15
- data/doc/ri/File/append-c.yaml +0 -14
- data/doc/ri/File/cdesc-File.yaml +0 -38
- data/doc/ri/File/create-c.yaml +0 -14
- data/doc/ri/File/null-c.yaml +0 -14
- data/doc/ri/File/read_binary-c.yaml +0 -14
- data/doc/ri/File/read_list-c.yaml +0 -14
- data/doc/ri/File/rewrite%21-c.yaml +0 -14
- data/doc/ri/File/rewrite-c.yaml +0 -24
- data/doc/ri/File/rootname-c.yaml +0 -14
- data/doc/ri/File/sanitize-c.yaml +0 -14
- data/doc/ri/File/write-c.yaml +0 -16
- data/doc/ri/File/writelines-c.yaml +0 -18
- data/doc/ri/File/yaml%3f-c.yaml +0 -14
- data/doc/ri/FileList/%2a-i.yaml +0 -12
- data/doc/ri/FileList/%3d%3d-i.yaml +0 -12
- data/doc/ri/FileList/%5b%5d-c.yaml +0 -14
- data/doc/ri/FileList/add-i.yaml +0 -12
- data/doc/ri/FileList/add_matching-i.yaml +0 -12
- data/doc/ri/FileList/calculate_exclude_regexp-i.yaml +0 -10
- data/doc/ri/FileList/cdesc-FileList.yaml +0 -111
- data/doc/ri/FileList/clear_exclude-i.yaml +0 -12
- data/doc/ri/FileList/clear_ignore_patterns-c.yaml +0 -12
- data/doc/ri/FileList/clone-i.yaml +0 -13
- data/doc/ri/FileList/dup-i.yaml +0 -12
- data/doc/ri/FileList/egrep-i.yaml +0 -12
- data/doc/ri/FileList/exclude%3f-i.yaml +0 -12
- data/doc/ri/FileList/exclude-i.yaml +0 -26
- data/doc/ri/FileList/ext-i.yaml +0 -18
- data/doc/ri/FileList/gsub%21-i.yaml +0 -12
- data/doc/ri/FileList/gsub-i.yaml +0 -16
- data/doc/ri/FileList/import-i.yaml +0 -10
- data/doc/ri/FileList/include-i.yaml +0 -17
- data/doc/ri/FileList/new-c.yaml +0 -16
- data/doc/ri/FileList/resolve-i.yaml +0 -12
- data/doc/ri/FileList/resolve_add-i.yaml +0 -10
- data/doc/ri/FileList/resolve_exclude-i.yaml +0 -10
- data/doc/ri/FileList/select_default_ignore_patterns-c.yaml +0 -35
- data/doc/ri/FileList/sub%21-i.yaml +0 -12
- data/doc/ri/FileList/sub-i.yaml +0 -16
- data/doc/ri/FileList/to_a-i.yaml +0 -12
- data/doc/ri/FileList/to_ary-i.yaml +0 -12
- data/doc/ri/FileList/to_s-i.yaml +0 -12
- data/doc/ri/FileShell/%5b%5d-i.yaml +0 -12
- data/doc/ri/FileShell/cd-i.yaml +0 -15
- data/doc/ri/FileShell/cdesc-FileShell.yaml +0 -83
- data/doc/ri/FileShell/chdir-i.yaml +0 -12
- data/doc/ri/FileShell/chmod-i.yaml +0 -12
- data/doc/ri/FileShell/chmod_R-i.yaml +0 -12
- data/doc/ri/FileShell/chown-i.yaml +0 -12
- data/doc/ri/FileShell/chown_R-i.yaml +0 -12
- data/doc/ri/FileShell/cp-i.yaml +0 -12
- data/doc/ri/FileShell/cp_r-i.yaml +0 -12
- data/doc/ri/FileShell/dryrun%3f-i.yaml +0 -10
- data/doc/ri/FileShell/fu-i.yaml +0 -11
- data/doc/ri/FileShell/install-i.yaml +0 -12
- data/doc/ri/FileShell/ln-i.yaml +0 -12
- data/doc/ri/FileShell/ln_s-i.yaml +0 -12
- data/doc/ri/FileShell/ln_sf-i.yaml +0 -12
- data/doc/ri/FileShell/ls-i.yaml +0 -12
- data/doc/ri/FileShell/mkdir-i.yaml +0 -12
- data/doc/ri/FileShell/mkdir_p-i.yaml +0 -12
- data/doc/ri/FileShell/move-i.yaml +0 -12
- data/doc/ri/FileShell/mv-i.yaml +0 -13
- data/doc/ri/FileShell/new-c.yaml +0 -10
- data/doc/ri/FileShell/pwd-i.yaml +0 -12
- data/doc/ri/FileShell/quiet%3f-i.yaml +0 -10
- data/doc/ri/FileShell/rm-i.yaml +0 -12
- data/doc/ri/FileShell/rm_r-i.yaml +0 -12
- data/doc/ri/FileShell/rm_rf-i.yaml +0 -12
- data/doc/ri/FileShell/rmdir-i.yaml +0 -12
- data/doc/ri/FileShell/root%3f-i.yaml +0 -12
- data/doc/ri/FileShell/touch-i.yaml +0 -12
- data/doc/ri/FileShell/verbose%3f-i.yaml +0 -10
- data/doc/ri/FileTest/cdesc-FileTest.yaml +0 -16
- data/doc/ri/FileTest/root%3f-i.yaml +0 -14
- data/doc/ri/FileUtils/cdesc-FileUtils.yaml +0 -39
- data/doc/ri/FileUtils/head-i.yaml +0 -14
- data/doc/ri/FileUtils/safe_ln-i.yaml +0 -14
- data/doc/ri/FileUtils/slice-i.yaml +0 -16
- data/doc/ri/FileUtils/tail-i.yaml +0 -16
- data/doc/ri/FileUtils/wc-i.yaml +0 -18
- data/doc/ri/FileUtils/whereis-i.yaml +0 -10
- data/doc/ri/FileUtils/which-i.yaml +0 -16
- data/doc/ri/Fileable/DSL/cdesc-DSL.yaml +0 -31
- data/doc/ri/Fileable/DSL/file-i.yaml +0 -12
- data/doc/ri/Fileable/DSL/filename-i.yaml +0 -12
- data/doc/ri/Fileable/DSL/included-i.yaml +0 -12
- data/doc/ri/Fileable/DSL/load-i.yaml +0 -12
- data/doc/ri/Fileable/DSL/load_cache-i.yaml +0 -12
- data/doc/ri/Fileable/DSL/locate-i.yaml +0 -12
- data/doc/ri/Fileable/DSL/lookup-i.yaml +0 -12
- data/doc/ri/Fileable/DSL/open-i.yaml +0 -12
- data/doc/ri/Fileable/cdesc-Fileable.yaml +0 -30
- data/doc/ri/Fileable/included-c.yaml +0 -12
- data/doc/ri/Fileable/new-c.yaml +0 -12
- data/doc/ri/Fileable/read-i.yaml +0 -12
- data/doc/ri/Float/cdesc-Float.yaml +0 -17
- data/doc/ri/Friend/cdesc-Friend.yaml +0 -27
- data/doc/ri/Friend/new-c.yaml +0 -10
- data/doc/ri/Functor/cdesc-Functor.yaml +0 -23
- data/doc/ri/Functor/method_missing-i.yaml +0 -12
- data/doc/ri/Functor/new-c.yaml +0 -10
- data/doc/ri/Functor/to_proc-i.yaml +0 -10
- data/doc/ri/GetoptLong/DSL/cdesc-DSL.yaml +0 -30
- data/doc/ri/GetoptLong/DSL/flag-i.yaml +0 -10
- data/doc/ri/GetoptLong/DSL/new-c.yaml +0 -10
- data/doc/ri/GetoptLong/DSL/optional-i.yaml +0 -11
- data/doc/ri/GetoptLong/DSL/opts-i.yaml +0 -12
- data/doc/ri/GetoptLong/DSL/reqs-i.yaml +0 -12
- data/doc/ri/GetoptLong/DSL/required-i.yaml +0 -11
- data/doc/ri/GetoptLong/cdesc-GetoptLong.yaml +0 -16
- data/doc/ri/GetoptLong/new-c.yaml +0 -10
- data/doc/ri/Hash/cdesc-Hash.yaml +0 -15
- data/doc/ri/Hash2Xml/cdesc-Hash2Xml.yaml +0 -21
- data/doc/ri/Hash2Xml/convert-i.yaml +0 -10
- data/doc/ri/Hash2Xml/convert_body-i.yaml +0 -11
- data/doc/ri/Hash2Xml/convert_tag-i.yaml +0 -11
- data/doc/ri/HtmlFilter/balance_html-i.yaml +0 -11
- data/doc/ri/HtmlFilter/cdesc-HtmlFilter.yaml +0 -149
- data/doc/ri/HtmlFilter/check_entity-i.yaml +0 -11
- data/doc/ri/HtmlFilter/check_tags-i.yaml +0 -11
- data/doc/ri/HtmlFilter/decode_dec_entity-i.yaml +0 -11
- data/doc/ri/HtmlFilter/decode_entities-i.yaml +0 -12
- data/doc/ri/HtmlFilter/decode_hex_entity-i.yaml +0 -11
- data/doc/ri/HtmlFilter/decode_num_entity-i.yaml +0 -11
- data/doc/ri/HtmlFilter/escape_comments-i.yaml +0 -11
- data/doc/ri/HtmlFilter/escape_special_chars-i.yaml +0 -12
- data/doc/ri/HtmlFilter/filter-i.yaml +0 -12
- data/doc/ri/HtmlFilter/fix_case-i.yaml +0 -11
- data/doc/ri/HtmlFilter/fix_case_inner-i.yaml +0 -11
- data/doc/ri/HtmlFilter/is_valid_entity-i.yaml +0 -11
- data/doc/ri/HtmlFilter/new-c.yaml +0 -12
- data/doc/ri/HtmlFilter/process_param_protocol-i.yaml +0 -11
- data/doc/ri/HtmlFilter/process_remove_blanks-i.yaml +0 -11
- data/doc/ri/HtmlFilter/process_tag-i.yaml +0 -11
- data/doc/ri/HtmlFilter/strip_single-i.yaml +0 -11
- data/doc/ri/HtmlFilter/validate_entities-i.yaml +0 -11
- data/doc/ri/IORedirect/cdesc-IORedirect.yaml +0 -28
- data/doc/ri/IORedirect/new-c.yaml +0 -12
- data/doc/ri/IORedirect/redirect-c.yaml +0 -12
- data/doc/ri/IORedirect/start-i.yaml +0 -12
- data/doc/ri/IORedirect/stop-i.yaml +0 -12
- data/doc/ri/Indexable/body-i.yaml +0 -14
- data/doc/ri/Indexable/cdesc-Indexable.yaml +0 -55
- data/doc/ri/Indexable/ends-i.yaml +0 -16
- data/doc/ri/Indexable/first%21-i.yaml +0 -14
- data/doc/ri/Indexable/first%3d-i.yaml +0 -14
- data/doc/ri/Indexable/first-i.yaml +0 -14
- data/doc/ri/Indexable/foot-i.yaml +0 -14
- data/doc/ri/Indexable/head-i.yaml +0 -14
- data/doc/ri/Indexable/index_of-i.yaml +0 -16
- data/doc/ri/Indexable/last%21-i.yaml +0 -14
- data/doc/ri/Indexable/last%3d-i.yaml +0 -14
- data/doc/ri/Indexable/last-i.yaml +0 -14
- data/doc/ri/Indexable/mid-i.yaml +0 -16
- data/doc/ri/Indexable/middle-i.yaml +0 -16
- data/doc/ri/Indexable/pos-i.yaml +0 -14
- data/doc/ri/Indexable/range-i.yaml +0 -14
- data/doc/ri/Indexable/tail-i.yaml +0 -14
- data/doc/ri/Indexable/thru-i.yaml +0 -14
- data/doc/ri/InfinityClass/%2b%40-i.yaml +0 -12
- data/doc/ri/InfinityClass/%2d%40-i.yaml +0 -12
- data/doc/ri/InfinityClass/%3c%3d%3e-i.yaml +0 -12
- data/doc/ri/InfinityClass/%3d%3d-i.yaml +0 -12
- data/doc/ri/InfinityClass/Numeric/cdesc-Numeric.yaml +0 -27
- data/doc/ri/InfinityClass/Numeric/finite%3f-i.yaml +0 -10
- data/doc/ri/InfinityClass/Numeric/inf%3f-i.yaml +0 -12
- data/doc/ri/InfinityClass/Numeric/infinite%3f-i.yaml +0 -11
- data/doc/ri/InfinityClass/Numeric/nan%3f-i.yaml +0 -10
- data/doc/ri/InfinityClass/Numeric/neginf%3f-i.yaml +0 -10
- data/doc/ri/InfinityClass/Numeric/posinf%3f-i.yaml +0 -10
- data/doc/ri/InfinityClass/cdesc-InfinityClass.yaml +0 -75
- data/doc/ri/InfinityClass/coerce-i.yaml +0 -12
- data/doc/ri/InfinityClass/new-c.yaml +0 -10
- data/doc/ri/InfinityClass/times-i.yaml +0 -12
- data/doc/ri/InfinityClass/to_f-i.yaml +0 -12
- data/doc/ri/InfinityClass/to_s-i.yaml +0 -11
- data/doc/ri/Ini/%5b%5d%3d-i.yaml +0 -12
- data/doc/ri/Ini/%5b%5d-i.yaml +0 -12
- data/doc/ri/Ini/cdesc-Ini.yaml +0 -51
- data/doc/ri/Ini/new-c.yaml +0 -16
- data/doc/ri/Ini/read_comment_from_file-c.yaml +0 -16
- data/doc/ri/Ini/read_from_file-c.yaml +0 -16
- data/doc/ri/Ini/restore-i.yaml +0 -12
- data/doc/ri/Ini/to_s-c.yaml +0 -16
- data/doc/ri/Ini/update-i.yaml +0 -12
- data/doc/ri/Ini/write_to_file-c.yaml +0 -16
- data/doc/ri/InstanceVariables/%3c%3c-i.yaml +0 -10
- data/doc/ri/InstanceVariables/%5b%5d%3d-i.yaml +0 -10
- data/doc/ri/InstanceVariables/%5b%5d-i.yaml +0 -10
- data/doc/ri/InstanceVariables/atize-i.yaml +0 -10
- data/doc/ri/InstanceVariables/cdesc-InstanceVariables.yaml +0 -38
- data/doc/ri/InstanceVariables/each-i.yaml +0 -10
- data/doc/ri/InstanceVariables/instance_delegate-i.yaml +0 -10
- data/doc/ri/InstanceVariables/keys-i.yaml +0 -10
- data/doc/ri/InstanceVariables/names-i.yaml +0 -10
- data/doc/ri/InstanceVariables/new-c.yaml +0 -10
- data/doc/ri/InstanceVariables/to_hash-i.yaml +0 -10
- data/doc/ri/InstanceVariables/update-i.yaml +0 -10
- data/doc/ri/InstanceVariables/values-i.yaml +0 -10
- data/doc/ri/Instantiable/append_features-c.yaml +0 -10
- data/doc/ri/Instantiable/cdesc-Instantiable.yaml +0 -24
- data/doc/ri/Instantiable/new-i.yaml +0 -12
- data/doc/ri/Instantise/append_features-c.yaml +0 -10
- data/doc/ri/Instantise/cdesc-Instantise.yaml +0 -29
- data/doc/ri/Instantise/singleton_method_added-i.yaml +0 -10
- data/doc/ri/Integer/cdesc-Integer.yaml +0 -15
- data/doc/ri/Interval/%2b%40-i.yaml +0 -12
- data/doc/ri/Interval/%2d%40-i.yaml +0 -10
- data/doc/ri/Interval/%3d%3d%3d-i.yaml +0 -12
- data/doc/ri/Interval/%5b%5d-c.yaml +0 -10
- data/doc/ri/Interval/%7e-i.yaml +0 -10
- data/doc/ri/Interval/begin-i.yaml +0 -12
- data/doc/ri/Interval/cdesc-Interval.yaml +0 -97
- data/doc/ri/Interval/closed-i.yaml +0 -12
- data/doc/ri/Interval/degenerate%3f-i.yaml +0 -12
- data/doc/ri/Interval/direction-i.yaml +0 -14
- data/doc/ri/Interval/distance-i.yaml +0 -15
- data/doc/ri/Interval/each-i.yaml +0 -15
- data/doc/ri/Interval/end-i.yaml +0 -12
- data/doc/ri/Interval/eql%3f-i.yaml +0 -12
- data/doc/ri/Interval/exclude_begin%3f-i.yaml +0 -12
- data/doc/ri/Interval/exclude_end%3f-i.yaml +0 -12
- data/doc/ri/Interval/exclude_first%3f-i.yaml +0 -12
- data/doc/ri/Interval/exclude_last%3f-i.yaml +0 -11
- data/doc/ri/Interval/first-i.yaml +0 -13
- data/doc/ri/Interval/first_closed-i.yaml +0 -12
- data/doc/ri/Interval/first_opened-i.yaml +0 -10
- data/doc/ri/Interval/half_closed-i.yaml +0 -12
- data/doc/ri/Interval/include%3f-i.yaml +0 -15
- data/doc/ri/Interval/last-i.yaml +0 -11
- data/doc/ri/Interval/last_closed-i.yaml +0 -10
- data/doc/ri/Interval/last_opened-i.yaml +0 -10
- data/doc/ri/Interval/length-i.yaml +0 -12
- data/doc/ri/Interval/max-i.yaml +0 -12
- data/doc/ri/Interval/member%3f-i.yaml +0 -12
- data/doc/ri/Interval/min-i.yaml +0 -12
- data/doc/ri/Interval/new-c.yaml +0 -10
- data/doc/ri/Interval/null%3f-i.yaml +0 -12
- data/doc/ri/Interval/opened-i.yaml +0 -12
- data/doc/ri/Interval/reversed-i.yaml +0 -14
- data/doc/ri/Interval/sentinels-i.yaml +0 -14
- data/doc/ri/Interval/size-i.yaml +0 -12
- data/doc/ri/Interval/step-i.yaml +0 -12
- data/doc/ri/It/cdesc-It.yaml +0 -39
- data/doc/ri/It/first%3f-i.yaml +0 -10
- data/doc/ri/It/last%3f-i.yaml +0 -10
- data/doc/ri/It/new-c.yaml +0 -10
- data/doc/ri/It/next_iteration-i.yaml +0 -10
- data/doc/ri/Kernel/cdesc-Kernel.yaml +0 -16
- data/doc/ri/LRUCache/%5b%5d%3d-i.yaml +0 -12
- data/doc/ri/LRUCache/%5b%5d-i.yaml +0 -12
- data/doc/ri/LRUCache/Item/cdesc-Item.yaml +0 -28
- data/doc/ri/LRUCache/Sentinel/cdesc-Sentinel.yaml +0 -18
- data/doc/ri/LRUCache/cdesc-LRUCache.yaml +0 -65
- data/doc/ri/LRUCache/clear-i.yaml +0 -12
- data/doc/ri/LRUCache/delete-i.yaml +0 -12
- data/doc/ri/LRUCache/first-i.yaml +0 -12
- data/doc/ri/LRUCache/last-i.yaml +0 -13
- data/doc/ri/LRUCache/lru-i.yaml +0 -12
- data/doc/ri/LRUCache/lru_append-i.yaml +0 -12
- data/doc/ri/LRUCache/lru_clear-i.yaml +0 -12
- data/doc/ri/LRUCache/lru_delete-i.yaml +0 -12
- data/doc/ri/LRUCache/lru_insert-i.yaml +0 -12
- data/doc/ri/LRUCache/lru_join-i.yaml +0 -12
- data/doc/ri/LRUCache/lru_touch-i.yaml +0 -12
- data/doc/ri/LRUCache/new-c.yaml +0 -10
- data/doc/ri/Lazy/DivergenceError/cdesc-DivergenceError.yaml +0 -17
- data/doc/ri/Lazy/Future/cdesc-Future.yaml +0 -20
- data/doc/ri/Lazy/LazyException/cdesc-LazyException.yaml +0 -19
- data/doc/ri/Lazy/Promise/cdesc-Promise.yaml +0 -25
- data/doc/ri/Lazy/PromiseSafe/cdesc-PromiseSafe.yaml +0 -20
- data/doc/ri/Lazy/cdesc-Lazy.yaml +0 -20
- data/doc/ri/LinkedList/%5b%5d%3d-i.yaml +0 -10
- data/doc/ri/LinkedList/%5b%5d-i.yaml +0 -10
- data/doc/ri/LinkedList/Node/cdesc-Node.yaml +0 -33
- data/doc/ri/LinkedList/Node/new-c.yaml +0 -10
- data/doc/ri/LinkedList/cdesc-LinkedList.yaml +0 -57
- data/doc/ri/LinkedList/delete-i.yaml +0 -10
- data/doc/ri/LinkedList/each-i.yaml +0 -10
- data/doc/ri/LinkedList/empty%3f-i.yaml +0 -10
- data/doc/ri/LinkedList/first-i.yaml +0 -10
- data/doc/ri/LinkedList/last-i.yaml +0 -10
- data/doc/ri/LinkedList/length-i.yaml +0 -10
- data/doc/ri/LinkedList/new-c.yaml +0 -10
- data/doc/ri/LinkedList/node_delete-i.yaml +0 -10
- data/doc/ri/LinkedList/node_join-i.yaml +0 -10
- data/doc/ri/LinkedList/node_purge-i.yaml +0 -10
- data/doc/ri/LinkedList/pop-i.yaml +0 -10
- data/doc/ri/LinkedList/push-i.yaml +0 -10
- data/doc/ri/LinkedList/queue-i.yaml +0 -10
- data/doc/ri/LinkedList/shift-i.yaml +0 -10
- data/doc/ri/LinkedList/to_a-i.yaml +0 -10
- data/doc/ri/LinkedList/unshift-i.yaml +0 -10
- data/doc/ri/Logger/Ansicolor/cdesc-Ansicolor.yaml +0 -36
- data/doc/ri/Logger/Ansicolor/debug-i.yaml +0 -10
- data/doc/ri/Logger/Ansicolor/debug_with_color-i.yaml +0 -10
- data/doc/ri/Logger/Ansicolor/error-i.yaml +0 -10
- data/doc/ri/Logger/Ansicolor/error_with_color-i.yaml +0 -10
- data/doc/ri/Logger/Ansicolor/fatal-i.yaml +0 -10
- data/doc/ri/Logger/Ansicolor/fatal_with_color-i.yaml +0 -10
- data/doc/ri/Logger/Ansicolor/info-i.yaml +0 -10
- data/doc/ri/Logger/Ansicolor/info_with_color-i.yaml +0 -10
- data/doc/ri/Logger/Ansicolor/warn-i.yaml +0 -10
- data/doc/ri/Logger/Ansicolor/warn_with_color-i.yaml +0 -10
- data/doc/ri/Logger/LogDevice/ansicolor%3f-i.yaml +0 -10
- data/doc/ri/Logger/LogDevice/cdesc-LogDevice.yaml +0 -19
- data/doc/ri/Logger/ansicolor%3d-i.yaml +0 -10
- data/doc/ri/Logger/cdesc-Logger.yaml +0 -44
- data/doc/ri/Logger/format_procedure-i.yaml +0 -10
- data/doc/ri/Logger/setup_format-i.yaml +0 -21
- data/doc/ri/MatchData/cdesc-MatchData.yaml +0 -20
- data/doc/ri/MatchData/match-i.yaml +0 -14
- data/doc/ri/MatchData/matchset-i.yaml +0 -14
- data/doc/ri/MatchData/matchtree-i.yaml +0 -14
- data/doc/ri/Method/cdesc-Method.yaml +0 -15
- data/doc/ri/MissingArgument/cdesc-MissingArgument.yaml +0 -17
- data/doc/ri/Module/%2a-i.yaml +0 -14
- data/doc/ri/Module/%2b-i.yaml +0 -22
- data/doc/ri/Module/%2d-i.yaml +0 -14
- data/doc/ri/Module/Comparable-i.yaml +0 -18
- data/doc/ri/Module/Equatable-i.yaml +0 -18
- data/doc/ri/Module/abstract-i.yaml +0 -14
- data/doc/ri/Module/alias_accessor%21-i.yaml +0 -17
- data/doc/ri/Module/alias_accessor-i.yaml +0 -14
- data/doc/ri/Module/alias_method_chain-i.yaml +0 -32
- data/doc/ri/Module/alias_module_function-i.yaml +0 -14
- data/doc/ri/Module/alias_reader%21-i.yaml +0 -17
- data/doc/ri/Module/alias_reader%3f-i.yaml +0 -12
- data/doc/ri/Module/alias_reader-i.yaml +0 -12
- data/doc/ri/Module/alias_setter-i.yaml +0 -14
- data/doc/ri/Module/alias_switcher-i.yaml +0 -12
- data/doc/ri/Module/alias_tester-i.yaml +0 -12
- data/doc/ri/Module/alias_toggler-i.yaml +0 -12
- data/doc/ri/Module/alias_validator-i.yaml +0 -12
- data/doc/ri/Module/alias_writer%21-i.yaml +0 -14
- data/doc/ri/Module/alias_writer-i.yaml +0 -12
- data/doc/ri/Module/all_instance_methods-i.yaml +0 -18
- data/doc/ri/Module/ancestor%3f-i.yaml +0 -14
- data/doc/ri/Module/ann%21-i.yaml +0 -12
- data/doc/ri/Module/ann-i.yaml +0 -12
- data/doc/ri/Module/annotations-i.yaml +0 -10
- data/doc/ri/Module/append_features-c.yaml +0 -10
- data/doc/ri/Module/append_features-i.yaml +0 -11
- data/doc/ri/Module/append_features_without_class_extension-i.yaml +0 -12
- data/doc/ri/Module/attr-i.yaml +0 -10
- data/doc/ri/Module/attr_accessor%21-i.yaml +0 -21
- data/doc/ri/Module/attr_reader%21-i.yaml +0 -21
- data/doc/ri/Module/attr_reader%3f-i.yaml +0 -12
- data/doc/ri/Module/attr_setter-i.yaml +0 -18
- data/doc/ri/Module/attr_switcher-i.yaml +0 -12
- data/doc/ri/Module/attr_tester-i.yaml +0 -12
- data/doc/ri/Module/attr_toggler-i.yaml +0 -12
- data/doc/ri/Module/attr_validator-i.yaml +0 -14
- data/doc/ri/Module/attr_writer%21-i.yaml +0 -18
- data/doc/ri/Module/basename-i.yaml +0 -18
- data/doc/ri/Module/cdesc-Module.yaml +0 -192
- data/doc/ri/Module/class_def-i.yaml +0 -14
- data/doc/ri/Module/class_extension-i.yaml +0 -17
- data/doc/ri/Module/class_inherit-i.yaml +0 -12
- data/doc/ri/Module/class_load-i.yaml +0 -12
- data/doc/ri/Module/class_methods-i.yaml +0 -11
- data/doc/ri/Module/class_require-i.yaml +0 -12
- data/doc/ri/Module/classified_attributes-i.yaml +0 -14
- data/doc/ri/Module/conflict%3f-i.yaml +0 -14
- data/doc/ri/Module/define_dependency-i.yaml +0 -11
- data/doc/ri/Module/depend-i.yaml +0 -11
- data/doc/ri/Module/dependencies-i.yaml +0 -12
- data/doc/ri/Module/heritage-i.yaml +0 -10
- data/doc/ri/Module/include_as-i.yaml +0 -14
- data/doc/ri/Module/include_function_module-i.yaml +0 -14
- data/doc/ri/Module/instance_method%21-i.yaml +0 -16
- data/doc/ri/Module/instance_method_defined%3f-i.yaml +0 -14
- data/doc/ri/Module/integrate-i.yaml +0 -20
- data/doc/ri/Module/is%3f-i.yaml +0 -14
- data/doc/ri/Module/is-i.yaml +0 -12
- data/doc/ri/Module/memoize-i.yaml +0 -14
- data/doc/ri/Module/method_overloads-i.yaml +0 -10
- data/doc/ri/Module/method_space-i.yaml +0 -14
- data/doc/ri/Module/methodize-i.yaml +0 -14
- data/doc/ri/Module/mixin_parameters-i.yaml +0 -17
- data/doc/ri/Module/mixin_params-i.yaml +0 -12
- data/doc/ri/Module/modspace-i.yaml +0 -18
- data/doc/ri/Module/module_load-i.yaml +0 -15
- data/doc/ri/Module/module_method_defined%3f-i.yaml +0 -12
- data/doc/ri/Module/module_require-i.yaml +0 -15
- data/doc/ri/Module/nesting-i.yaml +0 -14
- data/doc/ri/Module/overload-i.yaml +0 -14
- data/doc/ri/Module/pathize-i.yaml +0 -16
- data/doc/ri/Module/prepend-i.yaml +0 -14
- data/doc/ri/Module/private_conflict%3f-i.yaml +0 -12
- data/doc/ri/Module/protected_conflict%3f-i.yaml +0 -12
- data/doc/ri/Module/public_conflict%3f-i.yaml +0 -12
- data/doc/ri/Module/redef-i.yaml +0 -12
- data/doc/ri/Module/redefine_method-i.yaml +0 -17
- data/doc/ri/Module/redirect-i.yaml +0 -12
- data/doc/ri/Module/redirect_method-i.yaml +0 -21
- data/doc/ri/Module/rename-i.yaml +0 -12
- data/doc/ri/Module/rename_method-i.yaml +0 -15
- data/doc/ri/Module/revisal-i.yaml +0 -12
- data/doc/ri/Module/revise-i.yaml +0 -15
- data/doc/ri/Module/setting-i.yaml +0 -21
- data/doc/ri/Module/singleton_method_defined%3f-i.yaml +0 -15
- data/doc/ri/Module/spacename-i.yaml +0 -20
- data/doc/ri/Module/wrap-i.yaml +0 -12
- data/doc/ri/Module/wrap_method-i.yaml +0 -19
- data/doc/ri/Multiton/Inclusive/cdesc-Inclusive.yaml +0 -18
- data/doc/ri/Multiton/Inclusive/included-i.yaml +0 -10
- data/doc/ri/Multiton/InstanceMutex/cdesc-InstanceMutex.yaml +0 -17
- data/doc/ri/Multiton/MetaMethods/_load-i.yaml +0 -10
- data/doc/ri/Multiton/MetaMethods/cdesc-MetaMethods.yaml +0 -34
- data/doc/ri/Multiton/MetaMethods/initialized%3f-i.yaml +0 -10
- data/doc/ri/Multiton/MetaMethods/instance-i.yaml +0 -11
- data/doc/ri/Multiton/MetaMethods/multiton_id-i.yaml +0 -12
- data/doc/ri/Multiton/MetaMethods/multiton_instance-i.yaml +0 -10
- data/doc/ri/Multiton/MetaMethods/multiton_mutex-i.yaml +0 -10
- data/doc/ri/Multiton/MetaMethods/new-i.yaml +0 -12
- data/doc/ri/Multiton/MetaMethods/reinitialize-i.yaml +0 -10
- data/doc/ri/Multiton/MetaMethods/singleton_method_added-i.yaml +0 -10
- data/doc/ri/Multiton/_dump-i.yaml +0 -12
- data/doc/ri/Multiton/cdesc-Multiton.yaml +0 -40
- data/doc/ri/Multiton/clone-i.yaml +0 -12
- data/doc/ri/Multiton/dup-i.yaml +0 -10
- data/doc/ri/NackClass/cdesc-NackClass.yaml +0 -20
- data/doc/ri/Net/SMTP/cdesc-SMTP.yaml +0 -25
- data/doc/ri/Net/SMTP/do_helo-i.yaml +0 -10
- data/doc/ri/Net/SMTP/do_tls_start-i.yaml +0 -10
- data/doc/ri/Net/SMTP/quit-i.yaml +0 -10
- data/doc/ri/Net/SMTP/start-c.yaml +0 -10
- data/doc/ri/Net/SMTP/start-i.yaml +0 -10
- data/doc/ri/Net/SMTP/starttls-i.yaml +0 -10
- data/doc/ri/Net/cdesc-Net.yaml +0 -15
- data/doc/ri/NilClass/cdesc-NilClass.yaml +0 -17
- data/doc/ri/NullClass/%5b%5d-i.yaml +0 -10
- data/doc/ri/NullClass/cdesc-NullClass.yaml +0 -32
- data/doc/ri/NullClass/inspect-i.yaml +0 -10
- data/doc/ri/NullClass/method_missing-i.yaml +0 -10
- data/doc/ri/NullClass/new-c.yaml +0 -10
- data/doc/ri/NullClass/nil%3f-i.yaml +0 -10
- data/doc/ri/NullClass/null%3f-i.yaml +0 -10
- data/doc/ri/Numeric/cdesc-Numeric.yaml +0 -26
- data/doc/ri/Object/cdesc-Object.yaml +0 -15
- data/doc/ri/ObjectReflection/_bind_method-i.yaml +0 -10
- data/doc/ri/ObjectReflection/cdesc-ObjectReflection.yaml +0 -28
- data/doc/ri/ObjectReflection/id-i.yaml +0 -11
- data/doc/ri/ObjectReflection/method_missing-i.yaml +0 -16
- data/doc/ri/ObjectReflection/new-c.yaml +0 -11
- data/doc/ri/OpEsc/cdesc-OpEsc.yaml +0 -30
- data/doc/ri/OpEsc/escape-c.yaml +0 -14
- data/doc/ri/OpenCascade/cdesc-OpenCascade.yaml +0 -25
- data/doc/ri/OpenCascade/method_missing-i.yaml +0 -10
- data/doc/ri/OpenCollection/cdesc-OpenCollection.yaml +0 -22
- data/doc/ri/OpenCollection/method_missing-i.yaml +0 -10
- data/doc/ri/OpenCollection/new-c.yaml +0 -10
- data/doc/ri/OpenHash/cdesc-OpenHash.yaml +0 -22
- data/doc/ri/OpenHash/method_missing-i.yaml +0 -12
- data/doc/ri/OpenHash/new-c.yaml +0 -12
- data/doc/ri/OpenObject/%3d%3d-i.yaml +0 -12
- data/doc/ri/OpenObject/%5b%5d%3d-i.yaml +0 -10
- data/doc/ri/OpenObject/%5b%5d-c.yaml +0 -10
- data/doc/ri/OpenObject/%5b%5d-i.yaml +0 -10
- data/doc/ri/OpenObject/as_hash%21-i.yaml +0 -12
- data/doc/ri/OpenObject/cdesc-OpenObject.yaml +0 -77
- data/doc/ri/OpenObject/default%21-i.yaml +0 -12
- data/doc/ri/OpenObject/define_slot-i.yaml +0 -10
- data/doc/ri/OpenObject/delete-i.yaml +0 -11
- data/doc/ri/OpenObject/each-i.yaml +0 -12
- data/doc/ri/OpenObject/fetch-i.yaml +0 -10
- data/doc/ri/OpenObject/initialize_copy-i.yaml +0 -10
- data/doc/ri/OpenObject/inspect-i.yaml +0 -12
- data/doc/ri/OpenObject/merge-i.yaml +0 -12
- data/doc/ri/OpenObject/method_missing-i.yaml +0 -10
- data/doc/ri/OpenObject/new-c.yaml +0 -14
- data/doc/ri/OpenObject/protect_slot-i.yaml +0 -10
- data/doc/ri/OpenObject/store-i.yaml +0 -10
- data/doc/ri/OpenObject/to_a-i.yaml +0 -12
- data/doc/ri/OpenObject/to_h-i.yaml +0 -10
- data/doc/ri/OpenObject/to_hash-i.yaml +0 -10
- data/doc/ri/OpenObject/to_openobject-i.yaml +0 -10
- data/doc/ri/OpenObject/to_proc-i.yaml +0 -10
- data/doc/ri/OpenObject/update-i.yaml +0 -12
- data/doc/ri/OpenStruct/%5b%5d%3d-i.yaml +0 -14
- data/doc/ri/OpenStruct/%5b%5d-i.yaml +0 -14
- data/doc/ri/OpenStruct/__merge__-i.yaml +0 -14
- data/doc/ri/OpenStruct/__update__-i.yaml +0 -14
- data/doc/ri/OpenStruct/cdesc-OpenStruct.yaml +0 -35
- data/doc/ri/OpenStruct/each-i.yaml +0 -11
- data/doc/ri/OpenStruct/instance_delegate-i.yaml +0 -19
- data/doc/ri/OpenStruct/new-c.yaml +0 -18
- data/doc/ri/OpenStruct/ostruct_delegate-i.yaml +0 -12
- data/doc/ri/OpenStruct/ostruct_merge-i.yaml +0 -14
- data/doc/ri/OpenStruct/ostruct_update-i.yaml +0 -14
- data/doc/ri/OpenStruct/to_h-i.yaml +0 -11
- data/doc/ri/PQueue/%3c%3c-i.yaml +0 -12
- data/doc/ri/PQueue/%3d%3d-i.yaml +0 -12
- data/doc/ri/PQueue/cdesc-PQueue.yaml +0 -77
- data/doc/ri/PQueue/clear-i.yaml +0 -12
- data/doc/ri/PQueue/downheap-i.yaml +0 -14
- data/doc/ri/PQueue/each_pop-i.yaml +0 -12
- data/doc/ri/PQueue/empty%3f-i.yaml +0 -12
- data/doc/ri/PQueue/heapify-i.yaml +0 -12
- data/doc/ri/PQueue/include%3f-i.yaml +0 -12
- data/doc/ri/PQueue/initialize_copy-i.yaml +0 -10
- data/doc/ri/PQueue/inspect-i.yaml +0 -12
- data/doc/ri/PQueue/merge-i.yaml +0 -12
- data/doc/ri/PQueue/new-c.yaml +0 -18
- data/doc/ri/PQueue/pop-i.yaml +0 -18
- data/doc/ri/PQueue/pop_array-i.yaml +0 -12
- data/doc/ri/PQueue/push-i.yaml +0 -15
- data/doc/ri/PQueue/push_all-i.yaml +0 -15
- data/doc/ri/PQueue/replace-i.yaml +0 -14
- data/doc/ri/PQueue/replace_top-i.yaml +0 -14
- data/doc/ri/PQueue/sort-i.yaml +0 -12
- data/doc/ri/PQueue/to_a-i.yaml +0 -13
- data/doc/ri/PQueue/top-i.yaml +0 -12
- data/doc/ri/PQueue/upheap-i.yaml +0 -14
- data/doc/ri/Paramix/Delegator/%5b%5d-i.yaml +0 -10
- data/doc/ri/Paramix/Delegator/append_features-i.yaml +0 -11
- data/doc/ri/Paramix/Delegator/cdesc-Delegator.yaml +0 -33
- data/doc/ri/Paramix/Delegator/extend_object-i.yaml +0 -11
- data/doc/ri/Paramix/Delegator/new-c.yaml +0 -11
- data/doc/ri/Paramix/append_features-c.yaml +0 -10
- data/doc/ri/Paramix/cdesc-Paramix.yaml +0 -41
- data/doc/ri/Paramix/new-c.yaml +0 -12
- data/doc/ri/PathList/Finder/cdesc-Finder.yaml +0 -21
- data/doc/ri/PathList/Finder/find-i.yaml +0 -11
- data/doc/ri/PathList/Finder/include%3f-i.yaml +0 -12
- data/doc/ri/PathList/cdesc-PathList.yaml +0 -28
- data/doc/ri/PathList/new-c.yaml +0 -10
- data/doc/ri/PathList/to_s-i.yaml +0 -10
- data/doc/ri/Pathname/%2f-c.yaml +0 -14
- data/doc/ri/Pathname/%5b%5d-c.yaml +0 -14
- data/doc/ri/Pathname/cdesc-Pathname.yaml +0 -27
- data/doc/ri/Pathname/home-c.yaml +0 -14
- data/doc/ri/Pathname/null-c.yaml +0 -12
- data/doc/ri/Pathname/root-c.yaml +0 -12
- data/doc/ri/Pathname/rootname-i.yaml +0 -11
- data/doc/ri/Pathname/work-c.yaml +0 -12
- data/doc/ri/Platform/%3d%3d%3d-i.yaml +0 -10
- data/doc/ri/Platform/%3d%3d-i.yaml +0 -10
- data/doc/ri/Platform/%3d%7e-i.yaml +0 -10
- data/doc/ri/Platform/cdesc-Platform.yaml +0 -65
- data/doc/ri/Platform/const_missing-c.yaml +0 -10
- data/doc/ri/Platform/inspect-i.yaml +0 -10
- data/doc/ri/Platform/local-c.yaml +0 -10
- data/doc/ri/Platform/match-c.yaml +0 -10
- data/doc/ri/Platform/new-c.yaml +0 -10
- data/doc/ri/Platform/supported-c.yaml +0 -12
- data/doc/ri/Platform/to_a-i.yaml +0 -10
- data/doc/ri/Platform/to_s-i.yaml +0 -10
- data/doc/ri/Pool/cdesc-Pool.yaml +0 -27
- data/doc/ri/Pool/new-c.yaml +0 -10
- data/doc/ri/Pool/obtain-i.yaml +0 -12
- data/doc/ri/Pool/pop-i.yaml +0 -12
- data/doc/ri/Pool/push-i.yaml +0 -12
- data/doc/ri/Proc/%2a-i.yaml +0 -14
- data/doc/ri/Proc/bind-i.yaml +0 -16
- data/doc/ri/Proc/cdesc-Proc.yaml +0 -28
- data/doc/ri/Proc/compose-i.yaml +0 -14
- data/doc/ri/Proc/curry-i.yaml +0 -14
- data/doc/ri/Proc/partial-i.yaml +0 -20
- data/doc/ri/Proc/to_method-i.yaml +0 -14
- data/doc/ri/Proc/to_openobject-i.yaml +0 -16
- data/doc/ri/ProgressBar/bar-i.yaml +0 -10
- data/doc/ri/ProgressBar/bar_mark%3d-i.yaml +0 -10
- data/doc/ri/ProgressBar/bytes-i.yaml +0 -10
- data/doc/ri/ProgressBar/cdesc-ProgressBar.yaml +0 -76
- data/doc/ri/ProgressBar/convert_bytes-i.yaml +0 -10
- data/doc/ri/ProgressBar/elapsed-i.yaml +0 -10
- data/doc/ri/ProgressBar/eol-i.yaml +0 -10
- data/doc/ri/ProgressBar/eta-i.yaml +0 -12
- data/doc/ri/ProgressBar/file_transfer_mode-i.yaml +0 -10
- data/doc/ri/ProgressBar/finish-i.yaml +0 -10
- data/doc/ri/ProgressBar/flush-i.yaml +0 -10
- data/doc/ri/ProgressBar/format%3d-i.yaml +0 -10
- data/doc/ri/ProgressBar/format_arguments%3d-i.yaml +0 -10
- data/doc/ri/ProgressBar/format_time-i.yaml +0 -10
- data/doc/ri/ProgressBar/get_width-i.yaml +0 -10
- data/doc/ri/ProgressBar/halt-i.yaml +0 -10
- data/doc/ri/ProgressBar/inc-i.yaml +0 -10
- data/doc/ri/ProgressBar/inspect-i.yaml +0 -10
- data/doc/ri/ProgressBar/new-c.yaml +0 -10
- data/doc/ri/ProgressBar/percentage-i.yaml +0 -10
- data/doc/ri/ProgressBar/set-i.yaml +0 -10
- data/doc/ri/ProgressBar/show-i.yaml +0 -10
- data/doc/ri/ProgressBar/show_progress-i.yaml +0 -10
- data/doc/ri/ProgressBar/stat-i.yaml +0 -10
- data/doc/ri/ProgressBar/stat_for_file_transfer-i.yaml +0 -10
- data/doc/ri/ProgressBar/title%3d-i.yaml +0 -10
- data/doc/ri/ProgressBar/title-i.yaml +0 -10
- data/doc/ri/ProgressBar/total_overflow%3d-i.yaml +0 -10
- data/doc/ri/ProgressBar/transfer_rate-i.yaml +0 -10
- data/doc/ri/Prototype/cdesc-Prototype.yaml +0 -30
- data/doc/ri/Prototype/fn-i.yaml +0 -10
- data/doc/ri/Prototype/meta-i.yaml +0 -10
- data/doc/ri/Prototype/method_missing-i.yaml +0 -10
- data/doc/ri/Prototype/new-c.yaml +0 -12
- data/doc/ri/Prototype/new-i.yaml +0 -10
- data/doc/ri/Prototype/trait-i.yaml +0 -10
- data/doc/ri/Prototype/traits-i.yaml +0 -10
- data/doc/ri/RWDelegator/%3d%3d-i.yaml +0 -10
- data/doc/ri/RWDelegator/cdesc-RWDelegator.yaml +0 -28
- data/doc/ri/RWDelegator/inspect-i.yaml +0 -10
- data/doc/ri/RWDelegator/method_missing-i.yaml +0 -10
- data/doc/ri/RWDelegator/new-c.yaml +0 -10
- data/doc/ri/Random/Array/at_rand%21-i.yaml +0 -14
- data/doc/ri/Random/Array/at_rand-i.yaml +0 -14
- data/doc/ri/Random/Array/cdesc-Array.yaml +0 -31
- data/doc/ri/Random/Array/pick%21-i.yaml +0 -12
- data/doc/ri/Random/Array/pick-i.yaml +0 -12
- data/doc/ri/Random/Array/rand_index-i.yaml +0 -12
- data/doc/ri/Random/Array/rand_subset-i.yaml +0 -18
- data/doc/ri/Random/Array/shuffle%21-i.yaml +0 -16
- data/doc/ri/Random/Array/shuffle-i.yaml +0 -14
- data/doc/ri/Random/Hash/at_rand%21-i.yaml +0 -12
- data/doc/ri/Random/Hash/at_rand-i.yaml +0 -12
- data/doc/ri/Random/Hash/cdesc-Hash.yaml +0 -41
- data/doc/ri/Random/Hash/pick-i.yaml +0 -12
- data/doc/ri/Random/Hash/pick_key-i.yaml +0 -12
- data/doc/ri/Random/Hash/pick_pair-i.yaml +0 -12
- data/doc/ri/Random/Hash/rand_key%21-i.yaml +0 -15
- data/doc/ri/Random/Hash/rand_key-i.yaml +0 -14
- data/doc/ri/Random/Hash/rand_pair%21-i.yaml +0 -15
- data/doc/ri/Random/Hash/rand_pair-i.yaml +0 -14
- data/doc/ri/Random/Hash/rand_value%21-i.yaml +0 -17
- data/doc/ri/Random/Hash/rand_value-i.yaml +0 -15
- data/doc/ri/Random/Hash/shuffle%21-i.yaml +0 -14
- data/doc/ri/Random/Hash/shuffle-i.yaml +0 -14
- data/doc/ri/Random/Object/cdesc-Object.yaml +0 -16
- data/doc/ri/Random/Object/maybe-i.yaml +0 -14
- data/doc/ri/Random/String/Self/cdesc-Self.yaml +0 -20
- data/doc/ri/Random/String/Self/rand_letter-i.yaml +0 -14
- data/doc/ri/Random/String/Self/random-i.yaml +0 -12
- data/doc/ri/Random/String/at_rand%21-i.yaml +0 -14
- data/doc/ri/Random/String/at_rand-i.yaml +0 -14
- data/doc/ri/Random/String/cdesc-String.yaml +0 -30
- data/doc/ri/Random/String/included-c.yaml +0 -10
- data/doc/ri/Random/String/rand_byte%21-i.yaml +0 -14
- data/doc/ri/Random/String/rand_byte-i.yaml +0 -14
- data/doc/ri/Random/String/rand_index-i.yaml +0 -14
- data/doc/ri/Random/String/shuffle%21-i.yaml +0 -12
- data/doc/ri/Random/String/shuffle-i.yaml +0 -14
- data/doc/ri/Random/append_features-c.yaml +0 -11
- data/doc/ri/Random/cdesc-Random.yaml +0 -31
- data/doc/ri/Random/number-c.yaml +0 -11
- data/doc/ri/Range/cdesc-Range.yaml +0 -27
- data/doc/ri/Range/combine-c.yaml +0 -14
- data/doc/ri/Range/combine-i.yaml +0 -14
- data/doc/ri/Range/overlap%3f-i.yaml +0 -14
- data/doc/ri/Range/to_r-i.yaml +0 -14
- data/doc/ri/Range/to_range-i.yaml +0 -16
- data/doc/ri/Range/umbrella-i.yaml +0 -20
- data/doc/ri/Range/within%3f-i.yaml +0 -14
- data/doc/ri/Recorder/__call__-i.yaml +0 -10
- data/doc/ri/Recorder/cdesc-Recorder.yaml +0 -34
- data/doc/ri/Recorder/inspect-i.yaml +0 -10
- data/doc/ri/Recorder/method_missing-i.yaml +0 -10
- data/doc/ri/Recorder/new-c.yaml +0 -11
- data/doc/ri/RecursiveDependency/cdesc-RecursiveDependency.yaml +0 -15
- data/doc/ri/Reference/__value__-i.yaml +0 -11
- data/doc/ri/Reference/become-i.yaml +0 -10
- data/doc/ri/Reference/cdesc-Reference.yaml +0 -30
- data/doc/ri/Reference/instance_delegate-i.yaml +0 -12
- data/doc/ri/Reference/method_missing-i.yaml +0 -10
- data/doc/ri/Reference/new-c.yaml +0 -10
- data/doc/ri/Regexp/arity-i.yaml +0 -18
- data/doc/ri/Regexp/cdesc-Regexp.yaml +0 -20
- data/doc/ri/Regexp/to_re-i.yaml +0 -16
- data/doc/ri/Regexp/to_regexp-i.yaml +0 -16
- data/doc/ri/Registerable/cdesc-Registerable.yaml +0 -23
- data/doc/ri/Registerable/register-i.yaml +0 -12
- data/doc/ri/Registerable/registry-i.yaml +0 -12
- data/doc/ri/Registerable/registry_invalid%3f-i.yaml +0 -11
- data/doc/ri/Semaphore/cdesc-Semaphore.yaml +0 -36
- data/doc/ri/Semaphore/down-i.yaml +0 -12
- data/doc/ri/Semaphore/exclusive-i.yaml +0 -11
- data/doc/ri/Semaphore/new-c.yaml +0 -10
- data/doc/ri/Semaphore/p-i.yaml +0 -12
- data/doc/ri/Semaphore/signal-i.yaml +0 -13
- data/doc/ri/Semaphore/synchronize-i.yaml +0 -12
- data/doc/ri/Semaphore/up-i.yaml +0 -12
- data/doc/ri/Semaphore/v-i.yaml +0 -12
- data/doc/ri/Semaphore/wait-i.yaml +0 -13
- data/doc/ri/Set/cdesc-Set.yaml +0 -16
- data/doc/ri/Set/power_set-i.yaml +0 -10
- data/doc/ri/Settings/Setting/cdesc-Setting.yaml +0 -42
- data/doc/ri/Settings/Setting/new-c.yaml +0 -10
- data/doc/ri/Settings/Setting/to_s-i.yaml +0 -12
- data/doc/ri/Settings/Setting/update-i.yaml +0 -12
- data/doc/ri/Settings/SettingCollection/cdesc-SettingCollection.yaml +0 -23
- data/doc/ri/Settings/SettingCollection/method_missing-i.yaml +0 -12
- data/doc/ri/Settings/add_setting-c.yaml +0 -17
- data/doc/ri/Settings/cdesc-Settings.yaml +0 -33
- data/doc/ri/Settings/load-c.yaml +0 -12
- data/doc/ri/Settings/method_missing-c.yaml +0 -10
- data/doc/ri/Settings/parse-c.yaml +0 -12
- data/doc/ri/Settings/settings-c.yaml +0 -12
- data/doc/ri/Settings/setup-c.yaml +0 -15
- data/doc/ri/Shellwords/cdesc-Shellwords.yaml +0 -16
- data/doc/ri/Shellwords/escape-i.yaml +0 -12
- data/doc/ri/SimpleStringIO/cdesc-SimpleStringIO.yaml +0 -20
- data/doc/ri/SimpleStringIO/new-c.yaml +0 -10
- data/doc/ri/SimpleStringIO/write-i.yaml +0 -10
- data/doc/ri/Snapshot/ValueHolder/cdesc-ValueHolder.yaml +0 -24
- data/doc/ri/Snapshot/ValueHolder/new-c.yaml +0 -10
- data/doc/ri/Snapshot/ValueHolder/restore_snapshot-i.yaml +0 -10
- data/doc/ri/Snapshot/ValueHolder/take_snapshot-i.yaml +0 -10
- data/doc/ri/Snapshot/add-i.yaml +0 -10
- data/doc/ri/Snapshot/cdesc-Snapshot.yaml +0 -36
- data/doc/ri/Snapshot/new-c.yaml +0 -10
- data/doc/ri/Snapshot/restore-i.yaml +0 -10
- data/doc/ri/Stackable/cdesc-Stackable.yaml +0 -33
- data/doc/ri/Stackable/peek-i.yaml +0 -14
- data/doc/ri/Stackable/poke-i.yaml +0 -15
- data/doc/ri/Stackable/pop-i.yaml +0 -14
- data/doc/ri/Stackable/pull-i.yaml +0 -15
- data/doc/ri/Stackable/push-i.yaml +0 -14
- data/doc/ri/Stackable/shift-i.yaml +0 -12
- data/doc/ri/Stackable/unshift-i.yaml +0 -12
- data/doc/ri/String/Style/camelize-c.yaml +0 -18
- data/doc/ri/String/Style/capitalize-c.yaml +0 -12
- data/doc/ri/String/Style/cdesc-Style.yaml +0 -69
- data/doc/ri/String/Style/classify-c.yaml +0 -20
- data/doc/ri/String/Style/dasherize-c.yaml +0 -16
- data/doc/ri/String/Style/demodulize-c.yaml +0 -16
- data/doc/ri/String/Style/downcase-c.yaml +0 -12
- data/doc/ri/String/Style/foreign_key-c.yaml +0 -16
- data/doc/ri/String/Style/humanize-c.yaml +0 -16
- data/doc/ri/String/Style/lowercamel-c.yaml +0 -10
- data/doc/ri/String/Style/lowercase-c.yaml +0 -12
- data/doc/ri/String/Style/methodize-c.yaml +0 -18
- data/doc/ri/String/Style/modulize-c.yaml +0 -18
- data/doc/ri/String/Style/ordinalize-c.yaml +0 -16
- data/doc/ri/String/Style/pathize-c.yaml +0 -22
- data/doc/ri/String/Style/snakecase-c.yaml +0 -18
- data/doc/ri/String/Style/tableize-c.yaml +0 -16
- data/doc/ri/String/Style/titlecase-c.yaml +0 -14
- data/doc/ri/String/Style/titleize-c.yaml +0 -18
- data/doc/ri/String/Style/underscore-c.yaml +0 -18
- data/doc/ri/String/Style/upcase-c.yaml +0 -12
- data/doc/ri/String/Style/uppercamel-c.yaml +0 -10
- data/doc/ri/String/Style/uppercase-c.yaml +0 -12
- data/doc/ri/String/Words/brief-i.yaml +0 -14
- data/doc/ri/String/Words/cdesc-Words.yaml +0 -28
- data/doc/ri/String/Words/each_word-i.yaml +0 -14
- data/doc/ri/String/Words/word_filter%21-i.yaml +0 -14
- data/doc/ri/String/Words/word_filter-i.yaml +0 -14
- data/doc/ri/String/Words/word_wrap%21-i.yaml +0 -14
- data/doc/ri/String/Words/word_wrap-i.yaml +0 -18
- data/doc/ri/String/Words/words-i.yaml +0 -14
- data/doc/ri/String/cdesc-String.yaml +0 -17
- data/doc/ri/Struct/cdesc-Struct.yaml +0 -18
- data/doc/ri/Struct/restore_snapshot-i.yaml +0 -10
- data/doc/ri/Struct/take_snapshot-i.yaml +0 -10
- data/doc/ri/Symbol/cdesc-Symbol.yaml +0 -15
- data/doc/ri/SyncArray/cdesc-SyncArray.yaml +0 -19
- data/doc/ri/SyncArray/new-c.yaml +0 -12
- data/doc/ri/SyncHash/Delegator/%5b%5d%3d-i.yaml +0 -10
- data/doc/ri/SyncHash/Delegator/%5b%5d-i.yaml +0 -10
- data/doc/ri/SyncHash/Delegator/cdesc-Delegator.yaml +0 -30
- data/doc/ri/SyncHash/Delegator/clear-i.yaml +0 -10
- data/doc/ri/SyncHash/Delegator/delete-i.yaml +0 -10
- data/doc/ri/SyncHash/Delegator/keys-i.yaml +0 -10
- data/doc/ri/SyncHash/Delegator/size-i.yaml +0 -10
- data/doc/ri/SyncHash/Delegator/values-i.yaml +0 -10
- data/doc/ri/SyncHash/Inheritor/%5b%5d%3d-i.yaml +0 -10
- data/doc/ri/SyncHash/Inheritor/%5b%5d-i.yaml +0 -10
- data/doc/ri/SyncHash/Inheritor/cdesc-Inheritor.yaml +0 -30
- data/doc/ri/SyncHash/Inheritor/clear-i.yaml +0 -10
- data/doc/ri/SyncHash/Inheritor/delete-i.yaml +0 -10
- data/doc/ri/SyncHash/Inheritor/keys-i.yaml +0 -10
- data/doc/ri/SyncHash/Inheritor/size-i.yaml +0 -10
- data/doc/ri/SyncHash/Inheritor/values-i.yaml +0 -10
- data/doc/ri/SyncHash/cdesc-SyncHash.yaml +0 -38
- data/doc/ri/SyncHash/new-c.yaml +0 -10
- data/doc/ri/System/argf-i.yaml +0 -12
- data/doc/ri/System/argv-i.yaml +0 -11
- data/doc/ri/System/cdesc-System.yaml +0 -145
- data/doc/ri/System/child_status-i.yaml +0 -11
- data/doc/ri/System/coding%3d-i.yaml +0 -10
- data/doc/ri/System/coding-i.yaml +0 -10
- data/doc/ri/System/current_platform-i.yaml +0 -12
- data/doc/ri/System/data-i.yaml +0 -12
- data/doc/ri/System/debug-i.yaml +0 -10
- data/doc/ri/System/default_input-i.yaml +0 -13
- data/doc/ri/System/default_output%3d-i.yaml +0 -11
- data/doc/ri/System/default_output-i.yaml +0 -11
- data/doc/ri/System/defin-i.yaml +0 -12
- data/doc/ri/System/defout%3d-i.yaml +0 -12
- data/doc/ri/System/defout-i.yaml +0 -12
- data/doc/ri/System/env-i.yaml +0 -10
- data/doc/ri/System/environment-i.yaml +0 -10
- data/doc/ri/System/error_info-i.yaml +0 -10
- data/doc/ri/System/error_position-i.yaml +0 -10
- data/doc/ri/System/exit_status-i.yaml +0 -12
- data/doc/ri/System/extentions-i.yaml +0 -10
- data/doc/ri/System/fs%3d-i.yaml +0 -12
- data/doc/ri/System/fs-i.yaml +0 -12
- data/doc/ri/System/input_field_separator%3d-i.yaml +0 -11
- data/doc/ri/System/input_field_separator-i.yaml +0 -11
- data/doc/ri/System/input_line_number-i.yaml +0 -11
- data/doc/ri/System/input_lineno-i.yaml +0 -12
- data/doc/ri/System/input_record_separator%3d-i.yaml +0 -11
- data/doc/ri/System/input_record_separator-i.yaml +0 -11
- data/doc/ri/System/line_end_processing-i.yaml +0 -10
- data/doc/ri/System/load_path-i.yaml +0 -12
- data/doc/ri/System/loaded_features-i.yaml +0 -11
- data/doc/ri/System/match_platform-i.yaml +0 -11
- data/doc/ri/System/ofs%3d-i.yaml +0 -12
- data/doc/ri/System/ofs-i.yaml +0 -12
- data/doc/ri/System/options-i.yaml +0 -12
- data/doc/ri/System/ors%3d-i.yaml +0 -12
- data/doc/ri/System/ors-i.yaml +0 -12
- data/doc/ri/System/output_field_separator%3d-i.yaml +0 -11
- data/doc/ri/System/output_field_separator-i.yaml +0 -11
- data/doc/ri/System/output_record_separator%3d-i.yaml +0 -11
- data/doc/ri/System/output_record_separator-i.yaml +0 -11
- data/doc/ri/System/pid-i.yaml +0 -12
- data/doc/ri/System/platform-i.yaml +0 -10
- data/doc/ri/System/process_id-i.yaml +0 -15
- data/doc/ri/System/program_loop-i.yaml +0 -10
- data/doc/ri/System/program_name%3d-i.yaml +0 -10
- data/doc/ri/System/program_name-i.yaml +0 -12
- data/doc/ri/System/release-i.yaml +0 -10
- data/doc/ri/System/required-i.yaml +0 -12
- data/doc/ri/System/rs%3d-i.yaml +0 -12
- data/doc/ri/System/rs-i.yaml +0 -12
- data/doc/ri/System/rubylibdir-i.yaml +0 -10
- data/doc/ri/System/rubypath-i.yaml +0 -10
- data/doc/ri/System/safe-i.yaml +0 -10
- data/doc/ri/System/stderr%3d-i.yaml +0 -10
- data/doc/ri/System/stderr-i.yaml +0 -10
- data/doc/ri/System/stdin%3d-i.yaml +0 -10
- data/doc/ri/System/stdin-i.yaml +0 -12
- data/doc/ri/System/stdout%3d-i.yaml +0 -10
- data/doc/ri/System/stdout-i.yaml +0 -10
- data/doc/ri/System/verbose%3d-i.yaml +0 -10
- data/doc/ri/System/verbose-i.yaml +0 -10
- data/doc/ri/System/version-i.yaml +0 -10
- data/doc/ri/Time/cdesc-Time.yaml +0 -17
- data/doc/ri/Timer/Dummy/cdesc-Dummy.yaml +0 -20
- data/doc/ri/Timer/Dummy/start-i.yaml +0 -10
- data/doc/ri/Timer/Dummy/stop-i.yaml +0 -10
- data/doc/ri/Timer/cdesc-Timer.yaml +0 -57
- data/doc/ri/Timer/defuse-i.yaml +0 -12
- data/doc/ri/Timer/limit-i.yaml +0 -12
- data/doc/ri/Timer/new-c.yaml +0 -10
- data/doc/ri/Timer/on_timeout-i.yaml +0 -10
- data/doc/ri/Timer/reset-i.yaml +0 -12
- data/doc/ri/Timer/reset_limit-i.yaml +0 -14
- data/doc/ri/Timer/running%3f-i.yaml +0 -12
- data/doc/ri/Timer/start-i.yaml +0 -12
- data/doc/ri/Timer/stop-i.yaml +0 -12
- data/doc/ri/Timer/stopped%3f-i.yaml +0 -12
- data/doc/ri/Timer/total_time-i.yaml +0 -12
- data/doc/ri/TracePoint/%3d%3d%3d-i.yaml +0 -12
- data/doc/ri/TracePoint/active%3d-c.yaml +0 -10
- data/doc/ri/TracePoint/active-c.yaml +0 -10
- data/doc/ri/TracePoint/back-i.yaml +0 -12
- data/doc/ri/TracePoint/bind-i.yaml +0 -12
- data/doc/ri/TracePoint/called-i.yaml +0 -13
- data/doc/ri/TracePoint/callee-i.yaml +0 -13
- data/doc/ri/TracePoint/cdesc-TracePoint.yaml +0 -82
- data/doc/ri/TracePoint/event%3f-i.yaml +0 -12
- data/doc/ri/TracePoint/event_map-i.yaml +0 -10
- data/doc/ri/TracePoint/eventless%3f-i.yaml +0 -10
- data/doc/ri/TracePoint/method_name-i.yaml +0 -12
- data/doc/ri/TracePoint/new-c.yaml +0 -12
- data/doc/ri/TracePoint/self-i.yaml +0 -12
- data/doc/ri/TracePoint/trace-c.yaml +0 -12
- data/doc/ri/TrueClass/cdesc-TrueClass.yaml +0 -15
- data/doc/ri/Tuple/%3c%3c-i.yaml +0 -12
- data/doc/ri/Tuple/%3c%3d%3e-i.yaml +0 -10
- data/doc/ri/Tuple/%3d%7e-i.yaml +0 -12
- data/doc/ri/Tuple/%5b%5d%3d-i.yaml +0 -10
- data/doc/ri/Tuple/%5b%5d-c.yaml +0 -10
- data/doc/ri/Tuple/%5b%5d-i.yaml +0 -10
- data/doc/ri/Tuple/cast_from_array-c.yaml +0 -11
- data/doc/ri/Tuple/cast_from_string-c.yaml +0 -20
- data/doc/ri/Tuple/cdesc-Tuple.yaml +0 -113
- data/doc/ri/Tuple/constraint_to_lambda-c.yaml +0 -12
- data/doc/ri/Tuple/divider-i.yaml +0 -10
- data/doc/ri/Tuple/each-i.yaml +0 -10
- data/doc/ri/Tuple/each_index-i.yaml +0 -10
- data/doc/ri/Tuple/empty%3f-i.yaml +0 -10
- data/doc/ri/Tuple/eql%3f-i.yaml +0 -12
- data/doc/ri/Tuple/first-i.yaml +0 -10
- data/doc/ri/Tuple/hash-i.yaml +0 -12
- data/doc/ri/Tuple/index-i.yaml +0 -10
- data/doc/ri/Tuple/inspect-i.yaml +0 -10
- data/doc/ri/Tuple/last-i.yaml +0 -10
- data/doc/ri/Tuple/length-i.yaml +0 -10
- data/doc/ri/Tuple/major-i.yaml +0 -12
- data/doc/ri/Tuple/minor-i.yaml +0 -10
- data/doc/ri/Tuple/multiton_id-c.yaml +0 -10
- data/doc/ri/Tuple/new-c.yaml +0 -10
- data/doc/ri/Tuple/parse_constraint-c.yaml +0 -10
- data/doc/ri/Tuple/pop-i.yaml +0 -10
- data/doc/ri/Tuple/pot-i.yaml +0 -13
- data/doc/ri/Tuple/pull-i.yaml +0 -13
- data/doc/ri/Tuple/push-i.yaml +0 -10
- data/doc/ri/Tuple/rindex-i.yaml +0 -10
- data/doc/ri/Tuple/shift-i.yaml +0 -12
- data/doc/ri/Tuple/size-i.yaml +0 -10
- data/doc/ri/Tuple/teeny-i.yaml +0 -10
- data/doc/ri/Tuple/to_a-i.yaml +0 -10
- data/doc/ri/Tuple/to_ary-i.yaml +0 -10
- data/doc/ri/Tuple/to_s-i.yaml +0 -10
- data/doc/ri/Tuple/to_t-i.yaml +0 -10
- data/doc/ri/Tuple/to_tuple-i.yaml +0 -10
- data/doc/ri/Tuple/unshift-i.yaml +0 -12
- data/doc/ri/Tuple/values-i.yaml +0 -10
- data/doc/ri/TypeCast/Class/cast_from-i.yaml +0 -14
- data/doc/ri/TypeCast/Class/cdesc-Class.yaml +0 -18
- data/doc/ri/TypeCast/Object/cast_to-i.yaml +0 -14
- data/doc/ri/TypeCast/Object/cdesc-Object.yaml +0 -18
- data/doc/ri/TypeCast/cdesc-TypeCast.yaml +0 -52
- data/doc/ri/TypeCastException/cdesc-TypeCastException.yaml +0 -17
- data/doc/ri/URI/Hash/cdesc-Hash.yaml +0 -16
- data/doc/ri/URI/Hash/to_uri-i.yaml +0 -11
- data/doc/ri/URI/Kernel/cdesc-Kernel.yaml +0 -18
- data/doc/ri/URI/Kernel/unuri-i.yaml +0 -11
- data/doc/ri/URI/Kernel/uri-i.yaml +0 -11
- data/doc/ri/URI/cdesc-URI.yaml +0 -38
- data/doc/ri/URI/cgi_escape-i.yaml +0 -12
- data/doc/ri/URI/cgi_parse-i.yaml +0 -11
- data/doc/ri/URI/cgi_unescape-i.yaml +0 -11
- data/doc/ri/URI/chomp_query_string-i.yaml +0 -16
- data/doc/ri/URI/decode-i.yaml +0 -12
- data/doc/ri/URI/get_query_string-i.yaml +0 -16
- data/doc/ri/URI/hash_to_query-i.yaml +0 -15
- data/doc/ri/URI/hash_to_query_string-i.yaml +0 -12
- data/doc/ri/URI/query_string_to_hash-i.yaml +0 -12
- data/doc/ri/URI/query_to_hash-i.yaml +0 -17
- data/doc/ri/URI/update_query_string-i.yaml +0 -18
- data/doc/ri/URI/update_request_uri-i.yaml +0 -12
- data/doc/ri/UnboundMethod/arguments-i.yaml +0 -18
- data/doc/ri/UnboundMethod/cdesc-UnboundMethod.yaml +0 -18
- data/doc/ri/UnboundMethod/name-i.yaml +0 -14
- data/doc/ri/Uninheritable/cdesc-Uninheritable.yaml +0 -21
- data/doc/ri/Uninheritable/inherited-i.yaml +0 -12
- data/doc/ri/UploadUtils/cdesc-UploadUtils.yaml +0 -47
- data/doc/ri/UploadUtils/files-i.yaml +0 -12
- data/doc/ri/UploadUtils/ftp-i.yaml +0 -12
- data/doc/ri/UploadUtils/rsync-i.yaml +0 -12
- data/doc/ri/UploadUtils/sftp-i.yaml +0 -12
- data/doc/ri/UploadUtils/stage_linkdir-i.yaml +0 -12
- data/doc/ri/UploadUtils/stage_transfer-i.yaml +0 -20
- data/doc/ri/UploadUtils/upload-i.yaml +0 -12
- data/doc/ri/UploadUtils/upload_parameters-i.yaml +0 -12
- data/doc/ri/VersionNumber/%3c%3d%3e-i.yaml +0 -12
- data/doc/ri/VersionNumber/%3d%7e-i.yaml +0 -12
- data/doc/ri/VersionNumber/%5b%5d-i.yaml +0 -10
- data/doc/ri/VersionNumber/cdesc-VersionNumber.yaml +0 -45
- data/doc/ri/VersionNumber/constraint_lambda-c.yaml +0 -12
- data/doc/ri/VersionNumber/inspect-i.yaml +0 -10
- data/doc/ri/VersionNumber/major-i.yaml +0 -12
- data/doc/ri/VersionNumber/method_missing-i.yaml +0 -12
- data/doc/ri/VersionNumber/minor-i.yaml +0 -12
- data/doc/ri/VersionNumber/new-c.yaml +0 -10
- data/doc/ri/VersionNumber/parse_constraint-c.yaml +0 -10
- data/doc/ri/VersionNumber/teeny-i.yaml +0 -12
- data/doc/ri/VersionNumber/to_s-i.yaml +0 -10
- data/doc/ri/VersionNumber/to_str-i.yaml +0 -12
- data/doc/ri/Weekdays/after-i.yaml +0 -12
- data/doc/ri/Weekdays/ago-i.yaml +0 -13
- data/doc/ri/Weekdays/before-i.yaml +0 -12
- data/doc/ri/Weekdays/cdesc-Weekdays.yaml +0 -38
- data/doc/ri/Weekdays/from_now-i.yaml +0 -12
- data/doc/ri/Weekdays/new-c.yaml +0 -10
- data/doc/ri/Weekdays/since-i.yaml +0 -13
- data/doc/ri/Weekdays/step-i.yaml +0 -10
- data/doc/ri/Weekdays/until-i.yaml +0 -12
- data/doc/ri/XOXO/Parser/cdesc-Parser.yaml +0 -15
- data/doc/ri/XOXO/cdesc-XOXO.yaml +0 -25
- data/doc/ri/XOXO/dump-c.yaml +0 -35
- data/doc/ri/XOXO/load-c.yaml +0 -12
- data/doc/ri/XOXO/make_xoxo-c.yaml +0 -10
- data/doc/ri/ZipUtils/DryRun/cdesc-DryRun.yaml +0 -32
- data/doc/ri/ZipUtils/DryRun/compress-i.yaml +0 -10
- data/doc/ri/ZipUtils/DryRun/tar_bzip2-i.yaml +0 -10
- data/doc/ri/ZipUtils/DryRun/tar_gzip-i.yaml +0 -10
- data/doc/ri/ZipUtils/DryRun/untar_bzip2-i.yaml +0 -10
- data/doc/ri/ZipUtils/DryRun/untar_gzip-i.yaml +0 -10
- data/doc/ri/ZipUtils/DryRun/unzip-i.yaml +0 -10
- data/doc/ri/ZipUtils/DryRun/zip-i.yaml +0 -10
- data/doc/ri/ZipUtils/NoWrite/cdesc-NoWrite.yaml +0 -32
- data/doc/ri/ZipUtils/NoWrite/compress-i.yaml +0 -10
- data/doc/ri/ZipUtils/NoWrite/tar_bzip2-i.yaml +0 -10
- data/doc/ri/ZipUtils/NoWrite/tar_gzip-i.yaml +0 -10
- data/doc/ri/ZipUtils/NoWrite/untar_bzip2-i.yaml +0 -10
- data/doc/ri/ZipUtils/NoWrite/untar_gzip-i.yaml +0 -10
- data/doc/ri/ZipUtils/NoWrite/unzip-i.yaml +0 -10
- data/doc/ri/ZipUtils/NoWrite/zip-i.yaml +0 -10
- data/doc/ri/ZipUtils/Verbose/cdesc-Verbose.yaml +0 -32
- data/doc/ri/ZipUtils/Verbose/compress-i.yaml +0 -10
- data/doc/ri/ZipUtils/Verbose/tar_bzip2-i.yaml +0 -10
- data/doc/ri/ZipUtils/Verbose/tar_gzip-i.yaml +0 -10
- data/doc/ri/ZipUtils/Verbose/untar_bzip2-i.yaml +0 -10
- data/doc/ri/ZipUtils/Verbose/untar_gzip-i.yaml +0 -10
- data/doc/ri/ZipUtils/Verbose/unzip-i.yaml +0 -10
- data/doc/ri/ZipUtils/Verbose/zip-i.yaml +0 -10
- data/doc/ri/ZipUtils/cdesc-ZipUtils.yaml +0 -50
- data/doc/ri/ZipUtils/compress-i.yaml +0 -27
- data/doc/ri/ZipUtils/tar_bzip-i.yaml +0 -12
- data/doc/ri/ZipUtils/tar_bzip2-i.yaml +0 -15
- data/doc/ri/ZipUtils/tar_gzip-i.yaml +0 -13
- data/doc/ri/ZipUtils/tar_j-i.yaml +0 -12
- data/doc/ri/ZipUtils/tar_z-i.yaml +0 -12
- data/doc/ri/ZipUtils/tgz-i.yaml +0 -11
- data/doc/ri/ZipUtils/untar_bzip-i.yaml +0 -12
- data/doc/ri/ZipUtils/untar_bzip2-i.yaml +0 -15
- data/doc/ri/ZipUtils/untar_gzip-i.yaml +0 -13
- data/doc/ri/ZipUtils/untar_j-i.yaml +0 -12
- data/doc/ri/ZipUtils/untar_z-i.yaml +0 -12
- data/doc/ri/ZipUtils/unzip-i.yaml +0 -12
- data/doc/ri/ZipUtils/zip-i.yaml +0 -12
- data/doc/ri/created.rid +0 -1
- data/lib/core/facets/kernel/suppress.rb +0 -18
- data/lib/core/facets/string/to_time.rb +0 -15
- data/lib/core/facets/time/to_date.rb +0 -26
- data/test/core/string/test_to_time.rb +0 -15
- data/test/core/time/test_to_date.rb +0 -12
@@ -65,7 +65,6 @@
|
|
65
65
|
<a href="../files/lib/core/facets/kernel/as_rb.html">lib/core/facets/kernel/as.rb</a>
|
66
66
|
<a href="../files/lib/core/facets/kernel/__class___rb.html">lib/core/facets/kernel/__class__.rb</a>
|
67
67
|
<a href="../files/lib/core/facets/kernel/ask_rb.html">lib/core/facets/kernel/ask.rb</a>
|
68
|
-
<a href="../files/lib/core/facets/kernel/suppress_rb.html">lib/core/facets/kernel/suppress.rb</a>
|
69
68
|
<a href="../files/lib/core/facets/kernel/demo_rb.html">lib/core/facets/kernel/demo.rb</a>
|
70
69
|
<a href="../files/lib/core/facets/kernel/maybe_rb.html">lib/core/facets/kernel/maybe.rb</a>
|
71
70
|
<a href="../files/lib/core/facets/kernel/instance_send_rb.html">lib/core/facets/kernel/instance_send.rb</a>
|
@@ -81,6 +80,7 @@
|
|
81
80
|
<a href="../files/lib/core/facets/kernel/deep_copy_rb.html">lib/core/facets/kernel/deep_copy.rb</a>
|
82
81
|
<a href="../files/lib/core/facets/kernel/silence_rb.html">lib/core/facets/kernel/silence.rb</a>
|
83
82
|
<a href="../files/lib/core/facets/kernel/require_all_rb.html">lib/core/facets/kernel/require_all.rb</a>
|
83
|
+
<a href="../files/lib/core/facets/kernel/qua_class_rb.html">lib/core/facets/kernel/qua_class.rb</a>
|
84
84
|
<a href="../files/lib/core/facets/kernel/resc_rb.html">lib/core/facets/kernel/resc.rb</a>
|
85
85
|
<a href="../files/lib/core/facets/kernel/instance_variables_rb.html">lib/core/facets/kernel/instance_variables.rb</a>
|
86
86
|
<a href="../files/lib/core/facets/kernel/instance_assign_rb.html">lib/core/facets/kernel/instance_assign.rb</a>
|
@@ -88,47 +88,6 @@
|
|
88
88
|
<a href="../files/lib/core/facets/kernel/d_rb.html">lib/core/facets/kernel/d.rb</a>
|
89
89
|
<a href="../files/lib/core/facets/kernel/__method___rb.html">lib/core/facets/kernel/__method__.rb</a>
|
90
90
|
<a href="../files/lib/core/facets/kernel/instance_class_rb.html">lib/core/facets/kernel/instance_class.rb</a>
|
91
|
-
<a href="../files/lib/core/facets/kernel/instance_exec_rb.html">lib/core/facets/kernel/instance_exec.rb</a>
|
92
|
-
<a href="../files/lib/core/facets/kernel/attr_singleton_rb.html">lib/core/facets/kernel/attr_singleton.rb</a>
|
93
|
-
<a href="../files/lib/core/facets/kernel/p_rb.html">lib/core/facets/kernel/p.rb</a>
|
94
|
-
<a href="../files/lib/core/facets/kernel/singleton_class_rb.html">lib/core/facets/kernel/singleton_class.rb</a>
|
95
|
-
<a href="../files/lib/core/facets/kernel/try_rb.html">lib/core/facets/kernel/try.rb</a>
|
96
|
-
<a href="../files/lib/core/facets/kernel/__dir___rb.html">lib/core/facets/kernel/__dir__.rb</a>
|
97
|
-
<a href="../files/lib/core/facets/kernel/returning_rb.html">lib/core/facets/kernel/returning.rb</a>
|
98
|
-
<a href="../files/lib/core/facets/kernel/populate_rb.html">lib/core/facets/kernel/populate.rb</a>
|
99
|
-
<a href="../files/lib/core/facets/kernel/val_rb.html">lib/core/facets/kernel/val.rb</a>
|
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>
|
102
|
-
<a href="../files/lib/core/facets/kernel/respond_rb.html">lib/core/facets/kernel/respond.rb</a>
|
103
|
-
<a href="../files/lib/core/facets/kernel/in_rb.html">lib/core/facets/kernel/in.rb</a>
|
104
|
-
<a href="../files/lib/core/facets/kernel/here_rb.html">lib/core/facets/kernel/here.rb</a>
|
105
|
-
<a href="../files/lib/core/facets/kernel/as_rb.html">lib/core/facets/kernel/as.rb</a>
|
106
|
-
<a href="../files/lib/core/facets/kernel/__class___rb.html">lib/core/facets/kernel/__class__.rb</a>
|
107
|
-
<a href="../files/lib/core/facets/kernel/ask_rb.html">lib/core/facets/kernel/ask.rb</a>
|
108
|
-
<a href="../files/lib/core/facets/kernel/suppress_rb.html">lib/core/facets/kernel/suppress.rb</a>
|
109
|
-
<a href="../files/lib/core/facets/kernel/demo_rb.html">lib/core/facets/kernel/demo.rb</a>
|
110
|
-
<a href="../files/lib/core/facets/kernel/maybe_rb.html">lib/core/facets/kernel/maybe.rb</a>
|
111
|
-
<a href="../files/lib/core/facets/kernel/instance_send_rb.html">lib/core/facets/kernel/instance_send.rb</a>
|
112
|
-
<a href="../files/lib/core/facets/kernel/object_hexid_rb.html">lib/core/facets/kernel/object_hexid.rb</a>
|
113
|
-
<a href="../files/lib/core/facets/kernel/object_class_rb.html">lib/core/facets/kernel/object_class.rb</a>
|
114
|
-
<a href="../files/lib/core/facets/kernel/tap_rb.html">lib/core/facets/kernel/tap.rb</a>
|
115
|
-
<a href="../files/lib/core/facets/kernel/instance_rb.html">lib/core/facets/kernel/instance.rb</a>
|
116
|
-
<a href="../files/lib/core/facets/kernel/object_send_rb.html">lib/core/facets/kernel/object_send.rb</a>
|
117
|
-
<a href="../files/lib/core/facets/kernel/ergo_rb.html">lib/core/facets/kernel/ergo.rb</a>
|
118
|
-
<a href="../files/lib/core/facets/kernel/complete_rb.html">lib/core/facets/kernel/complete.rb</a>
|
119
|
-
<a href="../files/lib/core/facets/kernel/__get___rb.html">lib/core/facets/kernel/__get__.rb</a>
|
120
|
-
<a href="../files/lib/core/facets/kernel/not_nil_rb.html">lib/core/facets/kernel/not_nil.rb</a>
|
121
|
-
<a href="../files/lib/core/facets/kernel/deep_copy_rb.html">lib/core/facets/kernel/deep_copy.rb</a>
|
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>
|
124
|
-
<a href="../files/lib/core/facets/kernel/resc_rb.html">lib/core/facets/kernel/resc.rb</a>
|
125
|
-
<a href="../files/lib/core/facets/kernel/instance_variables_rb.html">lib/core/facets/kernel/instance_variables.rb</a>
|
126
|
-
<a href="../files/lib/core/facets/kernel/instance_assign_rb.html">lib/core/facets/kernel/instance_assign.rb</a>
|
127
|
-
<a href="../files/lib/core/facets/kernel/with_rb.html">lib/core/facets/kernel/with.rb</a>
|
128
|
-
<a href="../files/lib/core/facets/kernel/d_rb.html">lib/core/facets/kernel/d.rb</a>
|
129
|
-
<a href="../files/lib/core/facets/kernel/__method___rb.html">lib/core/facets/kernel/__method__.rb</a>
|
130
|
-
<a href="../files/lib/core/facets/kernel/instance_class_rb.html">lib/core/facets/kernel/instance_class.rb</a>
|
131
|
-
<a href="../files/lib/core/facets/kernel/instance_exec_rb.html">lib/core/facets/kernel/instance_exec.rb</a>
|
132
91
|
<a href="../files/lib/core/facets/kernel/attr_singleton_rb.html">lib/core/facets/kernel/attr_singleton.rb</a>
|
133
92
|
<a href="../files/lib/core/facets/kernel/p_rb.html">lib/core/facets/kernel/p.rb</a>
|
134
93
|
<a href="../files/lib/core/facets/kernel/singleton_class_rb.html">lib/core/facets/kernel/singleton_class.rb</a>
|
@@ -159,124 +118,72 @@
|
|
159
118
|
|
160
119
|
<div class="sectiontitle">Methods</div>
|
161
120
|
<ul>
|
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="#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>
|
121
|
+
<li><a href="#M000343">Bit</a></li>
|
122
|
+
<li><a href="#M000383">__DIR__</a></li>
|
123
|
+
<li><a href="#M000373">__HERE__</a></li>
|
124
|
+
<li><a href="#M000344">as</a></li>
|
125
|
+
<li><a href="#M000348">ask</a></li>
|
126
|
+
<li><a href="#M000378">attr_singleton_accessor</a></li>
|
127
|
+
<li><a href="#M000376">attr_singleton_reader</a></li>
|
128
|
+
<li><a href="#M000377">attr_singleton_writer</a></li>
|
129
|
+
<li><a href="#M000395">blank?</a></li>
|
130
|
+
<li><a href="#M000342">bool?</a></li>
|
131
|
+
<li><a href="#M000394">callstack</a></li>
|
132
|
+
<li><a href="#M000356">complete</a></li>
|
133
|
+
<li><a href="#M000388">constant</a></li>
|
134
|
+
<li><a href="#M000374">d</a></li>
|
135
|
+
<li><a href="#M000359">deep_copy</a></li>
|
136
|
+
<li><a href="#M000337">demand</a></li>
|
137
|
+
<li><a href="#M000349">demo</a></li>
|
138
|
+
<li><a href="#M000335">eigenclass</a></li>
|
139
|
+
<li><a href="#M000365">enable_warnings</a></li>
|
140
|
+
<li><a href="#M000355">ergo</a></li>
|
141
|
+
<li><a href="#M000341">false?</a></li>
|
142
|
+
<li><a href="#M000338">future</a></li>
|
143
|
+
<li><a href="#M000393">in?</a></li>
|
144
|
+
<li><a href="#M000353">instance</a></li>
|
145
|
+
<li><a href="#M000371">instance_assign</a></li>
|
146
|
+
<li><a href="#M000375">instance_class</a></li>
|
147
|
+
<li><a href="#M000370">instance_values</a></li>
|
148
|
+
<li><a href="#M000369">instance_vars</a></li>
|
149
|
+
<li><a href="#M000390">load_local</a></li>
|
150
|
+
<li><a href="#M000350">maybe</a></li>
|
151
|
+
<li><a href="#M000330">meta_alias</a></li>
|
152
|
+
<li><a href="#M000333">meta_class</a></li>
|
153
|
+
<li><a href="#M000332">meta_def</a></li>
|
154
|
+
<li><a href="#M000331">meta_eval</a></li>
|
155
|
+
<li><a href="#M000334">metaclass</a></li>
|
156
|
+
<li><a href="#M000358">non_nil?</a></li>
|
157
|
+
<li><a href="#M000357">not_nil?</a></li>
|
158
|
+
<li><a href="#M000351">object_hexid</a></li>
|
159
|
+
<li><a href="#M000354">object_send</a></li>
|
160
|
+
<li><a href="#M000379">p</a></li>
|
161
|
+
<li><a href="#M000385">populate</a></li>
|
162
|
+
<li><a href="#M000336">promise</a></li>
|
163
|
+
<li><a href="#M000367">qua_class</a></li>
|
164
|
+
<li><a href="#M000366">require_all</a></li>
|
165
|
+
<li><a href="#M000389">require_local</a></li>
|
166
|
+
<li><a href="#M000368">resc</a></li>
|
167
|
+
<li><a href="#M000391">respond</a></li>
|
168
|
+
<li><a href="#M000392">respond_with_value</a></li>
|
169
|
+
<li><a href="#M000384">returning</a></li>
|
170
|
+
<li><a href="#M000345">send_as</a></li>
|
171
|
+
<li><a href="#M000386">set_from</a></li>
|
172
|
+
<li><a href="#M000361">silence_stderr</a></li>
|
173
|
+
<li><a href="#M000362">silence_stdout</a></li>
|
174
|
+
<li><a href="#M000360">silence_stream</a></li>
|
175
|
+
<li><a href="#M000364">silence_warnings</a></li>
|
176
|
+
<li><a href="#M000363">silently</a></li>
|
177
|
+
<li><a href="#M000381">singleton</a></li>
|
178
|
+
<li><a href="#M000380">singleton_class</a></li>
|
179
|
+
<li><a href="#M000347">super_as</a></li>
|
180
|
+
<li><a href="#M000346">super_method</a></li>
|
181
|
+
<li><a href="#M000352">tap</a></li>
|
182
|
+
<li><a href="#M000339">to_b</a></li>
|
183
|
+
<li><a href="#M000340">true?</a></li>
|
184
|
+
<li><a href="#M000382">try</a></li>
|
185
|
+
<li><a href="#M000387">val?</a></li>
|
186
|
+
<li><a href="#M000372">with</a></li>
|
280
187
|
</ul>
|
281
188
|
|
282
189
|
|
@@ -287,7 +194,7 @@
|
|
287
194
|
<div class="sectiontitle">Public Instance methods</div>
|
288
195
|
<div class="method">
|
289
196
|
<div class="title">
|
290
|
-
<a name="
|
197
|
+
<a name="M000343"></a><b>Bit</b>(n)
|
291
198
|
</div>
|
292
199
|
<div class="description">
|
293
200
|
<p>
|
@@ -307,8 +214,8 @@ This is equivalent to n-shift: "1 << n".
|
|
307
214
|
</pre>
|
308
215
|
</div>
|
309
216
|
<div class="sourcecode">
|
310
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
311
|
-
<div id="
|
217
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000343_source')" id="l_M000343_source">show source</a> ]</p>
|
218
|
+
<div id="M000343_source" class="dyn-source">
|
312
219
|
<pre>
|
313
220
|
<span class="ruby-comment cmt"># File lib/core/facets/bitmask.rb, line 100</span>
|
314
221
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Bit</span>(<span class="ruby-identifier">n</span>)
|
@@ -320,32 +227,7 @@ This is equivalent to n-shift: "1 << n".
|
|
320
227
|
</div>
|
321
228
|
<div class="method">
|
322
229
|
<div class="title">
|
323
|
-
<a name="
|
324
|
-
</div>
|
325
|
-
<div class="description">
|
326
|
-
<p>
|
327
|
-
Similar to <em>FILE</em> and <em>LINE</em>, <em>DIR</em> provides the
|
328
|
-
directory path to the current executing script.
|
329
|
-
</p>
|
330
|
-
<p>
|
331
|
-
CREDIT: Trans
|
332
|
-
</p>
|
333
|
-
</div>
|
334
|
-
<div class="sourcecode">
|
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">
|
337
|
-
<pre>
|
338
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/__dir__.rb, line 8</span>
|
339
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">__DIR__</span>
|
340
|
-
(<span class="ruby-regexp re">/^(.+)?:\d+/</span> <span class="ruby-operator">=~</span> <span class="ruby-identifier">caller</span>[<span class="ruby-value">0</span>]) <span class="ruby-operator">?</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-identifier">$1</span>) <span class="ruby-operator">:</span> <span class="ruby-keyword kw">nil</span>
|
341
|
-
<span class="ruby-keyword kw">end</span>
|
342
|
-
</pre>
|
343
|
-
</div>
|
344
|
-
</div>
|
345
|
-
</div>
|
346
|
-
<div class="method">
|
347
|
-
<div class="title">
|
348
|
-
<a name="M000653"></a><b>__DIR__</b>()
|
230
|
+
<a name="M000383"></a><b>__DIR__</b>()
|
349
231
|
</div>
|
350
232
|
<div class="description">
|
351
233
|
<p>
|
@@ -357,8 +239,8 @@ CREDIT: Trans
|
|
357
239
|
</p>
|
358
240
|
</div>
|
359
241
|
<div class="sourcecode">
|
360
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
361
|
-
<div id="
|
242
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000383_source')" id="l_M000383_source">show source</a> ]</p>
|
243
|
+
<div id="M000383_source" class="dyn-source">
|
362
244
|
<pre>
|
363
245
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/__dir__.rb, line 8</span>
|
364
246
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">__DIR__</span>
|
@@ -370,27 +252,11 @@ CREDIT: Trans
|
|
370
252
|
</div>
|
371
253
|
<div class="method">
|
372
254
|
<div class="title">
|
373
|
-
<a name="
|
374
|
-
</div>
|
375
|
-
<div class="sourcecode">
|
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">
|
378
|
-
<pre>
|
379
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/d.rb, line 3</span>
|
380
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">__HERE__</span>
|
381
|
-
<span class="ruby-node">"#{__FILE__}: #{__LINE__}"</span>
|
382
|
-
<span class="ruby-keyword kw">end</span>
|
383
|
-
</pre>
|
384
|
-
</div>
|
385
|
-
</div>
|
386
|
-
</div>
|
387
|
-
<div class="method">
|
388
|
-
<div class="title">
|
389
|
-
<a name="M000693"></a><b>__HERE__</b>()
|
255
|
+
<a name="M000373"></a><b>__HERE__</b>()
|
390
256
|
</div>
|
391
257
|
<div class="sourcecode">
|
392
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
393
|
-
<div id="
|
258
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000373_source')" id="l_M000373_source">show source</a> ]</p>
|
259
|
+
<div id="M000373_source" class="dyn-source">
|
394
260
|
<pre>
|
395
261
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/d.rb, line 3</span>
|
396
262
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">__HERE__</span>
|
@@ -402,50 +268,7 @@ CREDIT: Trans
|
|
402
268
|
</div>
|
403
269
|
<div class="method">
|
404
270
|
<div class="title">
|
405
|
-
<a name="
|
406
|
-
</div>
|
407
|
-
<div class="description">
|
408
|
-
<p>
|
409
|
-
Returns a As-functor that allows one to call any ancestor‘s method
|
410
|
-
directly of the given object.
|
411
|
-
</p>
|
412
|
-
<pre>
|
413
|
-
class A
|
414
|
-
def x ; 1 ; end
|
415
|
-
end
|
416
|
-
|
417
|
-
class B < A
|
418
|
-
def x ; 2 ; end
|
419
|
-
end
|
420
|
-
|
421
|
-
class C < B
|
422
|
-
def x ; as(A).x ; end
|
423
|
-
end
|
424
|
-
|
425
|
-
C.new.x #=> 1
|
426
|
-
</pre>
|
427
|
-
</div>
|
428
|
-
<div class="sourcecode">
|
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">
|
431
|
-
<pre>
|
432
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/as.rb, line 22</span>
|
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>)
|
434
|
-
<span class="ruby-ivar">@__as</span> <span class="ruby-operator">||=</span> {}
|
435
|
-
<span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">r</span> = <span class="ruby-ivar">@__as</span>[<span class="ruby-identifier">ancestor</span>]
|
436
|
-
<span class="ruby-identifier">r</span> = (<span class="ruby-ivar">@__as</span>[<span class="ruby-identifier">ancestor</span>] = <span class="ruby-constant">As</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-identifier">ancestor</span>))
|
437
|
-
<span class="ruby-keyword kw">end</span>
|
438
|
-
<span class="ruby-identifier">r</span>.<span class="ruby-identifier">instance_eval</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block_given?</span>
|
439
|
-
<span class="ruby-comment cmt">#yield(r) if block_given?</span>
|
440
|
-
<span class="ruby-identifier">r</span>
|
441
|
-
<span class="ruby-keyword kw">end</span>
|
442
|
-
</pre>
|
443
|
-
</div>
|
444
|
-
</div>
|
445
|
-
</div>
|
446
|
-
<div class="method">
|
447
|
-
<div class="title">
|
448
|
-
<a name="M000614"></a><b>as</b>(ancestor, &blk)
|
271
|
+
<a name="M000344"></a><b>as</b>(ancestor, &blk)
|
449
272
|
</div>
|
450
273
|
<div class="description">
|
451
274
|
<p>
|
@@ -469,8 +292,8 @@ directly of the given object.
|
|
469
292
|
</pre>
|
470
293
|
</div>
|
471
294
|
<div class="sourcecode">
|
472
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
473
|
-
<div id="
|
295
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000344_source')" id="l_M000344_source">show source</a> ]</p>
|
296
|
+
<div id="M000344_source" class="dyn-source">
|
474
297
|
<pre>
|
475
298
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/as.rb, line 22</span>
|
476
299
|
<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>)
|
@@ -488,50 +311,7 @@ directly of the given object.
|
|
488
311
|
</div>
|
489
312
|
<div class="method">
|
490
313
|
<div class="title">
|
491
|
-
<a name="
|
492
|
-
</div>
|
493
|
-
<div class="description">
|
494
|
-
<p>
|
495
|
-
Very simple convenience method to get a console reply.
|
496
|
-
</p>
|
497
|
-
<pre>
|
498
|
-
ask "Are you happy?", "Yn"
|
499
|
-
</pre>
|
500
|
-
<p>
|
501
|
-
On the command line one would see.
|
502
|
-
</p>
|
503
|
-
<pre>
|
504
|
-
$ Are you happy? [Yn]
|
505
|
-
</pre>
|
506
|
-
<p>
|
507
|
-
Responding:
|
508
|
-
</p>
|
509
|
-
<pre>
|
510
|
-
$ Are you happy? [Yn] Y <ENTER>
|
511
|
-
</pre>
|
512
|
-
<p>
|
513
|
-
The <a href="Kernel.html#M000618">ask</a> method would return
|
514
|
-
"Y".
|
515
|
-
</p>
|
516
|
-
</div>
|
517
|
-
<div class="sourcecode">
|
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">
|
520
|
-
<pre>
|
521
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/ask.rb, line 19</span>
|
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>)
|
523
|
-
<span class="ruby-identifier">$stdout</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"#{question}"</span>
|
524
|
-
<span class="ruby-identifier">$stdout</span> <span class="ruby-operator"><<</span> <span class="ruby-node">" [#{answers}] "</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">answers</span>
|
525
|
-
<span class="ruby-keyword kw">until</span> <span class="ruby-identifier">inp</span> = <span class="ruby-identifier">$stdin</span>.<span class="ruby-identifier">gets</span> ; <span class="ruby-identifier">sleep</span> <span class="ruby-value">1</span> ; <span class="ruby-keyword kw">end</span>
|
526
|
-
<span class="ruby-identifier">inp</span>.<span class="ruby-identifier">strip</span>
|
527
|
-
<span class="ruby-keyword kw">end</span>
|
528
|
-
</pre>
|
529
|
-
</div>
|
530
|
-
</div>
|
531
|
-
</div>
|
532
|
-
<div class="method">
|
533
|
-
<div class="title">
|
534
|
-
<a name="M000668"></a><b>ask</b>(question, answers=nil)
|
314
|
+
<a name="M000348"></a><b>ask</b>(question, answers=nil)
|
535
315
|
</div>
|
536
316
|
<div class="description">
|
537
317
|
<p>
|
@@ -553,13 +333,13 @@ Responding:
|
|
553
333
|
$ Are you happy? [Yn] Y <ENTER>
|
554
334
|
</pre>
|
555
335
|
<p>
|
556
|
-
The <a href="Kernel.html#
|
336
|
+
The <a href="Kernel.html#M000348">ask</a> method would return
|
557
337
|
"Y".
|
558
338
|
</p>
|
559
339
|
</div>
|
560
340
|
<div class="sourcecode">
|
561
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
562
|
-
<div id="
|
341
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000348_source')" id="l_M000348_source">show source</a> ]</p>
|
342
|
+
<div id="M000348_source" class="dyn-source">
|
563
343
|
<pre>
|
564
344
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/ask.rb, line 19</span>
|
565
345
|
<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>)
|
@@ -574,49 +354,12 @@ The <a href="Kernel.html#M000618">ask</a> method would return
|
|
574
354
|
</div>
|
575
355
|
<div class="method">
|
576
356
|
<div class="title">
|
577
|
-
<a name="
|
578
|
-
</div>
|
579
|
-
<div class="description">
|
580
|
-
<p>
|
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>
|
583
|
-
attr_accessors for each.
|
584
|
-
</p>
|
585
|
-
<pre>
|
586
|
-
attr_singleton_accessor { :x => 1, :y => 2 }
|
587
|
-
@x #=> 1
|
588
|
-
@y #=> 2
|
589
|
-
self.x = 3
|
590
|
-
self.y = 4
|
591
|
-
self.x #=> 3
|
592
|
-
self.y #=> 4
|
593
|
-
|
594
|
-
CREDIT: Trans
|
595
|
-
</pre>
|
596
|
-
</div>
|
597
|
-
<div class="sourcecode">
|
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">
|
600
|
-
<pre>
|
601
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/attr_singleton.rb, line 54</span>
|
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>)
|
603
|
-
<span class="ruby-comment cmt">#h, a = *args.partition{|a| Hash===a}</span>
|
604
|
-
(<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>).<span class="ruby-identifier">send</span>( <span class="ruby-identifier">:attr_accessor</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span> )
|
605
|
-
<span class="ruby-comment cmt">#(class << self ; self ; end).send( :attr_accessor, *h.keys )</span>
|
606
|
-
<span class="ruby-comment cmt">#h.each { |k,v| instance_variable_set("@#{k}", v) }</span>
|
607
|
-
<span class="ruby-keyword kw">end</span>
|
608
|
-
</pre>
|
609
|
-
</div>
|
610
|
-
</div>
|
611
|
-
</div>
|
612
|
-
<div class="method">
|
613
|
-
<div class="title">
|
614
|
-
<a name="M000699"></a><b>attr_singleton_accessor</b>(*args)
|
357
|
+
<a name="M000378"></a><b>attr_singleton_accessor</b>(*args)
|
615
358
|
</div>
|
616
359
|
<div class="description">
|
617
360
|
<p>
|
618
|
-
Takes an array or hash <a href="Kernel.html#
|
619
|
-
values and creates <a href="Kernel.html#
|
361
|
+
Takes an array or hash <a href="Kernel.html#M000372">with</a> default
|
362
|
+
values and creates <a href="Kernel.html#M000381">singleton</a>
|
620
363
|
attr_accessors for each.
|
621
364
|
</p>
|
622
365
|
<pre>
|
@@ -632,8 +375,8 @@ attr_accessors for each.
|
|
632
375
|
</pre>
|
633
376
|
</div>
|
634
377
|
<div class="sourcecode">
|
635
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
636
|
-
<div id="
|
378
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000378_source')" id="l_M000378_source">show source</a> ]</p>
|
379
|
+
<div id="M000378_source" class="dyn-source">
|
637
380
|
<pre>
|
638
381
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/attr_singleton.rb, line 54</span>
|
639
382
|
<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>)
|
@@ -648,47 +391,12 @@ attr_accessors for each.
|
|
648
391
|
</div>
|
649
392
|
<div class="method">
|
650
393
|
<div class="title">
|
651
|
-
<a name="
|
652
|
-
</div>
|
653
|
-
<div class="description">
|
654
|
-
<p>
|
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
|
657
|
-
for each.
|
658
|
-
</p>
|
659
|
-
<pre>
|
660
|
-
attr_singleton_reader {:x => 1, :y => 2}
|
661
|
-
@x #=> 1
|
662
|
-
@y #=> 2
|
663
|
-
self.x #=> 1
|
664
|
-
self.y #=> 2
|
665
|
-
|
666
|
-
CREDIT: Trans
|
667
|
-
</pre>
|
668
|
-
</div>
|
669
|
-
<div class="sourcecode">
|
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">
|
672
|
-
<pre>
|
673
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/attr_singleton.rb, line 14</span>
|
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>)
|
675
|
-
<span class="ruby-comment cmt">#h, a = *args.partition{|a| Hash===a}</span>
|
676
|
-
(<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>).<span class="ruby-identifier">send</span>( <span class="ruby-identifier">:attr_reader</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span> )
|
677
|
-
<span class="ruby-comment cmt">#(class << self ; self ; end).send( :attr_reader, *h.keys )</span>
|
678
|
-
<span class="ruby-comment cmt">#h.each { |k,v| instance_variable_set("@#{k}", v) }</span>
|
679
|
-
<span class="ruby-keyword kw">end</span>
|
680
|
-
</pre>
|
681
|
-
</div>
|
682
|
-
</div>
|
683
|
-
</div>
|
684
|
-
<div class="method">
|
685
|
-
<div class="title">
|
686
|
-
<a name="M000647"></a><b>attr_singleton_reader</b>(*args)
|
394
|
+
<a name="M000376"></a><b>attr_singleton_reader</b>(*args)
|
687
395
|
</div>
|
688
396
|
<div class="description">
|
689
397
|
<p>
|
690
|
-
Takes an array or a hash <a href="Kernel.html#
|
691
|
-
values and creates <a href="Kernel.html#
|
398
|
+
Takes an array or a hash <a href="Kernel.html#M000372">with</a> default
|
399
|
+
values and creates <a href="Kernel.html#M000381">singleton</a> attr_readers
|
692
400
|
for each.
|
693
401
|
</p>
|
694
402
|
<pre>
|
@@ -702,8 +410,8 @@ for each.
|
|
702
410
|
</pre>
|
703
411
|
</div>
|
704
412
|
<div class="sourcecode">
|
705
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
706
|
-
<div id="
|
413
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000376_source')" id="l_M000376_source">show source</a> ]</p>
|
414
|
+
<div id="M000376_source" class="dyn-source">
|
707
415
|
<pre>
|
708
416
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/attr_singleton.rb, line 14</span>
|
709
417
|
<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>)
|
@@ -718,49 +426,12 @@ for each.
|
|
718
426
|
</div>
|
719
427
|
<div class="method">
|
720
428
|
<div class="title">
|
721
|
-
<a name="
|
722
|
-
</div>
|
723
|
-
<div class="description">
|
724
|
-
<p>
|
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
|
727
|
-
for each.
|
728
|
-
</p>
|
729
|
-
<pre>
|
730
|
-
attr_singleton_writer { :x => 1, :y => 2 }
|
731
|
-
@x #=> 1
|
732
|
-
@y #=> 2
|
733
|
-
self.x = 3
|
734
|
-
self.y = 4
|
735
|
-
@x #=> 3
|
736
|
-
@y #=> 4
|
737
|
-
|
738
|
-
CREDIT: Trans
|
739
|
-
</pre>
|
740
|
-
</div>
|
741
|
-
<div class="sourcecode">
|
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">
|
744
|
-
<pre>
|
745
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/attr_singleton.rb, line 34</span>
|
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>)
|
747
|
-
<span class="ruby-comment cmt">#h, a = *args.partition{|a| Hash===a}</span>
|
748
|
-
(<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>).<span class="ruby-identifier">send</span>( <span class="ruby-identifier">:attr_writer</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span> )
|
749
|
-
<span class="ruby-comment cmt">#(class << self ; self ; end).send( :attr_writer, *h.keys )</span>
|
750
|
-
<span class="ruby-comment cmt">#h.each { |k,v| instance_variable_set("@#{k}", v) }</span>
|
751
|
-
<span class="ruby-keyword kw">end</span>
|
752
|
-
</pre>
|
753
|
-
</div>
|
754
|
-
</div>
|
755
|
-
</div>
|
756
|
-
<div class="method">
|
757
|
-
<div class="title">
|
758
|
-
<a name="M000648"></a><b>attr_singleton_writer</b>(*args)
|
429
|
+
<a name="M000377"></a><b>attr_singleton_writer</b>(*args)
|
759
430
|
</div>
|
760
431
|
<div class="description">
|
761
432
|
<p>
|
762
|
-
Takes an array or a hash <a href="Kernel.html#
|
763
|
-
values and creates <a href="Kernel.html#
|
433
|
+
Takes an array or a hash <a href="Kernel.html#M000372">with</a> default
|
434
|
+
values and creates <a href="Kernel.html#M000381">singleton</a> attr_writers
|
764
435
|
for each.
|
765
436
|
</p>
|
766
437
|
<pre>
|
@@ -776,8 +447,8 @@ for each.
|
|
776
447
|
</pre>
|
777
448
|
</div>
|
778
449
|
<div class="sourcecode">
|
779
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
780
|
-
<div id="
|
450
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000377_source')" id="l_M000377_source">show source</a> ]</p>
|
451
|
+
<div id="M000377_source" class="dyn-source">
|
781
452
|
<pre>
|
782
453
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/attr_singleton.rb, line 34</span>
|
783
454
|
<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>)
|
@@ -792,7 +463,7 @@ for each.
|
|
792
463
|
</div>
|
793
464
|
<div class="method">
|
794
465
|
<div class="title">
|
795
|
-
<a name="
|
466
|
+
<a name="M000395"></a><b>blank?</b>()
|
796
467
|
</div>
|
797
468
|
<div class="description">
|
798
469
|
<p>
|
@@ -813,8 +484,8 @@ to
|
|
813
484
|
</pre>
|
814
485
|
</div>
|
815
486
|
<div class="sourcecode">
|
816
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
817
|
-
<div id="
|
487
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000395_source')" id="l_M000395_source">show source</a> ]</p>
|
488
|
+
<div id="M000395_source" class="dyn-source">
|
818
489
|
<pre>
|
819
490
|
<span class="ruby-comment cmt"># File lib/core/facets/blank.rb, line 14</span>
|
820
491
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">blank?</span>
|
@@ -826,7 +497,7 @@ to
|
|
826
497
|
</div>
|
827
498
|
<div class="method">
|
828
499
|
<div class="title">
|
829
|
-
<a name="
|
500
|
+
<a name="M000342"></a><b>bool?</b>()
|
830
501
|
</div>
|
831
502
|
<div class="description">
|
832
503
|
<p>
|
@@ -840,8 +511,8 @@ or <a href="FalseClass.html">FalseClass</a>, otherwise false.
|
|
840
511
|
</pre>
|
841
512
|
</div>
|
842
513
|
<div class="sourcecode">
|
843
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
844
|
-
<div id="
|
514
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000342_source')" id="l_M000342_source">show source</a> ]</p>
|
515
|
+
<div id="M000342_source" class="dyn-source">
|
845
516
|
<pre>
|
846
517
|
<span class="ruby-comment cmt"># File lib/core/facets/boolean.rb, line 127</span>
|
847
518
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bool?</span>
|
@@ -853,12 +524,12 @@ or <a href="FalseClass.html">FalseClass</a>, otherwise false.
|
|
853
524
|
</div>
|
854
525
|
<div class="method">
|
855
526
|
<div class="title">
|
856
|
-
<a name="
|
527
|
+
<a name="M000394"></a><b>callstack</b>( level = 1 )
|
857
528
|
</div>
|
858
529
|
<div class="description">
|
859
530
|
<p>
|
860
531
|
Parse a caller string and break it into its components, <a
|
861
|
-
href="Kernel.html#
|
532
|
+
href="Kernel.html#M000384">returning</a> an array. Returns:
|
862
533
|
</p>
|
863
534
|
<ul>
|
864
535
|
<li>file (<a href="String.html">String</a>)
|
@@ -897,8 +568,8 @@ be indeterminate.
|
|
897
568
|
</pre>
|
898
569
|
</div>
|
899
570
|
<div class="sourcecode">
|
900
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
901
|
-
<div id="
|
571
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000394_source')" id="l_M000394_source">show source</a> ]</p>
|
572
|
+
<div id="M000394_source" class="dyn-source">
|
902
573
|
<pre>
|
903
574
|
<span class="ruby-comment cmt"># File lib/core/facets/callstack.rb, line 27</span>
|
904
575
|
<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> )
|
@@ -919,7 +590,7 @@ be indeterminate.
|
|
919
590
|
</div>
|
920
591
|
<div class="method">
|
921
592
|
<div class="title">
|
922
|
-
<a name="
|
593
|
+
<a name="M000356"></a><b>complete</b>() {|| ...}
|
923
594
|
</div>
|
924
595
|
<div class="description">
|
925
596
|
<p>
|
@@ -936,8 +607,8 @@ Repeat loop until it yeilds false or nil.
|
|
936
607
|
</pre>
|
937
608
|
</div>
|
938
609
|
<div class="sourcecode">
|
939
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
940
|
-
<div id="
|
610
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000356_source')" id="l_M000356_source">show source</a> ]</p>
|
611
|
+
<div id="M000356_source" class="dyn-source">
|
941
612
|
<pre>
|
942
613
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/complete.rb, line 13</span>
|
943
614
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">complete</span>
|
@@ -949,83 +620,16 @@ Repeat loop until it yeilds false or nil.
|
|
949
620
|
</div>
|
950
621
|
<div class="method">
|
951
622
|
<div class="title">
|
952
|
-
<a name="
|
623
|
+
<a name="M000388"></a><b>constant</b>(const)
|
953
624
|
</div>
|
954
625
|
<div class="description">
|
955
626
|
<p>
|
956
|
-
|
627
|
+
This is similar to +Module#const_get+ but is accessible at all levels, and,
|
628
|
+
unlike <tt>const_get</tt>, can handle module hierarchy.
|
957
629
|
</p>
|
958
630
|
<pre>
|
959
|
-
|
960
|
-
|
961
|
-
b << a.pop
|
962
|
-
end
|
963
|
-
b #=> [3, 2, 1, nil]
|
964
|
-
|
965
|
-
CREDIT: Trans
|
966
|
-
</pre>
|
967
|
-
</div>
|
968
|
-
<div class="sourcecode">
|
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">
|
971
|
-
<pre>
|
972
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/complete.rb, line 13</span>
|
973
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">complete</span>
|
974
|
-
<span class="ruby-identifier">loop</span> { <span class="ruby-keyword kw">break</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-keyword kw">yield</span> }
|
975
|
-
<span class="ruby-keyword kw">end</span>
|
976
|
-
</pre>
|
977
|
-
</div>
|
978
|
-
</div>
|
979
|
-
</div>
|
980
|
-
<div class="method">
|
981
|
-
<div class="title">
|
982
|
-
<a name="M000708"></a><b>constant</b>(const)
|
983
|
-
</div>
|
984
|
-
<div class="description">
|
985
|
-
<p>
|
986
|
-
This is similar to +Module#const_get+ but is accessible at all levels, and,
|
987
|
-
unlike <tt>const_get</tt>, can handle module hierarchy.
|
988
|
-
</p>
|
989
|
-
<pre>
|
990
|
-
constant("Fixnum") # -> Fixnum
|
991
|
-
constant(:Fixnum) # -> Fixnum
|
992
|
-
|
993
|
-
constant("Process::Sys") # -> Process::Sys
|
994
|
-
constant("Regexp::MULTILINE") # -> 4
|
995
|
-
|
996
|
-
require 'test/unit'
|
997
|
-
Test.constant("Unit::Assertions") # -> Test::Unit::Assertions
|
998
|
-
Test.constant("::Test::Unit") # -> Test::Unit
|
999
|
-
|
1000
|
-
CREDIT: Trans
|
1001
|
-
</pre>
|
1002
|
-
</div>
|
1003
|
-
<div class="sourcecode">
|
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">
|
1006
|
-
<pre>
|
1007
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/constant.rb, line 18</span>
|
1008
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">constant</span>(<span class="ruby-identifier">const</span>)
|
1009
|
-
<span class="ruby-identifier">const</span> = <span class="ruby-identifier">const</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">dup</span>
|
1010
|
-
<span class="ruby-identifier">base</span> = <span class="ruby-identifier">const</span>.<span class="ruby-identifier">sub!</span>(<span class="ruby-regexp re">/^::/</span>, <span class="ruby-value str">''</span>) <span class="ruby-operator">?</span> <span class="ruby-constant">Object</span> <span class="ruby-operator">:</span> ( <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Module</span>) <span class="ruby-operator">?</span> <span class="ruby-keyword kw">self</span> <span class="ruby-operator">:</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span> )
|
1011
|
-
<span class="ruby-identifier">const</span>.<span class="ruby-identifier">split</span>(<span class="ruby-regexp re">/::/</span>).<span class="ruby-identifier">inject</span>(<span class="ruby-identifier">base</span>){ <span class="ruby-operator">|</span><span class="ruby-identifier">mod</span>, <span class="ruby-identifier">name</span><span class="ruby-operator">|</span> <span class="ruby-identifier">mod</span>.<span class="ruby-identifier">const_get</span>(<span class="ruby-identifier">name</span>) }
|
1012
|
-
<span class="ruby-keyword kw">end</span>
|
1013
|
-
</pre>
|
1014
|
-
</div>
|
1015
|
-
</div>
|
1016
|
-
</div>
|
1017
|
-
<div class="method">
|
1018
|
-
<div class="title">
|
1019
|
-
<a name="M000658"></a><b>constant</b>(const)
|
1020
|
-
</div>
|
1021
|
-
<div class="description">
|
1022
|
-
<p>
|
1023
|
-
This is similar to +Module#const_get+ but is accessible at all levels, and,
|
1024
|
-
unlike <tt>const_get</tt>, can handle module hierarchy.
|
1025
|
-
</p>
|
1026
|
-
<pre>
|
1027
|
-
constant("Fixnum") # -> Fixnum
|
1028
|
-
constant(:Fixnum) # -> Fixnum
|
631
|
+
constant("Fixnum") # -> Fixnum
|
632
|
+
constant(:Fixnum) # -> Fixnum
|
1029
633
|
|
1030
634
|
constant("Process::Sys") # -> Process::Sys
|
1031
635
|
constant("Regexp::MULTILINE") # -> 4
|
@@ -1038,8 +642,8 @@ unlike <tt>const_get</tt>, can handle module hierarchy.
|
|
1038
642
|
</pre>
|
1039
643
|
</div>
|
1040
644
|
<div class="sourcecode">
|
1041
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1042
|
-
<div id="
|
645
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000388_source')" id="l_M000388_source">show source</a> ]</p>
|
646
|
+
<div id="M000388_source" class="dyn-source">
|
1043
647
|
<pre>
|
1044
648
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/constant.rb, line 18</span>
|
1045
649
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">constant</span>(<span class="ruby-identifier">const</span>)
|
@@ -1053,50 +657,11 @@ unlike <tt>const_get</tt>, can handle module hierarchy.
|
|
1053
657
|
</div>
|
1054
658
|
<div class="method">
|
1055
659
|
<div class="title">
|
1056
|
-
<a name="
|
1057
|
-
</div>
|
1058
|
-
<div class="description">
|
1059
|
-
<p>
|
1060
|
-
Like <a href="Kernel.html#M000650">p</a> but gives file and line number.
|
1061
|
-
</p>
|
1062
|
-
<pre>
|
1063
|
-
d("hi")
|
1064
|
-
</pre>
|
1065
|
-
<p>
|
1066
|
-
produces
|
1067
|
-
</p>
|
1068
|
-
<pre>
|
1069
|
-
/home/dave/projects/foo.rb, 38
|
1070
|
-
"hi"
|
1071
|
-
</pre>
|
1072
|
-
<p>
|
1073
|
-
TODO: This is borderline "prime". Keep here?
|
1074
|
-
</p>
|
1075
|
-
<pre>
|
1076
|
-
Another copy of it exits in dtools.rb
|
1077
|
-
</pre>
|
1078
|
-
</div>
|
1079
|
-
<div class="sourcecode">
|
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">
|
1082
|
-
<pre>
|
1083
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/d.rb, line 19</span>
|
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>)
|
1085
|
-
<span class="ruby-identifier">puts</span> <span class="ruby-node">"#{__FILE__}, #{__LINE__}"</span>
|
1086
|
-
<span class="ruby-identifier">x</span>.<span class="ruby-identifier">each</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">e</span><span class="ruby-operator">|</span> <span class="ruby-identifier">puts</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">inspect</span> } <span class="ruby-comment cmt">#p(*x)</span>
|
1087
|
-
<span class="ruby-identifier">x</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">></span> <span class="ruby-value">1</span> <span class="ruby-operator">?</span> <span class="ruby-identifier">x</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">x</span>.<span class="ruby-identifier">last</span> <span class="ruby-comment cmt">#x.last</span>
|
1088
|
-
<span class="ruby-keyword kw">end</span>
|
1089
|
-
</pre>
|
1090
|
-
</div>
|
1091
|
-
</div>
|
1092
|
-
</div>
|
1093
|
-
<div class="method">
|
1094
|
-
<div class="title">
|
1095
|
-
<a name="M000694"></a><b>d</b>(*x)
|
660
|
+
<a name="M000374"></a><b>d</b>(*x)
|
1096
661
|
</div>
|
1097
662
|
<div class="description">
|
1098
663
|
<p>
|
1099
|
-
Like <a href="Kernel.html#
|
664
|
+
Like <a href="Kernel.html#M000379">p</a> but gives file and line number.
|
1100
665
|
</p>
|
1101
666
|
<pre>
|
1102
667
|
d("hi")
|
@@ -1116,8 +681,8 @@ TODO: This is borderline "prime". Keep here?
|
|
1116
681
|
</pre>
|
1117
682
|
</div>
|
1118
683
|
<div class="sourcecode">
|
1119
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1120
|
-
<div id="
|
684
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000374_source')" id="l_M000374_source">show source</a> ]</p>
|
685
|
+
<div id="M000374_source" class="dyn-source">
|
1121
686
|
<pre>
|
1122
687
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/d.rb, line 19</span>
|
1123
688
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">d</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">x</span>)
|
@@ -1131,45 +696,20 @@ TODO: This is borderline "prime". Keep here?
|
|
1131
696
|
</div>
|
1132
697
|
<div class="method">
|
1133
698
|
<div class="title">
|
1134
|
-
<a name="
|
1135
|
-
</div>
|
1136
|
-
<div class="description">
|
1137
|
-
<p>
|
1138
|
-
Anything that can be marshaled can be copied in totality. This is also
|
1139
|
-
commonly called a <a href="Kernel.html#M000630">deep_copy</a>.
|
1140
|
-
</p>
|
1141
|
-
<pre>
|
1142
|
-
"ABC".copy #=> "ABC"
|
1143
|
-
</pre>
|
1144
|
-
</div>
|
1145
|
-
<div class="sourcecode">
|
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">
|
1148
|
-
<pre>
|
1149
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/deep_copy.rb, line 8</span>
|
1150
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">deep_copy</span>
|
1151
|
-
<span class="ruby-constant">Marshal</span><span class="ruby-operator">::</span><span class="ruby-identifier">load</span>(<span class="ruby-constant">Marshal</span><span class="ruby-operator">::</span><span class="ruby-identifier">dump</span>(<span class="ruby-keyword kw">self</span>))
|
1152
|
-
<span class="ruby-keyword kw">end</span>
|
1153
|
-
</pre>
|
1154
|
-
</div>
|
1155
|
-
</div>
|
1156
|
-
</div>
|
1157
|
-
<div class="method">
|
1158
|
-
<div class="title">
|
1159
|
-
<a name="M000630"></a><b>deep_copy</b>()
|
699
|
+
<a name="M000359"></a><b>deep_copy</b>()
|
1160
700
|
</div>
|
1161
701
|
<div class="description">
|
1162
702
|
<p>
|
1163
703
|
Anything that can be marshaled can be copied in totality. This is also
|
1164
|
-
commonly called a <a href="Kernel.html#
|
704
|
+
commonly called a <a href="Kernel.html#M000359">deep_copy</a>.
|
1165
705
|
</p>
|
1166
706
|
<pre>
|
1167
707
|
"ABC".copy #=> "ABC"
|
1168
708
|
</pre>
|
1169
709
|
</div>
|
1170
710
|
<div class="sourcecode">
|
1171
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1172
|
-
<div id="
|
711
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000359_source')" id="l_M000359_source">show source</a> ]</p>
|
712
|
+
<div id="M000359_source" class="dyn-source">
|
1173
713
|
<pre>
|
1174
714
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/deep_copy.rb, line 8</span>
|
1175
715
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">deep_copy</span>
|
@@ -1181,24 +721,24 @@ commonly called a <a href="Kernel.html#M000630">deep_copy</a>.
|
|
1181
721
|
</div>
|
1182
722
|
<div class="method">
|
1183
723
|
<div class="title">
|
1184
|
-
<a name="
|
724
|
+
<a name="M000337"></a><b>demand</b>( promise )
|
1185
725
|
</div>
|
1186
726
|
<div class="description">
|
1187
727
|
<p>
|
1188
|
-
Forces the result of a <a href="Kernel.html#
|
728
|
+
Forces the result of a <a href="Kernel.html#M000336">promise</a> to be
|
1189
729
|
computed (if necessary) and returns the bare result object. Once evaluated,
|
1190
|
-
the result of the <a href="Kernel.html#
|
730
|
+
the result of the <a href="Kernel.html#M000336">promise</a> will be cached.
|
1191
731
|
Nested promises will be evaluated together, until the first non-<a
|
1192
|
-
href="Kernel.html#
|
732
|
+
href="Kernel.html#M000336">promise</a> result.
|
1193
733
|
</p>
|
1194
734
|
<p>
|
1195
735
|
If called on a value that is not a <a
|
1196
|
-
href="Kernel.html#
|
736
|
+
href="Kernel.html#M000336">promise</a>, it will simply return it.
|
1197
737
|
</p>
|
1198
738
|
</div>
|
1199
739
|
<div class="sourcecode">
|
1200
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1201
|
-
<div id="
|
740
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000337_source')" id="l_M000337_source">show source</a> ]</p>
|
741
|
+
<div id="M000337_source" class="dyn-source">
|
1202
742
|
<pre>
|
1203
743
|
<span class="ruby-comment cmt"># File lib/core/facets/lazy.rb, line 219</span>
|
1204
744
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">demand</span>( <span class="ruby-identifier">promise</span> )
|
@@ -1214,45 +754,7 @@ href="Kernel.html#M000606">promise</a>, it will simply return it.
|
|
1214
754
|
</div>
|
1215
755
|
<div class="method">
|
1216
756
|
<div class="title">
|
1217
|
-
<a name="
|
1218
|
-
</div>
|
1219
|
-
<div class="description">
|
1220
|
-
<p>
|
1221
|
-
For debugging and showing examples. Currently this takes an argument of a
|
1222
|
-
string in a block.
|
1223
|
-
</p>
|
1224
|
-
<pre>
|
1225
|
-
demo {%{ a = [1,2,3] }}
|
1226
|
-
demo {%{ a.slice(1,2) }}
|
1227
|
-
demo {%{ a.map { |x| x**3 } }}
|
1228
|
-
</pre>
|
1229
|
-
<p>
|
1230
|
-
Produces:
|
1231
|
-
</p>
|
1232
|
-
<pre>
|
1233
|
-
a = [1,2,3] #=> [1, 2, 3]
|
1234
|
-
a.slice(1,2) #=> [2, 3]
|
1235
|
-
a.map { |x| x**3 } #=> [1, 8, 27]
|
1236
|
-
|
1237
|
-
TODO: Is there a way to do this without the eval string in block?
|
1238
|
-
Preferably just a block and no string.
|
1239
|
-
</pre>
|
1240
|
-
</div>
|
1241
|
-
<div class="sourcecode">
|
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">
|
1244
|
-
<pre>
|
1245
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/demo.rb, line 19</span>
|
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>)
|
1247
|
-
<span class="ruby-identifier">out</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">sprintf</span>(<span class="ruby-value str">"%-25s#=> %s\n"</span>, <span class="ruby-identifier">expr</span> = <span class="ruby-identifier">block</span>.<span class="ruby-identifier">call</span>, <span class="ruby-identifier">eval</span>(<span class="ruby-identifier">expr</span>, <span class="ruby-identifier">block</span>.<span class="ruby-identifier">binding</span>).<span class="ruby-identifier">inspect</span>)
|
1248
|
-
<span class="ruby-keyword kw">end</span>
|
1249
|
-
</pre>
|
1250
|
-
</div>
|
1251
|
-
</div>
|
1252
|
-
</div>
|
1253
|
-
<div class="method">
|
1254
|
-
<div class="title">
|
1255
|
-
<a name="M000620"></a><b>demo</b>(out=$stdout,&block)
|
757
|
+
<a name="M000349"></a><b>demo</b>(out=$stdout,&block)
|
1256
758
|
</div>
|
1257
759
|
<div class="description">
|
1258
760
|
<p>
|
@@ -1277,8 +779,8 @@ Produces:
|
|
1277
779
|
</pre>
|
1278
780
|
</div>
|
1279
781
|
<div class="sourcecode">
|
1280
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1281
|
-
<div id="
|
782
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000349_source')" id="l_M000349_source">show source</a> ]</p>
|
783
|
+
<div id="M000349_source" class="dyn-source">
|
1282
784
|
<pre>
|
1283
785
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/demo.rb, line 19</span>
|
1284
786
|
<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>)
|
@@ -1290,13 +792,13 @@ Produces:
|
|
1290
792
|
</div>
|
1291
793
|
<div class="method">
|
1292
794
|
<div class="title">
|
1293
|
-
<a name="
|
795
|
+
<a name="M000335"></a><b>eigenclass</b>()
|
1294
796
|
</div>
|
1295
797
|
<div class="description">
|
1296
798
|
<p>
|
1297
799
|
During this trying time when no one can get their techie catchwords to
|
1298
800
|
stick to the refrigerator no matter how hard they slap it # <a
|
1299
|
-
href="Kernel.html#
|
801
|
+
href="Kernel.html#M000372">with</a> the enchanted magnetic spatula, it’s
|
1300
802
|
good to know that the contrived phrases really do fly, graceful and
|
1301
803
|
unclasped and bearing north toward chilled shrimp. I know what my
|
1302
804
|
Hallowe’en pumpkin is going to say.
|
@@ -1308,10 +810,10 @@ Hallowe’en pumpkin is going to say.
|
|
1308
810
|
</pre>
|
1309
811
|
</div>
|
1310
812
|
<div class="sourcecode">
|
1311
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1312
|
-
<div id="
|
813
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000335_source')" id="l_M000335_source">show source</a> ]</p>
|
814
|
+
<div id="M000335_source" class="dyn-source">
|
1313
815
|
<pre>
|
1314
|
-
<span class="ruby-comment cmt"># File lib/core/facets/metaid.rb, line
|
816
|
+
<span class="ruby-comment cmt"># File lib/core/facets/metaid.rb, line 69</span>
|
1315
817
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">eigenclass</span>
|
1316
818
|
(<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>)
|
1317
819
|
<span class="ruby-keyword kw">end</span>
|
@@ -1321,35 +823,7 @@ Hallowe’en pumpkin is going to say.
|
|
1321
823
|
</div>
|
1322
824
|
<div class="method">
|
1323
825
|
<div class="title">
|
1324
|
-
<a name="
|
1325
|
-
</div>
|
1326
|
-
<div class="description">
|
1327
|
-
<p>
|
1328
|
-
Sets $VERBOSE to true for the duration of the block and back to its
|
1329
|
-
original value afterwards.
|
1330
|
-
</p>
|
1331
|
-
<pre>
|
1332
|
-
CREDIT: David Heinemeier Hansson
|
1333
|
-
</pre>
|
1334
|
-
</div>
|
1335
|
-
<div class="sourcecode">
|
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">
|
1338
|
-
<pre>
|
1339
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/silence.rb, line 67</span>
|
1340
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">enable_warnings</span>
|
1341
|
-
<span class="ruby-identifier">old_verbose</span>, <span class="ruby-identifier">$VERBOSE</span> = <span class="ruby-identifier">$VERBOSE</span>, <span class="ruby-keyword kw">true</span>
|
1342
|
-
<span class="ruby-keyword kw">yield</span>
|
1343
|
-
<span class="ruby-keyword kw">ensure</span>
|
1344
|
-
<span class="ruby-identifier">$VERBOSE</span> = <span class="ruby-identifier">old_verbose</span>
|
1345
|
-
<span class="ruby-keyword kw">end</span>
|
1346
|
-
</pre>
|
1347
|
-
</div>
|
1348
|
-
</div>
|
1349
|
-
</div>
|
1350
|
-
<div class="method">
|
1351
|
-
<div class="title">
|
1352
|
-
<a name="M000686"></a><b>enable_warnings</b>() {|| ...}
|
826
|
+
<a name="M000365"></a><b>enable_warnings</b>() {|| ...}
|
1353
827
|
</div>
|
1354
828
|
<div class="description">
|
1355
829
|
<p>
|
@@ -1361,8 +835,8 @@ original value afterwards.
|
|
1361
835
|
</pre>
|
1362
836
|
</div>
|
1363
837
|
<div class="sourcecode">
|
1364
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1365
|
-
<div id="
|
838
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000365_source')" id="l_M000365_source">show source</a> ]</p>
|
839
|
+
<div id="M000365_source" class="dyn-source">
|
1366
840
|
<pre>
|
1367
841
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/silence.rb, line 67</span>
|
1368
842
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">enable_warnings</span>
|
@@ -1377,46 +851,7 @@ original value afterwards.
|
|
1377
851
|
</div>
|
1378
852
|
<div class="method">
|
1379
853
|
<div class="title">
|
1380
|
-
<a name="
|
1381
|
-
</div>
|
1382
|
-
<div class="description">
|
1383
|
-
<p>
|
1384
|
-
Yield self -or- return self.
|
1385
|
-
</p>
|
1386
|
-
<pre>
|
1387
|
-
"a".ergo.upcase #=> "A"
|
1388
|
-
nil.ergo.foobar #=> nil
|
1389
|
-
|
1390
|
-
"a".ergo{ |o| o.upcase } #=> "A"
|
1391
|
-
nil.ergo{ |o| o.foobar } #=> nil
|
1392
|
-
</pre>
|
1393
|
-
<p>
|
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.
|
1396
|
-
</p>
|
1397
|
-
<pre>
|
1398
|
-
CREDIT: Daniel DeLorme
|
1399
|
-
</pre>
|
1400
|
-
</div>
|
1401
|
-
<div class="sourcecode">
|
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">
|
1404
|
-
<pre>
|
1405
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/ergo.rb, line 17</span>
|
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>
|
1407
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block_given?</span>
|
1408
|
-
<span class="ruby-identifier">b</span>.<span class="ruby-identifier">arity</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span> <span class="ruby-operator">?</span> <span class="ruby-keyword kw">yield</span>(<span class="ruby-keyword kw">self</span>) <span class="ruby-operator">:</span> <span class="ruby-identifier">instance_eval</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">b</span>)
|
1409
|
-
<span class="ruby-keyword kw">else</span>
|
1410
|
-
<span class="ruby-keyword kw">self</span>
|
1411
|
-
<span class="ruby-keyword kw">end</span>
|
1412
|
-
<span class="ruby-keyword kw">end</span>
|
1413
|
-
</pre>
|
1414
|
-
</div>
|
1415
|
-
</div>
|
1416
|
-
</div>
|
1417
|
-
<div class="method">
|
1418
|
-
<div class="title">
|
1419
|
-
<a name="M000626"></a><b>ergo</b>() {|self| ...}
|
854
|
+
<a name="M000355"></a><b>ergo</b>() {|self| ...}
|
1420
855
|
</div>
|
1421
856
|
<div class="description">
|
1422
857
|
<p>
|
@@ -1430,16 +865,16 @@ Yield self -or- return self.
|
|
1430
865
|
nil.ergo{ |o| o.foobar } #=> nil
|
1431
866
|
</pre>
|
1432
867
|
<p>
|
1433
|
-
This is like <a href="Kernel.html#
|
1434
|
-
href="Kernel.html#
|
868
|
+
This is like <a href="Kernel.html#M000352">tap</a>, but <a
|
869
|
+
href="Kernel.html#M000352">tap</a> yields self -and- returns self.
|
1435
870
|
</p>
|
1436
871
|
<pre>
|
1437
872
|
CREDIT: Daniel DeLorme
|
1438
873
|
</pre>
|
1439
874
|
</div>
|
1440
875
|
<div class="sourcecode">
|
1441
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1442
|
-
<div id="
|
876
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000355_source')" id="l_M000355_source">show source</a> ]</p>
|
877
|
+
<div id="M000355_source" class="dyn-source">
|
1443
878
|
<pre>
|
1444
879
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/ergo.rb, line 17</span>
|
1445
880
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ergo</span> <span class="ruby-operator">&</span><span class="ruby-identifier">b</span>
|
@@ -1455,7 +890,7 @@ href="Kernel.html#M000623">tap</a> yields self -and- returns self.
|
|
1455
890
|
</div>
|
1456
891
|
<div class="method">
|
1457
892
|
<div class="title">
|
1458
|
-
<a name="
|
893
|
+
<a name="M000341"></a><b>false?</b>()
|
1459
894
|
</div>
|
1460
895
|
<div class="description">
|
1461
896
|
<p>
|
@@ -1469,8 +904,8 @@ href="FalseClass.html">FalseClass</a>, otherwise false.
|
|
1469
904
|
</pre>
|
1470
905
|
</div>
|
1471
906
|
<div class="sourcecode">
|
1472
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1473
|
-
<div id="
|
907
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000341_source')" id="l_M000341_source">show source</a> ]</p>
|
908
|
+
<div id="M000341_source" class="dyn-source">
|
1474
909
|
<pre>
|
1475
910
|
<span class="ruby-comment cmt"># File lib/core/facets/boolean.rb, line 116</span>
|
1476
911
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">false?</span>
|
@@ -1482,25 +917,25 @@ href="FalseClass.html">FalseClass</a>, otherwise false.
|
|
1482
917
|
</div>
|
1483
918
|
<div class="method">
|
1484
919
|
<div class="title">
|
1485
|
-
<a name="
|
920
|
+
<a name="M000338"></a><b>future</b>( ) {|result| ...}
|
1486
921
|
</div>
|
1487
922
|
<div class="description">
|
1488
923
|
<p>
|
1489
924
|
Schedules a computation to be run asynchronously in a background thread and
|
1490
|
-
returns a <a href="Kernel.html#
|
1491
|
-
attempt to <a href="Kernel.html#
|
1492
|
-
href="Kernel.html#
|
925
|
+
returns a <a href="Kernel.html#M000336">promise</a> for its result. An
|
926
|
+
attempt to <a href="Kernel.html#M000337">demand</a> the result of the <a
|
927
|
+
href="Kernel.html#M000336">promise</a> will block until the computation
|
1493
928
|
finishes.
|
1494
929
|
</p>
|
1495
930
|
<p>
|
1496
|
-
As <a href="Kernel.html#
|
1497
|
-
href="Kernel.html#
|
1498
|
-
href="Kernel.html#
|
931
|
+
As <a href="Kernel.html#M000372">with</a> <a
|
932
|
+
href="Kernel.html#M000336">Kernel.promise</a>, this passes the block a <a
|
933
|
+
href="Kernel.html#M000336">promise</a> for its own result. Use wisely.
|
1499
934
|
</p>
|
1500
935
|
</div>
|
1501
936
|
<div class="sourcecode">
|
1502
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1503
|
-
<div id="
|
937
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000338_source')" id="l_M000338_source">show source</a> ]</p>
|
938
|
+
<div id="M000338_source" class="dyn-source">
|
1504
939
|
<pre>
|
1505
940
|
<span class="ruby-comment cmt"># File lib/core/facets/lazy.rb, line 234</span>
|
1506
941
|
<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>
|
@@ -1512,32 +947,7 @@ href="Kernel.html#M000606">promise</a> for its own result. Use wisely.
|
|
1512
947
|
</div>
|
1513
948
|
<div class="method">
|
1514
949
|
<div class="title">
|
1515
|
-
<a name="
|
1516
|
-
</div>
|
1517
|
-
<div class="description">
|
1518
|
-
<p>
|
1519
|
-
Is self included in other?
|
1520
|
-
</p>
|
1521
|
-
<pre>
|
1522
|
-
5.in?(0..10) #=> true
|
1523
|
-
5.in?([0,1,2,3]) #=> false
|
1524
|
-
</pre>
|
1525
|
-
</div>
|
1526
|
-
<div class="sourcecode">
|
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">
|
1529
|
-
<pre>
|
1530
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/in.rb, line 8</span>
|
1531
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">in?</span>(<span class="ruby-identifier">other</span>)
|
1532
|
-
<span class="ruby-identifier">other</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-keyword kw">self</span>)
|
1533
|
-
<span class="ruby-keyword kw">end</span>
|
1534
|
-
</pre>
|
1535
|
-
</div>
|
1536
|
-
</div>
|
1537
|
-
</div>
|
1538
|
-
<div class="method">
|
1539
|
-
<div class="title">
|
1540
|
-
<a name="M000663"></a><b>in?</b>(other)
|
950
|
+
<a name="M000393"></a><b>in?</b>(other)
|
1541
951
|
</div>
|
1542
952
|
<div class="description">
|
1543
953
|
<p>
|
@@ -1549,8 +959,8 @@ Is self included in other?
|
|
1549
959
|
</pre>
|
1550
960
|
</div>
|
1551
961
|
<div class="sourcecode">
|
1552
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1553
|
-
<div id="
|
962
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000393_source')" id="l_M000393_source">show source</a> ]</p>
|
963
|
+
<div id="M000393_source" class="dyn-source">
|
1554
964
|
<pre>
|
1555
965
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/in.rb, line 8</span>
|
1556
966
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">in?</span>(<span class="ruby-identifier">other</span>)
|
@@ -1562,41 +972,12 @@ Is self included in other?
|
|
1562
972
|
</div>
|
1563
973
|
<div class="method">
|
1564
974
|
<div class="title">
|
1565
|
-
<a name="
|
1566
|
-
</div>
|
1567
|
-
<div class="description">
|
1568
|
-
<p>
|
1569
|
-
Access internals of an object <a href="Kernel.html#M000614">as</a> if <a
|
1570
|
-
href="Kernel.html#M000642">with</a> private access.
|
1571
|
-
</p>
|
1572
|
-
<pre>
|
1573
|
-
class X
|
1574
|
-
metaclass.instance.attr_reader :x
|
1575
|
-
end
|
1576
|
-
</pre>
|
1577
|
-
</div>
|
1578
|
-
<div class="sourcecode">
|
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">
|
1581
|
-
<pre>
|
1582
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance.rb, line 12</span>
|
1583
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">instance</span>
|
1584
|
-
<span class="ruby-ivar">@_instance_functor</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">Functor</span>.<span class="ruby-identifier">new</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">op</span>,<span class="ruby-operator">*</span><span class="ruby-identifier">args</span><span class="ruby-operator">|</span>
|
1585
|
-
<span class="ruby-identifier">send</span>(<span class="ruby-identifier">op</span>,<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
1586
|
-
<span class="ruby-keyword kw">end</span>
|
1587
|
-
<span class="ruby-keyword kw">end</span>
|
1588
|
-
</pre>
|
1589
|
-
</div>
|
1590
|
-
</div>
|
1591
|
-
</div>
|
1592
|
-
<div class="method">
|
1593
|
-
<div class="title">
|
1594
|
-
<a name="M000674"></a><b>instance</b>()
|
975
|
+
<a name="M000353"></a><b>instance</b>()
|
1595
976
|
</div>
|
1596
977
|
<div class="description">
|
1597
978
|
<p>
|
1598
|
-
Access internals of an object <a href="Kernel.html#
|
1599
|
-
href="Kernel.html#
|
979
|
+
Access internals of an object <a href="Kernel.html#M000344">as</a> if <a
|
980
|
+
href="Kernel.html#M000372">with</a> private access.
|
1600
981
|
</p>
|
1601
982
|
<pre>
|
1602
983
|
class X
|
@@ -1605,8 +986,8 @@ href="Kernel.html#M000642">with</a> private access.
|
|
1605
986
|
</pre>
|
1606
987
|
</div>
|
1607
988
|
<div class="sourcecode">
|
1608
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1609
|
-
<div id="
|
989
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000353_source')" id="l_M000353_source">show source</a> ]</p>
|
990
|
+
<div id="M000353_source" class="dyn-source">
|
1610
991
|
<pre>
|
1611
992
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance.rb, line 12</span>
|
1612
993
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">instance</span>
|
@@ -1620,11 +1001,11 @@ href="Kernel.html#M000642">with</a> private access.
|
|
1620
1001
|
</div>
|
1621
1002
|
<div class="method">
|
1622
1003
|
<div class="title">
|
1623
|
-
<a name="
|
1004
|
+
<a name="M000371"></a><b>instance_assign</b>(hash)
|
1624
1005
|
</div>
|
1625
1006
|
<div class="description">
|
1626
1007
|
<p>
|
1627
|
-
Set <a href="Kernel.html#
|
1008
|
+
Set <a href="Kernel.html#M000353">instance</a> variables using a hash.
|
1628
1009
|
</p>
|
1629
1010
|
<pre>
|
1630
1011
|
instance_assign('@a'=>1, '@b'=>2)
|
@@ -1632,13 +1013,13 @@ Set <a href="Kernel.html#M000624">instance</a> variables using a hash.
|
|
1632
1013
|
@b #=> 2
|
1633
1014
|
</pre>
|
1634
1015
|
<p>
|
1635
|
-
WARNING: <a href="Kernel.html#
|
1016
|
+
WARNING: <a href="Kernel.html#M000371">instance_assign</a> will be
|
1636
1017
|
deprecated. Use instance_vars.update instead.
|
1637
1018
|
</p>
|
1638
1019
|
</div>
|
1639
1020
|
<div class="sourcecode">
|
1640
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1641
|
-
<div id="
|
1021
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000371_source')" id="l_M000371_source">show source</a> ]</p>
|
1022
|
+
<div id="M000371_source" class="dyn-source">
|
1642
1023
|
<pre>
|
1643
1024
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_assign.rb, line 32</span>
|
1644
1025
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">instance_assign</span>(<span class="ruby-identifier">hash</span>)
|
@@ -1654,79 +1035,14 @@ deprecated. Use instance_vars.update instead.
|
|
1654
1035
|
</div>
|
1655
1036
|
<div class="method">
|
1656
1037
|
<div class="title">
|
1657
|
-
<a name="
|
1658
|
-
</div>
|
1659
|
-
<div class="description">
|
1660
|
-
<p>
|
1661
|
-
Set <a href="Kernel.html#M000624">instance</a> variables using a hash.
|
1662
|
-
</p>
|
1663
|
-
<pre>
|
1664
|
-
instance_assign('@a'=>1, '@b'=>2)
|
1665
|
-
@a #=> 1
|
1666
|
-
@b #=> 2
|
1667
|
-
</pre>
|
1668
|
-
<p>
|
1669
|
-
WARNING: <a href="Kernel.html#M000641">instance_assign</a> will be
|
1670
|
-
deprecated. Use instance_vars.update instead.
|
1671
|
-
</p>
|
1672
|
-
</div>
|
1673
|
-
<div class="sourcecode">
|
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">
|
1676
|
-
<pre>
|
1677
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_assign.rb, line 32</span>
|
1678
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">instance_assign</span>(<span class="ruby-identifier">hash</span>)
|
1679
|
-
<span class="ruby-identifier">hash</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
|
1680
|
-
<span class="ruby-identifier">k</span> = <span class="ruby-node">"@#{k}"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">k</span> <span class="ruby-operator">!~</span> <span class="ruby-regexp re">/^@/</span>
|
1681
|
-
<span class="ruby-identifier">instance_variable_set</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">v</span>)
|
1682
|
-
<span class="ruby-keyword kw">end</span>
|
1683
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">self</span>
|
1684
|
-
<span class="ruby-keyword kw">end</span>
|
1685
|
-
</pre>
|
1686
|
-
</div>
|
1687
|
-
</div>
|
1688
|
-
</div>
|
1689
|
-
<div class="method">
|
1690
|
-
<div class="title">
|
1691
|
-
<a name="M000695"></a><b>instance_class</b>(&block)
|
1692
|
-
</div>
|
1693
|
-
<div class="description">
|
1694
|
-
<p>
|
1695
|
-
Easy access to an object qua class, otherwise known <a
|
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
|
1699
|
-
returns the class, even if a block is provided to eval against it.
|
1700
|
-
</p>
|
1701
|
-
<pre>
|
1702
|
-
It is what it is.
|
1703
|
-
|
1704
|
-
CREDIT: Trans
|
1705
|
-
</pre>
|
1706
|
-
</div>
|
1707
|
-
<div class="sourcecode">
|
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">
|
1710
|
-
<pre>
|
1711
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_class.rb, line 19</span>
|
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>)
|
1713
|
-
(<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>).<span class="ruby-identifier">module_eval</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block</span>
|
1714
|
-
(<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>)
|
1715
|
-
<span class="ruby-keyword kw">end</span>
|
1716
|
-
</pre>
|
1717
|
-
</div>
|
1718
|
-
</div>
|
1719
|
-
</div>
|
1720
|
-
<div class="method">
|
1721
|
-
<div class="title">
|
1722
|
-
<a name="M000645"></a><b>instance_class</b>(&block)
|
1038
|
+
<a name="M000375"></a><b>instance_class</b>(&block)
|
1723
1039
|
</div>
|
1724
1040
|
<div class="description">
|
1725
1041
|
<p>
|
1726
1042
|
Easy access to an object qua class, otherwise known <a
|
1727
|
-
href="Kernel.html#
|
1728
|
-
href="Kernel.html#
|
1729
|
-
href="Kernel.html#
|
1043
|
+
href="Kernel.html#M000344">as</a> the object‘s <a
|
1044
|
+
href="Kernel.html#M000334">metaclass</a> or <a
|
1045
|
+
href="Kernel.html#M000381">singleton</a> class. This implemnetation alwasy
|
1730
1046
|
returns the class, even if a block is provided to eval against it.
|
1731
1047
|
</p>
|
1732
1048
|
<pre>
|
@@ -1736,8 +1052,8 @@ returns the class, even if a block is provided to eval against it.
|
|
1736
1052
|
</pre>
|
1737
1053
|
</div>
|
1738
1054
|
<div class="sourcecode">
|
1739
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1740
|
-
<div id="
|
1055
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000375_source')" id="l_M000375_source">show source</a> ]</p>
|
1056
|
+
<div id="M000375_source" class="dyn-source">
|
1741
1057
|
<pre>
|
1742
1058
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_class.rb, line 19</span>
|
1743
1059
|
<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>)
|
@@ -1750,101 +1066,11 @@ returns the class, even if a block is provided to eval against it.
|
|
1750
1066
|
</div>
|
1751
1067
|
<div class="method">
|
1752
1068
|
<div class="title">
|
1753
|
-
<a name="
|
1754
|
-
</div>
|
1755
|
-
<div class="description">
|
1756
|
-
<p>
|
1757
|
-
Like instance_eval but allows parameters to be passed.
|
1758
|
-
</p>
|
1759
|
-
<p>
|
1760
|
-
NOTE: This is deprecated b/c implementation is fragile. Use Ruby 1.9
|
1761
|
-
instead.
|
1762
|
-
</p>
|
1763
|
-
</div>
|
1764
|
-
<div class="sourcecode">
|
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">
|
1767
|
-
<pre>
|
1768
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_exec.rb, line 12</span>
|
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>)
|
1770
|
-
<span class="ruby-identifier">block</span>.<span class="ruby-identifier">bind</span>(<span class="ruby-keyword kw">self</span>)[<span class="ruby-operator">*</span><span class="ruby-identifier">arguments</span>]
|
1771
|
-
<span class="ruby-keyword kw">end</span>
|
1772
|
-
</pre>
|
1773
|
-
</div>
|
1774
|
-
</div>
|
1775
|
-
</div>
|
1776
|
-
<div class="method">
|
1777
|
-
<div class="title">
|
1778
|
-
<a name="M000696"></a><b>instance_exec</b>(*arguments, &block)
|
1779
|
-
</div>
|
1780
|
-
<div class="description">
|
1781
|
-
<p>
|
1782
|
-
Like instance_eval but allows parameters to be passed.
|
1783
|
-
</p>
|
1784
|
-
<p>
|
1785
|
-
NOTE: This is deprecated b/c implementation is fragile. Use Ruby 1.9
|
1786
|
-
instead.
|
1787
|
-
</p>
|
1788
|
-
</div>
|
1789
|
-
<div class="sourcecode">
|
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">
|
1792
|
-
<pre>
|
1793
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_exec.rb, line 12</span>
|
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>)
|
1795
|
-
<span class="ruby-identifier">block</span>.<span class="ruby-identifier">bind</span>(<span class="ruby-keyword kw">self</span>)[<span class="ruby-operator">*</span><span class="ruby-identifier">arguments</span>]
|
1796
|
-
<span class="ruby-keyword kw">end</span>
|
1797
|
-
</pre>
|
1798
|
-
</div>
|
1799
|
-
</div>
|
1800
|
-
</div>
|
1801
|
-
<div class="method">
|
1802
|
-
<div class="title">
|
1803
|
-
<a name="M000690"></a><b>instance_values</b>()
|
1804
|
-
</div>
|
1805
|
-
<div class="description">
|
1806
|
-
<p>
|
1807
|
-
Return <a href="Kernel.html#M000624">instance</a> variable values in an
|
1808
|
-
array.
|
1809
|
-
</p>
|
1810
|
-
<pre>
|
1811
|
-
class X
|
1812
|
-
def initialize(a,b)
|
1813
|
-
@a, @b = a, b
|
1814
|
-
end
|
1815
|
-
end
|
1816
|
-
|
1817
|
-
x = X.new(1,2)
|
1818
|
-
|
1819
|
-
x.instance_values #=> { "a"=>1, "b"=>2 }
|
1820
|
-
</pre>
|
1821
|
-
<p>
|
1822
|
-
WARNING: <a href="Kernel.html#M000640">instance_values</a> will be
|
1823
|
-
deprecated. Use instance_vars.to_hash instead.
|
1824
|
-
</p>
|
1825
|
-
</div>
|
1826
|
-
<div class="sourcecode">
|
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">
|
1829
|
-
<pre>
|
1830
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_assign.rb, line 17</span>
|
1831
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">instance_values</span>
|
1832
|
-
<span class="ruby-identifier">instance_variables</span>.<span class="ruby-identifier">inject</span>({}) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">values</span>, <span class="ruby-identifier">name</span><span class="ruby-operator">|</span>
|
1833
|
-
<span class="ruby-identifier">values</span>[<span class="ruby-identifier">name</span>[<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>]] = <span class="ruby-identifier">instance_variable_get</span>(<span class="ruby-identifier">name</span>)
|
1834
|
-
<span class="ruby-identifier">values</span>
|
1835
|
-
<span class="ruby-keyword kw">end</span>
|
1836
|
-
<span class="ruby-keyword kw">end</span>
|
1837
|
-
</pre>
|
1838
|
-
</div>
|
1839
|
-
</div>
|
1840
|
-
</div>
|
1841
|
-
<div class="method">
|
1842
|
-
<div class="title">
|
1843
|
-
<a name="M000640"></a><b>instance_values</b>()
|
1069
|
+
<a name="M000370"></a><b>instance_values</b>()
|
1844
1070
|
</div>
|
1845
1071
|
<div class="description">
|
1846
1072
|
<p>
|
1847
|
-
Return <a href="Kernel.html#
|
1073
|
+
Return <a href="Kernel.html#M000353">instance</a> variable values in an
|
1848
1074
|
array.
|
1849
1075
|
</p>
|
1850
1076
|
<pre>
|
@@ -1859,13 +1085,13 @@ array.
|
|
1859
1085
|
x.instance_values #=> { "a"=>1, "b"=>2 }
|
1860
1086
|
</pre>
|
1861
1087
|
<p>
|
1862
|
-
WARNING: <a href="Kernel.html#
|
1088
|
+
WARNING: <a href="Kernel.html#M000370">instance_values</a> will be
|
1863
1089
|
deprecated. Use instance_vars.to_hash instead.
|
1864
1090
|
</p>
|
1865
1091
|
</div>
|
1866
1092
|
<div class="sourcecode">
|
1867
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1868
|
-
<div id="
|
1093
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000370_source')" id="l_M000370_source">show source</a> ]</p>
|
1094
|
+
<div id="M000370_source" class="dyn-source">
|
1869
1095
|
<pre>
|
1870
1096
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_assign.rb, line 17</span>
|
1871
1097
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">instance_values</span>
|
@@ -1880,27 +1106,11 @@ deprecated. Use instance_vars.to_hash instead.
|
|
1880
1106
|
</div>
|
1881
1107
|
<div class="method">
|
1882
1108
|
<div class="title">
|
1883
|
-
<a name="
|
1884
|
-
</div>
|
1885
|
-
<div class="sourcecode">
|
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">
|
1888
|
-
<pre>
|
1889
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_variables.rb, line 3</span>
|
1890
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">instance_vars</span>
|
1891
|
-
<span class="ruby-constant">InstanceVariables</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>)
|
1892
|
-
<span class="ruby-keyword kw">end</span>
|
1893
|
-
</pre>
|
1894
|
-
</div>
|
1895
|
-
</div>
|
1896
|
-
</div>
|
1897
|
-
<div class="method">
|
1898
|
-
<div class="title">
|
1899
|
-
<a name="M000689"></a><b>instance_vars</b>()
|
1109
|
+
<a name="M000369"></a><b>instance_vars</b>()
|
1900
1110
|
</div>
|
1901
1111
|
<div class="sourcecode">
|
1902
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1903
|
-
<div id="
|
1112
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000369_source')" id="l_M000369_source">show source</a> ]</p>
|
1113
|
+
<div id="M000369_source" class="dyn-source">
|
1904
1114
|
<pre>
|
1905
1115
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_variables.rb, line 3</span>
|
1906
1116
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">instance_vars</span>
|
@@ -1912,38 +1122,11 @@ deprecated. Use instance_vars.to_hash instead.
|
|
1912
1122
|
</div>
|
1913
1123
|
<div class="method">
|
1914
1124
|
<div class="title">
|
1915
|
-
<a name="
|
1916
|
-
</div>
|
1917
|
-
<div class="description">
|
1918
|
-
<p>
|
1919
|
-
Load file from same dir <a href="Kernel.html#M000614">as</a> calling
|
1920
|
-
script.
|
1921
|
-
</p>
|
1922
|
-
<pre>
|
1923
|
-
load_local 'templib'
|
1924
|
-
</pre>
|
1925
|
-
</div>
|
1926
|
-
<div class="sourcecode">
|
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">
|
1929
|
-
<pre>
|
1930
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/require_local.rb, line 17</span>
|
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>)
|
1932
|
-
<span class="ruby-comment cmt">#fdir = File.expand_path( File.dirname( caller[0] ) )</span>
|
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>] )
|
1934
|
-
<span class="ruby-identifier">load</span>( <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>( <span class="ruby-identifier">fdir</span>, <span class="ruby-identifier">fname</span> ), <span class="ruby-identifier">safe</span> )
|
1935
|
-
<span class="ruby-keyword kw">end</span>
|
1936
|
-
</pre>
|
1937
|
-
</div>
|
1938
|
-
</div>
|
1939
|
-
</div>
|
1940
|
-
<div class="method">
|
1941
|
-
<div class="title">
|
1942
|
-
<a name="M000710"></a><b>load_local</b>(fname, safe=nil)
|
1125
|
+
<a name="M000390"></a><b>load_local</b>(fname, safe=nil)
|
1943
1126
|
</div>
|
1944
1127
|
<div class="description">
|
1945
1128
|
<p>
|
1946
|
-
Load file from same dir <a href="Kernel.html#
|
1129
|
+
Load file from same dir <a href="Kernel.html#M000344">as</a> calling
|
1947
1130
|
script.
|
1948
1131
|
</p>
|
1949
1132
|
<pre>
|
@@ -1951,8 +1134,8 @@ script.
|
|
1951
1134
|
</pre>
|
1952
1135
|
</div>
|
1953
1136
|
<div class="sourcecode">
|
1954
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1955
|
-
<div id="
|
1137
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000390_source')" id="l_M000390_source">show source</a> ]</p>
|
1138
|
+
<div id="M000390_source" class="dyn-source">
|
1956
1139
|
<pre>
|
1957
1140
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/require_local.rb, line 17</span>
|
1958
1141
|
<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>)
|
@@ -1966,37 +1149,7 @@ script.
|
|
1966
1149
|
</div>
|
1967
1150
|
<div class="method">
|
1968
1151
|
<div class="title">
|
1969
|
-
<a name="
|
1970
|
-
</div>
|
1971
|
-
<div class="description">
|
1972
|
-
<p>
|
1973
|
-
Random generator that returns true or false. Can also take a block that has
|
1974
|
-
a 50/50 chance to being executed.
|
1975
|
-
</p>
|
1976
|
-
<pre>
|
1977
|
-
maybe #=> true
|
1978
|
-
maybe #=> false
|
1979
|
-
</pre>
|
1980
|
-
</div>
|
1981
|
-
<div class="sourcecode">
|
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">
|
1984
|
-
<pre>
|
1985
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/maybe.rb, line 9</span>
|
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>)
|
1987
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block</span> <span class="ruby-keyword kw">then</span>
|
1988
|
-
<span class="ruby-keyword kw">yield</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">rand</span> <span class="ruby-operator"><</span> <span class="ruby-identifier">chance</span>
|
1989
|
-
<span class="ruby-keyword kw">else</span>
|
1990
|
-
<span class="ruby-identifier">rand</span> <span class="ruby-operator"><</span> <span class="ruby-identifier">chance</span>
|
1991
|
-
<span class="ruby-keyword kw">end</span>
|
1992
|
-
<span class="ruby-keyword kw">end</span>
|
1993
|
-
</pre>
|
1994
|
-
</div>
|
1995
|
-
</div>
|
1996
|
-
</div>
|
1997
|
-
<div class="method">
|
1998
|
-
<div class="title">
|
1999
|
-
<a name="M000621"></a><b>maybe</b>(chance = 0.5) {|if rand < chance| ...}
|
1152
|
+
<a name="M000350"></a><b>maybe</b>(chance = 0.5) {|if rand < chance| ...}
|
2000
1153
|
</div>
|
2001
1154
|
<div class="description">
|
2002
1155
|
<p>
|
@@ -2009,8 +1162,8 @@ a 50/50 chance to being executed.
|
|
2009
1162
|
</pre>
|
2010
1163
|
</div>
|
2011
1164
|
<div class="sourcecode">
|
2012
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2013
|
-
<div id="
|
1165
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000350_source')" id="l_M000350_source">show source</a> ]</p>
|
1166
|
+
<div id="M000350_source" class="dyn-source">
|
2014
1167
|
<pre>
|
2015
1168
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/maybe.rb, line 9</span>
|
2016
1169
|
<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>)
|
@@ -2026,12 +1179,12 @@ a 50/50 chance to being executed.
|
|
2026
1179
|
</div>
|
2027
1180
|
<div class="method">
|
2028
1181
|
<div class="title">
|
2029
|
-
<a name="
|
1182
|
+
<a name="M000330"></a><b>meta_alias</b>(*args)
|
2030
1183
|
</div>
|
2031
1184
|
<div class="description">
|
2032
1185
|
<p>
|
2033
|
-
Alias a method defined in the <a href="Kernel.html#
|
2034
|
-
(ie. <a href="Kernel.html#
|
1186
|
+
Alias a method defined in the <a href="Kernel.html#M000334">metaclass</a>
|
1187
|
+
(ie. <a href="Kernel.html#M000381">singleton</a> class).
|
2035
1188
|
</p>
|
2036
1189
|
<pre>
|
2037
1190
|
def X.y?; "y?" ; end
|
@@ -2042,8 +1195,8 @@ Alias a method defined in the <a href="Kernel.html#M000602">metaclass</a>
|
|
2042
1195
|
</pre>
|
2043
1196
|
</div>
|
2044
1197
|
<div class="sourcecode">
|
2045
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2046
|
-
<div id="
|
1198
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000330_source')" id="l_M000330_source">show source</a> ]</p>
|
1199
|
+
<div id="M000330_source" class="dyn-source">
|
2047
1200
|
<pre>
|
2048
1201
|
<span class="ruby-comment cmt"># File lib/core/facets/metaid.rb, line 11</span>
|
2049
1202
|
<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>)
|
@@ -2057,23 +1210,23 @@ Alias a method defined in the <a href="Kernel.html#M000602">metaclass</a>
|
|
2057
1210
|
</div>
|
2058
1211
|
<div class="method">
|
2059
1212
|
<div class="title">
|
2060
|
-
<a name="
|
1213
|
+
<a name="M000333"></a><b>meta_class</b>(&block)
|
2061
1214
|
</div>
|
2062
1215
|
<div class="description">
|
2063
1216
|
<p>
|
2064
1217
|
Easy access to an object‘s "special" class, otherwise known
|
2065
|
-
<a href="Kernel.html#
|
2066
|
-
href="Kernel.html#
|
2067
|
-
href="Kernel.html#
|
1218
|
+
<a href="Kernel.html#M000344">as</a> it‘s <a
|
1219
|
+
href="Kernel.html#M000334">metaclass</a> or <a
|
1220
|
+
href="Kernel.html#M000381">singleton</a> class.
|
2068
1221
|
</p>
|
2069
1222
|
</div>
|
2070
1223
|
<div class="aka">
|
2071
1224
|
This method is also aliased as
|
2072
|
-
<a href="Kernel.html#
|
1225
|
+
<a href="Kernel.html#M000334">metaclass</a>
|
2073
1226
|
</div>
|
2074
1227
|
<div class="sourcecode">
|
2075
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2076
|
-
<div id="
|
1228
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000333_source')" id="l_M000333_source">show source</a> ]</p>
|
1229
|
+
<div id="M000333_source" class="dyn-source">
|
2077
1230
|
<pre>
|
2078
1231
|
<span class="ruby-comment cmt"># File lib/core/facets/metaid.rb, line 47</span>
|
2079
1232
|
<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>)
|
@@ -2089,12 +1242,12 @@ href="Kernel.html#M000603">singleton</a> class.
|
|
2089
1242
|
</div>
|
2090
1243
|
<div class="method">
|
2091
1244
|
<div class="title">
|
2092
|
-
<a name="
|
1245
|
+
<a name="M000332"></a><b>meta_def</b>( name, &block )
|
2093
1246
|
</div>
|
2094
1247
|
<div class="description">
|
2095
1248
|
<p>
|
2096
1249
|
Add method to a meta-class —i.e. a <a
|
2097
|
-
href="Kernel.html#
|
1250
|
+
href="Kernel.html#M000381">singleton</a> method.
|
2098
1251
|
</p>
|
2099
1252
|
<pre>
|
2100
1253
|
class X; end
|
@@ -2105,8 +1258,8 @@ href="Kernel.html#M000603">singleton</a> method.
|
|
2105
1258
|
</pre>
|
2106
1259
|
</div>
|
2107
1260
|
<div class="sourcecode">
|
2108
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2109
|
-
<div id="
|
1261
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000332_source')" id="l_M000332_source">show source</a> ]</p>
|
1262
|
+
<div id="M000332_source" class="dyn-source">
|
2110
1263
|
<pre>
|
2111
1264
|
<span class="ruby-comment cmt"># File lib/core/facets/metaid.rb, line 38</span>
|
2112
1265
|
<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> )
|
@@ -2120,11 +1273,11 @@ href="Kernel.html#M000603">singleton</a> method.
|
|
2120
1273
|
</div>
|
2121
1274
|
<div class="method">
|
2122
1275
|
<div class="title">
|
2123
|
-
<a name="
|
1276
|
+
<a name="M000331"></a><b>meta_eval</b>(str=nil, &blk)
|
2124
1277
|
</div>
|
2125
1278
|
<div class="description">
|
2126
1279
|
<p>
|
2127
|
-
Evaluate code in a <a href="Kernel.html#
|
1280
|
+
Evaluate code in a <a href="Kernel.html#M000334">metaclass</a>. This is
|
2128
1281
|
equivalent to ‘meta_class.instance_eval’.
|
2129
1282
|
</p>
|
2130
1283
|
<pre>
|
@@ -2132,8 +1285,8 @@ equivalent to ‘meta_class.instance_eval’.
|
|
2132
1285
|
</pre>
|
2133
1286
|
</div>
|
2134
1287
|
<div class="sourcecode">
|
2135
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2136
|
-
<div id="
|
1288
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000331_source')" id="l_M000331_source">show source</a> ]</p>
|
1289
|
+
<div id="M000331_source" class="dyn-source">
|
2137
1290
|
<pre>
|
2138
1291
|
<span class="ruby-comment cmt"># File lib/core/facets/metaid.rb, line 22</span>
|
2139
1292
|
<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>)
|
@@ -2149,27 +1302,17 @@ equivalent to ‘meta_class.instance_eval’.
|
|
2149
1302
|
</div>
|
2150
1303
|
<div class="method">
|
2151
1304
|
<div class="title">
|
2152
|
-
<a name="
|
2153
|
-
</div>
|
2154
|
-
<div class="description">
|
2155
|
-
<p>
|
2156
|
-
Alias for <a href="Kernel.html#M000601">meta_class</a>
|
2157
|
-
</p>
|
2158
|
-
</div>
|
2159
|
-
</div>
|
2160
|
-
<div class="method">
|
2161
|
-
<div class="title">
|
2162
|
-
<a name="M000679"></a><b>non_nil?</b>()
|
1305
|
+
<a name="M000334"></a><b>metaclass</b>(&block)
|
2163
1306
|
</div>
|
2164
1307
|
<div class="description">
|
2165
1308
|
<p>
|
2166
|
-
Alias for
|
1309
|
+
Alias for <a href="Kernel.html#M000333">meta_class</a>
|
2167
1310
|
</p>
|
2168
1311
|
</div>
|
2169
1312
|
</div>
|
2170
1313
|
<div class="method">
|
2171
1314
|
<div class="title">
|
2172
|
-
<a name="
|
1315
|
+
<a name="M000358"></a><b>non_nil?</b>()
|
2173
1316
|
</div>
|
2174
1317
|
<div class="description">
|
2175
1318
|
<p>
|
@@ -2179,34 +1322,7 @@ Alias for not_nil?
|
|
2179
1322
|
</div>
|
2180
1323
|
<div class="method">
|
2181
1324
|
<div class="title">
|
2182
|
-
<a name="
|
2183
|
-
</div>
|
2184
|
-
<div class="description">
|
2185
|
-
<p>
|
2186
|
-
The opposite of nil?.
|
2187
|
-
</p>
|
2188
|
-
<pre>
|
2189
|
-
"hello".not_nil? # -> true
|
2190
|
-
nil.not_nil? # -> false
|
2191
|
-
|
2192
|
-
CREDIT: Gavin Sinclair
|
2193
|
-
</pre>
|
2194
|
-
</div>
|
2195
|
-
<div class="sourcecode">
|
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">
|
2198
|
-
<pre>
|
2199
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/not_nil.rb, line 10</span>
|
2200
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">not_nil?</span>
|
2201
|
-
<span class="ruby-keyword kw">not</span> <span class="ruby-identifier">nil?</span>
|
2202
|
-
<span class="ruby-keyword kw">end</span>
|
2203
|
-
</pre>
|
2204
|
-
</div>
|
2205
|
-
</div>
|
2206
|
-
</div>
|
2207
|
-
<div class="method">
|
2208
|
-
<div class="title">
|
2209
|
-
<a name="M000628"></a><b>not_nil?</b>()
|
1325
|
+
<a name="M000357"></a><b>not_nil?</b>()
|
2210
1326
|
</div>
|
2211
1327
|
<div class="description">
|
2212
1328
|
<p>
|
@@ -2221,12 +1337,11 @@ The opposite of nil?.
|
|
2221
1337
|
</div>
|
2222
1338
|
<div class="aka">
|
2223
1339
|
This method is also aliased as
|
2224
|
-
<a href="Kernel.html#
|
2225
|
-
<a href="Kernel.html#M000679">non_nil?</a>
|
1340
|
+
<a href="Kernel.html#M000358">non_nil?</a>
|
2226
1341
|
</div>
|
2227
1342
|
<div class="sourcecode">
|
2228
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2229
|
-
<div id="
|
1343
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000357_source')" id="l_M000357_source">show source</a> ]</p>
|
1344
|
+
<div id="M000357_source" class="dyn-source">
|
2230
1345
|
<pre>
|
2231
1346
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/not_nil.rb, line 10</span>
|
2232
1347
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">not_nil?</span>
|
@@ -2238,47 +1353,21 @@ The opposite of nil?.
|
|
2238
1353
|
</div>
|
2239
1354
|
<div class="method">
|
2240
1355
|
<div class="title">
|
2241
|
-
<a name="
|
2242
|
-
</div>
|
2243
|
-
<div class="description">
|
2244
|
-
<p>
|
2245
|
-
Returns the object id <a href="Kernel.html#M000614">as</a> a string in
|
2246
|
-
hexideciaml, which is how Ruby reports them <a
|
2247
|
-
href="Kernel.html#M000642">with</a> inspect.
|
2248
|
-
</p>
|
2249
|
-
<pre>
|
2250
|
-
"ABC".object_hexid #=> "0x402d359c"
|
2251
|
-
</pre>
|
2252
|
-
</div>
|
2253
|
-
<div class="sourcecode">
|
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">
|
2256
|
-
<pre>
|
2257
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/object_hexid.rb, line 8</span>
|
2258
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">object_hexid</span>
|
2259
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-value str">"0x"</span> <span class="ruby-operator"><<</span> (<span class="ruby-value str">'%.x'</span> <span class="ruby-operator">%</span> (<span class="ruby-value">2</span><span class="ruby-operator">*</span><span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">__id__</span>)) <span class="ruby-comment cmt">#[1..-1]</span>
|
2260
|
-
<span class="ruby-keyword kw">end</span>
|
2261
|
-
</pre>
|
2262
|
-
</div>
|
2263
|
-
</div>
|
2264
|
-
</div>
|
2265
|
-
<div class="method">
|
2266
|
-
<div class="title">
|
2267
|
-
<a name="M000622"></a><b>object_hexid</b>()
|
1356
|
+
<a name="M000351"></a><b>object_hexid</b>()
|
2268
1357
|
</div>
|
2269
1358
|
<div class="description">
|
2270
1359
|
<p>
|
2271
|
-
Returns the object id <a href="Kernel.html#
|
1360
|
+
Returns the object id <a href="Kernel.html#M000344">as</a> a string in
|
2272
1361
|
hexideciaml, which is how Ruby reports them <a
|
2273
|
-
href="Kernel.html#
|
1362
|
+
href="Kernel.html#M000372">with</a> inspect.
|
2274
1363
|
</p>
|
2275
1364
|
<pre>
|
2276
1365
|
"ABC".object_hexid #=> "0x402d359c"
|
2277
1366
|
</pre>
|
2278
1367
|
</div>
|
2279
1368
|
<div class="sourcecode">
|
2280
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2281
|
-
<div id="
|
1369
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000351_source')" id="l_M000351_source">show source</a> ]</p>
|
1370
|
+
<div id="M000351_source" class="dyn-source">
|
2282
1371
|
<pre>
|
2283
1372
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/object_hexid.rb, line 8</span>
|
2284
1373
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">object_hexid</span>
|
@@ -2290,7 +1379,7 @@ href="Kernel.html#M000642">with</a> inspect.
|
|
2290
1379
|
</div>
|
2291
1380
|
<div class="method">
|
2292
1381
|
<div class="title">
|
2293
|
-
<a name="
|
1382
|
+
<a name="M000354"></a><b>object_send</b>(name,*args,&blk)
|
2294
1383
|
</div>
|
2295
1384
|
<div class="description">
|
2296
1385
|
<p>
|
@@ -2306,7 +1395,7 @@ Send only to public methods.
|
|
2306
1395
|
=> NoMethodError: private method `foo' called for #<X:0xb7ac6ba8>
|
2307
1396
|
</pre>
|
2308
1397
|
<p>
|
2309
|
-
TODO: <a href="Kernel.html#
|
1398
|
+
TODO: <a href="Kernel.html#M000354">object_send</a> needs to change for
|
2310
1399
|
1.9.
|
2311
1400
|
</p>
|
2312
1401
|
<pre>
|
@@ -2314,8 +1403,8 @@ TODO: <a href="Kernel.html#M000625">object_send</a> needs to change for
|
|
2314
1403
|
</pre>
|
2315
1404
|
</div>
|
2316
1405
|
<div class="sourcecode">
|
2317
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2318
|
-
<div id="
|
1406
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000354_source')" id="l_M000354_source">show source</a> ]</p>
|
1407
|
+
<div id="M000354_source" class="dyn-source">
|
2319
1408
|
<pre>
|
2320
1409
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/object_send.rb, line 20</span>
|
2321
1410
|
<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>)
|
@@ -2334,118 +1423,34 @@ TODO: <a href="Kernel.html#M000625">object_send</a> needs to change for
|
|
2334
1423
|
</div>
|
2335
1424
|
<div class="method">
|
2336
1425
|
<div class="title">
|
2337
|
-
<a name="
|
1426
|
+
<a name="M000379"></a><b>p</b>(*x)
|
2338
1427
|
</div>
|
2339
1428
|
<div class="description">
|
2340
1429
|
<p>
|
2341
|
-
|
1430
|
+
Alternate to standard <a href="Kernel.html#M000379">p</a> method that
|
1431
|
+
outputs Kernel#inspect to stdout, but also passes through the orginal
|
1432
|
+
argument(s).
|
2342
1433
|
</p>
|
2343
1434
|
<pre>
|
2344
|
-
|
2345
|
-
|
2346
|
-
|
2347
|
-
end
|
2348
|
-
|
2349
|
-
X.new.object_send(:foo)
|
2350
|
-
=> NoMethodError: private method `foo' called for #<X:0xb7ac6ba8>
|
1435
|
+
x = 1
|
1436
|
+
r = 4 + q(1)
|
1437
|
+
p r
|
2351
1438
|
</pre>
|
2352
1439
|
<p>
|
2353
|
-
|
2354
|
-
1.9.
|
1440
|
+
produces
|
2355
1441
|
</p>
|
2356
1442
|
<pre>
|
2357
|
-
|
2358
|
-
|
2359
|
-
</div>
|
2360
|
-
<div class="sourcecode">
|
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">
|
2363
|
-
<pre>
|
2364
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/object_send.rb, line 20</span>
|
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>)
|
2366
|
-
<span class="ruby-comment cmt">#instance_eval "self.#{name}(*args)"</span>
|
2367
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">name</span>)
|
2368
|
-
<span class="ruby-identifier">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>)
|
2369
|
-
<span class="ruby-keyword kw">else</span> <span class="ruby-comment cmt">#if respond_to?(:method_missing)</span>
|
2370
|
-
<span class="ruby-identifier">method_missing</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>)
|
2371
|
-
<span class="ruby-comment cmt">#else</span>
|
2372
|
-
<span class="ruby-comment cmt"># raise NoMethodError</span>
|
2373
|
-
<span class="ruby-keyword kw">end</span>
|
2374
|
-
<span class="ruby-keyword kw">end</span>
|
2375
|
-
</pre>
|
2376
|
-
</div>
|
2377
|
-
</div>
|
2378
|
-
</div>
|
2379
|
-
<div class="method">
|
2380
|
-
<div class="title">
|
2381
|
-
<a name="M000700"></a><b>p</b>(*x)
|
2382
|
-
</div>
|
2383
|
-
<div class="description">
|
2384
|
-
<p>
|
2385
|
-
Alternate to standard <a href="Kernel.html#M000650">p</a> method that
|
2386
|
-
outputs Kernel#inspect to stdout, but also passes through the orginal
|
2387
|
-
argument(s).
|
2388
|
-
</p>
|
2389
|
-
<pre>
|
2390
|
-
x = 1
|
2391
|
-
r = 4 + q(1)
|
2392
|
-
p r
|
2393
|
-
</pre>
|
2394
|
-
<p>
|
2395
|
-
produces
|
2396
|
-
</p>
|
2397
|
-
<pre>
|
2398
|
-
1
|
2399
|
-
5
|
2400
|
-
</pre>
|
2401
|
-
<p>
|
2402
|
-
DEPRECATE AS OF 1.9, <em>if</em> <a href="Kernel.html#M000650">p</a> will
|
2403
|
-
then do this too.
|
2404
|
-
</p>
|
2405
|
-
</div>
|
2406
|
-
<div class="sourcecode">
|
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">
|
2409
|
-
<pre>
|
2410
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/p.rb, line 18</span>
|
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>)
|
2412
|
-
<span class="ruby-identifier">x</span>.<span class="ruby-identifier">each</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">e</span><span class="ruby-operator">|</span> <span class="ruby-identifier">puts</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">inspect</span> } <span class="ruby-comment cmt">#p(*x)</span>
|
2413
|
-
<span class="ruby-identifier">x</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">></span> <span class="ruby-value">1</span> <span class="ruby-operator">?</span> <span class="ruby-identifier">x</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">x</span>.<span class="ruby-identifier">last</span> <span class="ruby-comment cmt">#x.last</span>
|
2414
|
-
<span class="ruby-keyword kw">end</span>
|
2415
|
-
</pre>
|
2416
|
-
</div>
|
2417
|
-
</div>
|
2418
|
-
</div>
|
2419
|
-
<div class="method">
|
2420
|
-
<div class="title">
|
2421
|
-
<a name="M000650"></a><b>p</b>(*x)
|
2422
|
-
</div>
|
2423
|
-
<div class="description">
|
2424
|
-
<p>
|
2425
|
-
Alternate to standard <a href="Kernel.html#M000650">p</a> method that
|
2426
|
-
outputs Kernel#inspect to stdout, but also passes through the orginal
|
2427
|
-
argument(s).
|
2428
|
-
</p>
|
2429
|
-
<pre>
|
2430
|
-
x = 1
|
2431
|
-
r = 4 + q(1)
|
2432
|
-
p r
|
2433
|
-
</pre>
|
2434
|
-
<p>
|
2435
|
-
produces
|
2436
|
-
</p>
|
2437
|
-
<pre>
|
2438
|
-
1
|
2439
|
-
5
|
1443
|
+
1
|
1444
|
+
5
|
2440
1445
|
</pre>
|
2441
1446
|
<p>
|
2442
|
-
DEPRECATE AS OF 1.9, <em>if</em> <a href="Kernel.html#
|
1447
|
+
DEPRECATE AS OF 1.9, <em>if</em> <a href="Kernel.html#M000379">p</a> will
|
2443
1448
|
then do this too.
|
2444
1449
|
</p>
|
2445
1450
|
</div>
|
2446
1451
|
<div class="sourcecode">
|
2447
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2448
|
-
<div id="
|
1452
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000379_source')" id="l_M000379_source">show source</a> ]</p>
|
1453
|
+
<div id="M000379_source" class="dyn-source">
|
2449
1454
|
<pre>
|
2450
1455
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/p.rb, line 18</span>
|
2451
1456
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">p</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">x</span>)
|
@@ -2458,58 +1463,7 @@ then do this too.
|
|
2458
1463
|
</div>
|
2459
1464
|
<div class="method">
|
2460
1465
|
<div class="title">
|
2461
|
-
<a name="
|
2462
|
-
</div>
|
2463
|
-
<div class="description">
|
2464
|
-
<p>
|
2465
|
-
Assign via accessor methods using a hash, associative array or block.
|
2466
|
-
</p>
|
2467
|
-
<pre>
|
2468
|
-
object.populate( :a => 1, :b => 2 )
|
2469
|
-
object.populate( :a, 1, :b, 2 )
|
2470
|
-
object.populate( [:a, 1], [:b, 2] )
|
2471
|
-
object.populate( *[[:a, 1], [:b, 2]] )
|
2472
|
-
object.populate{ |s| s.a = 1; s.b = 2 }
|
2473
|
-
</pre>
|
2474
|
-
<p>
|
2475
|
-
These are all the same <a href="Kernel.html#M000614">as</a> doing:
|
2476
|
-
</p>
|
2477
|
-
<pre>
|
2478
|
-
object.a = 1
|
2479
|
-
object.b = 2
|
2480
|
-
</pre>
|
2481
|
-
<p>
|
2482
|
-
Using an associative array instead of hash guarentees order of assignemnt.
|
2483
|
-
</p>
|
2484
|
-
<p>
|
2485
|
-
Using a hash or array will not raise an error if the accessor does not
|
2486
|
-
exits —it will simply be skipped.
|
2487
|
-
</p>
|
2488
|
-
<p>
|
2489
|
-
TODO: Better name, set_with ?
|
2490
|
-
</p>
|
2491
|
-
</div>
|
2492
|
-
<div class="sourcecode">
|
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">
|
2495
|
-
<pre>
|
2496
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/populate.rb, line 25</span>
|
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>
|
2498
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">data</span>
|
2499
|
-
<span class="ruby-identifier">data</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
|
2500
|
-
<span class="ruby-identifier">send</span>(<span class="ruby-node">"#{k}="</span>, <span class="ruby-identifier">v</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">respond_to?</span>(<span class="ruby-node">"#{k}="</span>)
|
2501
|
-
<span class="ruby-keyword kw">end</span>
|
2502
|
-
<span class="ruby-keyword kw">end</span>
|
2503
|
-
<span class="ruby-keyword kw">yield</span>(<span class="ruby-keyword kw">self</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block_given?</span>
|
2504
|
-
<span class="ruby-keyword kw">self</span>
|
2505
|
-
<span class="ruby-keyword kw">end</span>
|
2506
|
-
</pre>
|
2507
|
-
</div>
|
2508
|
-
</div>
|
2509
|
-
</div>
|
2510
|
-
<div class="method">
|
2511
|
-
<div class="title">
|
2512
|
-
<a name="M000705"></a><b>populate</b>(data=nil) {|| ...}
|
1466
|
+
<a name="M000385"></a><b>populate</b>(data=nil) {|| ...}
|
2513
1467
|
</div>
|
2514
1468
|
<div class="description">
|
2515
1469
|
<p>
|
@@ -2523,7 +1477,7 @@ Assign via accessor methods using a hash, associative array or block.
|
|
2523
1477
|
object.populate{ |s| s.a = 1; s.b = 2 }
|
2524
1478
|
</pre>
|
2525
1479
|
<p>
|
2526
|
-
These are all the same <a href="Kernel.html#
|
1480
|
+
These are all the same <a href="Kernel.html#M000344">as</a> doing:
|
2527
1481
|
</p>
|
2528
1482
|
<pre>
|
2529
1483
|
object.a = 1
|
@@ -2541,8 +1495,8 @@ TODO: Better name, set_with ?
|
|
2541
1495
|
</p>
|
2542
1496
|
</div>
|
2543
1497
|
<div class="sourcecode">
|
2544
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2545
|
-
<div id="
|
1498
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000385_source')" id="l_M000385_source">show source</a> ]</p>
|
1499
|
+
<div id="M000385_source" class="dyn-source">
|
2546
1500
|
<pre>
|
2547
1501
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/populate.rb, line 25</span>
|
2548
1502
|
<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>
|
@@ -2560,34 +1514,34 @@ TODO: Better name, set_with ?
|
|
2560
1514
|
</div>
|
2561
1515
|
<div class="method">
|
2562
1516
|
<div class="title">
|
2563
|
-
<a name="
|
1517
|
+
<a name="M000336"></a><b>promise</b>( ) {|result| ...}
|
2564
1518
|
</div>
|
2565
1519
|
<div class="description">
|
2566
1520
|
<p>
|
2567
|
-
The <a href="Kernel.html#
|
2568
|
-
<a href="Kernel.html#
|
2569
|
-
href="Kernel.html#
|
2570
|
-
returns a <a href="Kernel.html#
|
2571
|
-
provided block at a <a href="Kernel.html#
|
1521
|
+
The <a href="Kernel.html#M000336">promise</a>() function is used together
|
1522
|
+
<a href="Kernel.html#M000372">with</a> <a
|
1523
|
+
href="Kernel.html#M000337">demand</a>() to implement lazy evaluation. It
|
1524
|
+
returns a <a href="Kernel.html#M000336">promise</a> to evaluate the
|
1525
|
+
provided block at a <a href="Kernel.html#M000338">future</a> time.
|
2572
1526
|
Evaluation can be demanded and the block‘s result obtained via the <a
|
2573
|
-
href="Kernel.html#
|
1527
|
+
href="Kernel.html#M000337">demand</a>() function.
|
2574
1528
|
</p>
|
2575
1529
|
<p>
|
2576
1530
|
Implicit evaluation is also supported: the first message sent to it will <a
|
2577
|
-
href="Kernel.html#
|
1531
|
+
href="Kernel.html#M000337">demand</a> evaluation, after which that message
|
2578
1532
|
and any subsequent messages will be forwarded to the result object.
|
2579
1533
|
</p>
|
2580
1534
|
<p>
|
2581
1535
|
As an aid to circular programming, the block will be passed a <a
|
2582
|
-
href="Kernel.html#
|
1536
|
+
href="Kernel.html#M000336">promise</a> for its own result when it is
|
2583
1537
|
evaluated. Be careful not to force that <a
|
2584
|
-
href="Kernel.html#
|
1538
|
+
href="Kernel.html#M000336">promise</a> during the computation, lest the
|
2585
1539
|
computation diverge.
|
2586
1540
|
</p>
|
2587
1541
|
</div>
|
2588
1542
|
<div class="sourcecode">
|
2589
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2590
|
-
<div id="
|
1543
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000336_source')" id="l_M000336_source">show source</a> ]</p>
|
1544
|
+
<div id="M000336_source" class="dyn-source">
|
2591
1545
|
<pre>
|
2592
1546
|
<span class="ruby-comment cmt"># File lib/core/facets/lazy.rb, line 208</span>
|
2593
1547
|
<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>
|
@@ -2599,31 +1553,31 @@ computation diverge.
|
|
2599
1553
|
</div>
|
2600
1554
|
<div class="method">
|
2601
1555
|
<div class="title">
|
2602
|
-
<a name="
|
1556
|
+
<a name="M000367"></a><b>qua_class</b>(&block)
|
2603
1557
|
</div>
|
2604
1558
|
<div class="description">
|
2605
1559
|
<p>
|
2606
|
-
|
2607
|
-
|
1560
|
+
Easy access to an object qua class, otherwise known <a
|
1561
|
+
href="Kernel.html#M000344">as</a> the object‘s <a
|
1562
|
+
href="Kernel.html#M000381">singleton</a> class.
|
1563
|
+
</p>
|
1564
|
+
<p>
|
1565
|
+
Yes, another one.
|
2608
1566
|
</p>
|
2609
1567
|
<pre>
|
2610
|
-
|
1568
|
+
CREDIT: Trans
|
2611
1569
|
</pre>
|
2612
1570
|
</div>
|
2613
1571
|
<div class="sourcecode">
|
2614
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2615
|
-
<div id="
|
1572
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000367_source')" id="l_M000367_source">show source</a> ]</p>
|
1573
|
+
<div id="M000367_source" class="dyn-source">
|
2616
1574
|
<pre>
|
2617
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/
|
2618
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
2619
|
-
<span class="ruby-
|
2620
|
-
<span class="ruby-
|
2621
|
-
|
2622
|
-
|
2623
|
-
<span class="ruby-constant">Kernel</span>.<span class="ruby-identifier">require</span>( <span class="ruby-identifier">f</span> ) <span class="ruby-keyword kw">unless</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">directory?</span>( <span class="ruby-identifier">f</span> )
|
2624
|
-
}
|
2625
|
-
<span class="ruby-keyword kw">break</span>;
|
2626
|
-
<span class="ruby-keyword kw">end</span>
|
1575
|
+
<span class="ruby-comment cmt"># File lib/core/facets/kernel/qua_class.rb, line 10</span>
|
1576
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">qua_class</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
1577
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block_given?</span>
|
1578
|
+
(<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>).<span class="ruby-identifier">class_eval</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
1579
|
+
<span class="ruby-keyword kw">else</span>
|
1580
|
+
(<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>)
|
2627
1581
|
<span class="ruby-keyword kw">end</span>
|
2628
1582
|
<span class="ruby-keyword kw">end</span>
|
2629
1583
|
</pre>
|
@@ -2632,20 +1586,20 @@ directory, for <a href="Kernel.html#M000624">instance</a>.
|
|
2632
1586
|
</div>
|
2633
1587
|
<div class="method">
|
2634
1588
|
<div class="title">
|
2635
|
-
<a name="
|
1589
|
+
<a name="M000366"></a><b>require_all</b>(pat)
|
2636
1590
|
</div>
|
2637
1591
|
<div class="description">
|
2638
1592
|
<p>
|
2639
1593
|
Require a pattern of files. This make is easy to require an entire
|
2640
|
-
directory, for <a href="Kernel.html#
|
1594
|
+
directory, for <a href="Kernel.html#M000353">instance</a>.
|
2641
1595
|
</p>
|
2642
1596
|
<pre>
|
2643
1597
|
require_all 'facets/time/*'
|
2644
1598
|
</pre>
|
2645
1599
|
</div>
|
2646
1600
|
<div class="sourcecode">
|
2647
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2648
|
-
<div id="
|
1601
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000366_source')" id="l_M000366_source">show source</a> ]</p>
|
1602
|
+
<div id="M000366_source" class="dyn-source">
|
2649
1603
|
<pre>
|
2650
1604
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/require_all.rb, line 8</span>
|
2651
1605
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">require_all</span>(<span class="ruby-identifier">pat</span>)
|
@@ -2665,38 +1619,11 @@ directory, for <a href="Kernel.html#M000624">instance</a>.
|
|
2665
1619
|
</div>
|
2666
1620
|
<div class="method">
|
2667
1621
|
<div class="title">
|
2668
|
-
<a name="
|
2669
|
-
</div>
|
2670
|
-
<div class="description">
|
2671
|
-
<p>
|
2672
|
-
Require file from same dir <a href="Kernel.html#M000614">as</a> calling
|
2673
|
-
script.
|
2674
|
-
</p>
|
2675
|
-
<pre>
|
2676
|
-
require_local 'templib'
|
2677
|
-
</pre>
|
2678
|
-
</div>
|
2679
|
-
<div class="sourcecode">
|
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">
|
2682
|
-
<pre>
|
2683
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/require_local.rb, line 7</span>
|
2684
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">require_local</span>(<span class="ruby-identifier">fname</span>)
|
2685
|
-
<span class="ruby-comment cmt">#fdir = File.expand_path( File.dirname( caller[0] ) )</span>
|
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>] )
|
2687
|
-
<span class="ruby-identifier">require</span>( <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>( <span class="ruby-identifier">fdir</span>, <span class="ruby-identifier">fname</span> ) )
|
2688
|
-
<span class="ruby-keyword kw">end</span>
|
2689
|
-
</pre>
|
2690
|
-
</div>
|
2691
|
-
</div>
|
2692
|
-
</div>
|
2693
|
-
<div class="method">
|
2694
|
-
<div class="title">
|
2695
|
-
<a name="M000709"></a><b>require_local</b>(fname)
|
1622
|
+
<a name="M000389"></a><b>require_local</b>(fname)
|
2696
1623
|
</div>
|
2697
1624
|
<div class="description">
|
2698
1625
|
<p>
|
2699
|
-
Require file from same dir <a href="Kernel.html#
|
1626
|
+
Require file from same dir <a href="Kernel.html#M000344">as</a> calling
|
2700
1627
|
script.
|
2701
1628
|
</p>
|
2702
1629
|
<pre>
|
@@ -2704,8 +1631,8 @@ script.
|
|
2704
1631
|
</pre>
|
2705
1632
|
</div>
|
2706
1633
|
<div class="sourcecode">
|
2707
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2708
|
-
<div id="
|
1634
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000389_source')" id="l_M000389_source">show source</a> ]</p>
|
1635
|
+
<div id="M000389_source" class="dyn-source">
|
2709
1636
|
<pre>
|
2710
1637
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/require_local.rb, line 7</span>
|
2711
1638
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">require_local</span>(<span class="ruby-identifier">fname</span>)
|
@@ -2719,35 +1646,7 @@ script.
|
|
2719
1646
|
</div>
|
2720
1647
|
<div class="method">
|
2721
1648
|
<div class="title">
|
2722
|
-
<a name="
|
2723
|
-
</div>
|
2724
|
-
<div class="description">
|
2725
|
-
<p>
|
2726
|
-
Provides a shortcut to the Regexp.escape module method.
|
2727
|
-
</p>
|
2728
|
-
<pre>
|
2729
|
-
resc("H..LO") #=> "H\\.\\.LO"
|
2730
|
-
|
2731
|
-
TODO: Should this be deprecated in favor of String#to_re/to_rx ?
|
2732
|
-
|
2733
|
-
CREDIT: Trans
|
2734
|
-
</pre>
|
2735
|
-
</div>
|
2736
|
-
<div class="sourcecode">
|
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">
|
2739
|
-
<pre>
|
2740
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/resc.rb, line 11</span>
|
2741
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">resc</span>(<span class="ruby-identifier">str</span>)
|
2742
|
-
<span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">escape</span>(<span class="ruby-identifier">str</span>.<span class="ruby-identifier">to_s</span>)
|
2743
|
-
<span class="ruby-keyword kw">end</span>
|
2744
|
-
</pre>
|
2745
|
-
</div>
|
2746
|
-
</div>
|
2747
|
-
</div>
|
2748
|
-
<div class="method">
|
2749
|
-
<div class="title">
|
2750
|
-
<a name="M000638"></a><b>resc</b>(str)
|
1649
|
+
<a name="M000368"></a><b>resc</b>(str)
|
2751
1650
|
</div>
|
2752
1651
|
<div class="description">
|
2753
1652
|
<p>
|
@@ -2762,8 +1661,8 @@ Provides a shortcut to the Regexp.escape module method.
|
|
2762
1661
|
</pre>
|
2763
1662
|
</div>
|
2764
1663
|
<div class="sourcecode">
|
2765
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2766
|
-
<div id="
|
1664
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000368_source')" id="l_M000368_source">show source</a> ]</p>
|
1665
|
+
<div id="M000368_source" class="dyn-source">
|
2767
1666
|
<pre>
|
2768
1667
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/resc.rb, line 11</span>
|
2769
1668
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">resc</span>(<span class="ruby-identifier">str</span>)
|
@@ -2775,46 +1674,12 @@ Provides a shortcut to the Regexp.escape module method.
|
|
2775
1674
|
</div>
|
2776
1675
|
<div class="method">
|
2777
1676
|
<div class="title">
|
2778
|
-
<a name="
|
2779
|
-
</div>
|
2780
|
-
<div class="description">
|
2781
|
-
<p>
|
2782
|
-
Like respond_to? but returns the result of the call if it does indeed <a
|
2783
|
-
href="Kernel.html#M000661">respond</a>.
|
2784
|
-
</p>
|
2785
|
-
<pre>
|
2786
|
-
class X
|
2787
|
-
def f; "f"; end
|
2788
|
-
end
|
2789
|
-
|
2790
|
-
x = X.new
|
2791
|
-
x.respond(:f) #=> "f"
|
2792
|
-
x.respond(:g) #=> nil
|
2793
|
-
|
2794
|
-
CREDIT: Trans
|
2795
|
-
</pre>
|
2796
|
-
</div>
|
2797
|
-
<div class="sourcecode">
|
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">
|
2800
|
-
<pre>
|
2801
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/respond.rb, line 16</span>
|
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>)
|
2803
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span> <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">not</span> <span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">sym</span>)
|
2804
|
-
<span class="ruby-identifier">send</span>(<span class="ruby-identifier">sym</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
2805
|
-
<span class="ruby-keyword kw">end</span>
|
2806
|
-
</pre>
|
2807
|
-
</div>
|
2808
|
-
</div>
|
2809
|
-
</div>
|
2810
|
-
<div class="method">
|
2811
|
-
<div class="title">
|
2812
|
-
<a name="M000661"></a><b>respond</b>(sym, *args)
|
1677
|
+
<a name="M000391"></a><b>respond</b>(sym, *args)
|
2813
1678
|
</div>
|
2814
1679
|
<div class="description">
|
2815
1680
|
<p>
|
2816
1681
|
Like respond_to? but returns the result of the call if it does indeed <a
|
2817
|
-
href="Kernel.html#
|
1682
|
+
href="Kernel.html#M000391">respond</a>.
|
2818
1683
|
</p>
|
2819
1684
|
<pre>
|
2820
1685
|
class X
|
@@ -2830,12 +1695,11 @@ href="Kernel.html#M000661">respond</a>.
|
|
2830
1695
|
</div>
|
2831
1696
|
<div class="aka">
|
2832
1697
|
This method is also aliased as
|
2833
|
-
<a href="Kernel.html#
|
2834
|
-
<a href="Kernel.html#M000712">respond_with_value</a>
|
1698
|
+
<a href="Kernel.html#M000392">respond_with_value</a>
|
2835
1699
|
</div>
|
2836
1700
|
<div class="sourcecode">
|
2837
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2838
|
-
<div id="
|
1701
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000391_source')" id="l_M000391_source">show source</a> ]</p>
|
1702
|
+
<div id="M000391_source" class="dyn-source">
|
2839
1703
|
<pre>
|
2840
1704
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/respond.rb, line 16</span>
|
2841
1705
|
<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>)
|
@@ -2848,27 +1712,17 @@ href="Kernel.html#M000661">respond</a>.
|
|
2848
1712
|
</div>
|
2849
1713
|
<div class="method">
|
2850
1714
|
<div class="title">
|
2851
|
-
<a name="
|
2852
|
-
</div>
|
2853
|
-
<div class="description">
|
2854
|
-
<p>
|
2855
|
-
Alias for <a href="Kernel.html#M000661">respond</a>
|
2856
|
-
</p>
|
2857
|
-
</div>
|
2858
|
-
</div>
|
2859
|
-
<div class="method">
|
2860
|
-
<div class="title">
|
2861
|
-
<a name="M000662"></a><b>respond_with_value</b>(sym, *args)
|
1715
|
+
<a name="M000392"></a><b>respond_with_value</b>(sym, *args)
|
2862
1716
|
</div>
|
2863
1717
|
<div class="description">
|
2864
1718
|
<p>
|
2865
|
-
Alias for <a href="Kernel.html#
|
1719
|
+
Alias for <a href="Kernel.html#M000391">respond</a>
|
2866
1720
|
</p>
|
2867
1721
|
</div>
|
2868
1722
|
</div>
|
2869
1723
|
<div class="method">
|
2870
1724
|
<div class="title">
|
2871
|
-
<a name="
|
1725
|
+
<a name="M000384"></a><b>returning</b>(obj=self) {|| ...}
|
2872
1726
|
</div>
|
2873
1727
|
<div class="description">
|
2874
1728
|
<p>
|
@@ -2881,11 +1735,11 @@ A Ruby-ized realization of the K combinator.
|
|
2881
1735
|
end
|
2882
1736
|
</pre>
|
2883
1737
|
<p>
|
2884
|
-
Technically, <a href="Kernel.html#
|
1738
|
+
Technically, <a href="Kernel.html#M000384">returning</a> probably should
|
2885
1739
|
force the return of the stated object irregardless of any return statements
|
2886
1740
|
that might appear within it‘s block. This might differentiate <a
|
2887
|
-
href="Kernel.html#
|
2888
|
-
href="Kernel.html#
|
1741
|
+
href="Kernel.html#M000384">returning</a> from <a
|
1742
|
+
href="Kernel.html#M000372">with</a>, however it also would require
|
2889
1743
|
implementation in Ruby itself.
|
2890
1744
|
</p>
|
2891
1745
|
<pre>
|
@@ -2893,8 +1747,8 @@ implementation in Ruby itself.
|
|
2893
1747
|
</pre>
|
2894
1748
|
</div>
|
2895
1749
|
<div class="sourcecode">
|
2896
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2897
|
-
<div id="
|
1750
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000384_source')" id="l_M000384_source">show source</a> ]</p>
|
1751
|
+
<div id="M000384_source" class="dyn-source">
|
2898
1752
|
<pre>
|
2899
1753
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/returning.rb, line 18</span>
|
2900
1754
|
<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>
|
@@ -2907,38 +1761,23 @@ implementation in Ruby itself.
|
|
2907
1761
|
</div>
|
2908
1762
|
<div class="method">
|
2909
1763
|
<div class="title">
|
2910
|
-
<a name="
|
1764
|
+
<a name="M000345"></a><b>send_as</b>(ancestor, sym, *args, &blk)
|
2911
1765
|
</div>
|
2912
1766
|
<div class="description">
|
2913
1767
|
<p>
|
2914
|
-
|
1768
|
+
Call parent class/module methods once bound to self.
|
2915
1769
|
</p>
|
2916
|
-
<pre>
|
2917
|
-
returning Book.new do |book|
|
2918
|
-
book.title = "Imperium"
|
2919
|
-
book.author = "Ulick Varange"
|
2920
|
-
end
|
2921
|
-
</pre>
|
2922
1770
|
<p>
|
2923
|
-
|
2924
|
-
force the return of the stated object irregardless of any return statements
|
2925
|
-
that might appear within it‘s block. This might differentiate <a
|
2926
|
-
href="Kernel.html#M000654">returning</a> from <a
|
2927
|
-
href="Kernel.html#M000642">with</a>, however it also would require
|
2928
|
-
implementation in Ruby itself.
|
1771
|
+
TODO: Does this have the proper scope for send?
|
2929
1772
|
</p>
|
2930
|
-
<pre>
|
2931
|
-
CREDIT: Mikael Brockman
|
2932
|
-
</pre>
|
2933
1773
|
</div>
|
2934
1774
|
<div class="sourcecode">
|
2935
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2936
|
-
<div id="
|
1775
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000345_source')" id="l_M000345_source">show source</a> ]</p>
|
1776
|
+
<div id="M000345_source" class="dyn-source">
|
2937
1777
|
<pre>
|
2938
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/
|
2939
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
2940
|
-
<span class="ruby-keyword kw">
|
2941
|
-
<span class="ruby-identifier">obj</span>
|
1778
|
+
<span class="ruby-comment cmt"># File lib/core/facets/kernel/as.rb, line 36</span>
|
1779
|
+
<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>)
|
1780
|
+
<span class="ruby-identifier">ancestor</span>.<span class="ruby-identifier">instance_method</span>(<span class="ruby-identifier">sym</span>).<span class="ruby-identifier">bind</span>(<span class="ruby-keyword kw">self</span>).<span class="ruby-identifier">call</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>,<span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
2942
1781
|
<span class="ruby-keyword kw">end</span>
|
2943
1782
|
</pre>
|
2944
1783
|
</div>
|
@@ -2946,59 +1785,11 @@ implementation in Ruby itself.
|
|
2946
1785
|
</div>
|
2947
1786
|
<div class="method">
|
2948
1787
|
<div class="title">
|
2949
|
-
<a name="
|
1788
|
+
<a name="M000386"></a><b>set_from</b>(obj, *fields)
|
2950
1789
|
</div>
|
2951
1790
|
<div class="description">
|
2952
1791
|
<p>
|
2953
|
-
|
2954
|
-
</p>
|
2955
|
-
<p>
|
2956
|
-
TODO: Does this have the proper scope for send?
|
2957
|
-
</p>
|
2958
|
-
</div>
|
2959
|
-
<div class="sourcecode">
|
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">
|
2962
|
-
<pre>
|
2963
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/as.rb, line 36</span>
|
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>)
|
2965
|
-
<span class="ruby-identifier">ancestor</span>.<span class="ruby-identifier">instance_method</span>(<span class="ruby-identifier">sym</span>).<span class="ruby-identifier">bind</span>(<span class="ruby-keyword kw">self</span>).<span class="ruby-identifier">call</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>,<span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
2966
|
-
<span class="ruby-keyword kw">end</span>
|
2967
|
-
</pre>
|
2968
|
-
</div>
|
2969
|
-
</div>
|
2970
|
-
</div>
|
2971
|
-
<div class="method">
|
2972
|
-
<div class="title">
|
2973
|
-
<a name="M000615"></a><b>send_as</b>(ancestor, sym, *args, &blk)
|
2974
|
-
</div>
|
2975
|
-
<div class="description">
|
2976
|
-
<p>
|
2977
|
-
Call parent class/module methods once bound to self.
|
2978
|
-
</p>
|
2979
|
-
<p>
|
2980
|
-
TODO: Does this have the proper scope for send?
|
2981
|
-
</p>
|
2982
|
-
</div>
|
2983
|
-
<div class="sourcecode">
|
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">
|
2986
|
-
<pre>
|
2987
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/as.rb, line 36</span>
|
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>)
|
2989
|
-
<span class="ruby-identifier">ancestor</span>.<span class="ruby-identifier">instance_method</span>(<span class="ruby-identifier">sym</span>).<span class="ruby-identifier">bind</span>(<span class="ruby-keyword kw">self</span>).<span class="ruby-identifier">call</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>,<span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
2990
|
-
<span class="ruby-keyword kw">end</span>
|
2991
|
-
</pre>
|
2992
|
-
</div>
|
2993
|
-
</div>
|
2994
|
-
</div>
|
2995
|
-
<div class="method">
|
2996
|
-
<div class="title">
|
2997
|
-
<a name="M000706"></a><b>set_from</b>(obj, *fields)
|
2998
|
-
</div>
|
2999
|
-
<div class="description">
|
3000
|
-
<p>
|
3001
|
-
Set setter methods using a another object.
|
1792
|
+
Set setter methods using a another object.
|
3002
1793
|
</p>
|
3003
1794
|
<pre>
|
3004
1795
|
class X
|
@@ -3021,8 +1812,8 @@ TODO: pepulate_from(obj) ?
|
|
3021
1812
|
</p>
|
3022
1813
|
</div>
|
3023
1814
|
<div class="sourcecode">
|
3024
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3025
|
-
<div id="
|
1815
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000386_source')" id="l_M000386_source">show source</a> ]</p>
|
1816
|
+
<div id="M000386_source" class="dyn-source">
|
3026
1817
|
<pre>
|
3027
1818
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/populate.rb, line 54</span>
|
3028
1819
|
<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>)
|
@@ -3048,65 +1839,11 @@ TODO: pepulate_from(obj) ?
|
|
3048
1839
|
</div>
|
3049
1840
|
<div class="method">
|
3050
1841
|
<div class="title">
|
3051
|
-
<a name="
|
3052
|
-
</div>
|
3053
|
-
<div class="description">
|
3054
|
-
<p>
|
3055
|
-
Set setter methods using a another object.
|
3056
|
-
</p>
|
3057
|
-
<pre>
|
3058
|
-
class X
|
3059
|
-
attr_accessor :a, :b
|
3060
|
-
def initialize( a, b )
|
3061
|
-
@a,@b = a,b
|
3062
|
-
end
|
3063
|
-
end
|
3064
|
-
|
3065
|
-
obj1 = X.new( 1, 2 )
|
3066
|
-
obj2 = X.new
|
3067
|
-
|
3068
|
-
obj2.set_from(obj1)
|
3069
|
-
|
3070
|
-
obj2.a #=> 1
|
3071
|
-
obj2.b #=> 2
|
3072
|
-
</pre>
|
3073
|
-
<p>
|
3074
|
-
TODO: pepulate_from(obj) ?
|
3075
|
-
</p>
|
1842
|
+
<a name="M000361"></a><b>silence_stderr</b>( {|| ...}
|
3076
1843
|
</div>
|
3077
1844
|
<div class="sourcecode">
|
3078
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3079
|
-
<div id="
|
3080
|
-
<pre>
|
3081
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/populate.rb, line 54</span>
|
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>)
|
3083
|
-
<span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">fields</span>.<span class="ruby-identifier">empty?</span>
|
3084
|
-
<span class="ruby-identifier">fields</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span>
|
3085
|
-
<span class="ruby-identifier">send</span>( <span class="ruby-node">"#{k}="</span>, <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">send</span>(<span class="ruby-node">"#{k}"</span>) ) <span class="ruby-comment cmt">#if self.respond_to?("#{k}=") && obj.respond_to?("#{k}")</span>
|
3086
|
-
<span class="ruby-keyword kw">end</span>
|
3087
|
-
<span class="ruby-keyword kw">else</span>
|
3088
|
-
<span class="ruby-identifier">setters</span> = <span class="ruby-identifier">methods</span>.<span class="ruby-identifier">collect</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">m</span><span class="ruby-operator">|</span> <span class="ruby-identifier">m</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/=$/</span> }
|
3089
|
-
<span class="ruby-identifier">setters</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">setter</span><span class="ruby-operator">|</span>
|
3090
|
-
<span class="ruby-identifier">getter</span> = <span class="ruby-identifier">setter</span>.<span class="ruby-identifier">chomp</span>(<span class="ruby-value str">'='</span>)
|
3091
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">getter</span>)
|
3092
|
-
<span class="ruby-identifier">send</span>( <span class="ruby-identifier">setter</span>, <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">getter</span>) )
|
3093
|
-
<span class="ruby-identifier">fields</span> <span class="ruby-operator"><</span> <span class="ruby-identifier">getter</span>
|
3094
|
-
<span class="ruby-keyword kw">end</span>
|
3095
|
-
<span class="ruby-keyword kw">end</span>
|
3096
|
-
<span class="ruby-keyword kw">end</span>
|
3097
|
-
<span class="ruby-identifier">fields</span>
|
3098
|
-
<span class="ruby-keyword kw">end</span>
|
3099
|
-
</pre>
|
3100
|
-
</div>
|
3101
|
-
</div>
|
3102
|
-
</div>
|
3103
|
-
<div class="method">
|
3104
|
-
<div class="title">
|
3105
|
-
<a name="M000682"></a><b>silence_stderr</b>( {|| ...}
|
3106
|
-
</div>
|
3107
|
-
<div class="sourcecode">
|
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">
|
1845
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000361_source')" id="l_M000361_source">show source</a> ]</p>
|
1846
|
+
<div id="M000361_source" class="dyn-source">
|
3110
1847
|
<pre>
|
3111
1848
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/silence.rb, line 27</span>
|
3112
1849
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">silence_stderr</span> <span class="ruby-comment cmt">#:yeild:</span>
|
@@ -3118,43 +1855,11 @@ TODO: pepulate_from(obj) ?
|
|
3118
1855
|
</div>
|
3119
1856
|
<div class="method">
|
3120
1857
|
<div class="title">
|
3121
|
-
<a name="
|
3122
|
-
</div>
|
3123
|
-
<div class="sourcecode">
|
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">
|
3126
|
-
<pre>
|
3127
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/silence.rb, line 27</span>
|
3128
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">silence_stderr</span> <span class="ruby-comment cmt">#:yeild:</span>
|
3129
|
-
<span class="ruby-identifier">silence_stream</span>(<span class="ruby-constant">STDERR</span>) { <span class="ruby-keyword kw">yield</span> }
|
3130
|
-
<span class="ruby-keyword kw">end</span>
|
3131
|
-
</pre>
|
3132
|
-
</div>
|
3133
|
-
</div>
|
3134
|
-
</div>
|
3135
|
-
<div class="method">
|
3136
|
-
<div class="title">
|
3137
|
-
<a name="M000683"></a><b>silence_stdout</b>( {|| ...}
|
3138
|
-
</div>
|
3139
|
-
<div class="sourcecode">
|
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">
|
3142
|
-
<pre>
|
3143
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/silence.rb, line 32</span>
|
3144
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">silence_stdout</span> <span class="ruby-comment cmt">#:yeild:</span>
|
3145
|
-
<span class="ruby-identifier">silence_stream</span>(<span class="ruby-constant">STDOUT</span>) { <span class="ruby-keyword kw">yield</span> }
|
3146
|
-
<span class="ruby-keyword kw">end</span>
|
3147
|
-
</pre>
|
3148
|
-
</div>
|
3149
|
-
</div>
|
3150
|
-
</div>
|
3151
|
-
<div class="method">
|
3152
|
-
<div class="title">
|
3153
|
-
<a name="M000633"></a><b>silence_stdout</b>( {|| ...}
|
1858
|
+
<a name="M000362"></a><b>silence_stdout</b>( {|| ...}
|
3154
1859
|
</div>
|
3155
1860
|
<div class="sourcecode">
|
3156
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3157
|
-
<div id="
|
1861
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000362_source')" id="l_M000362_source">show source</a> ]</p>
|
1862
|
+
<div id="M000362_source" class="dyn-source">
|
3158
1863
|
<pre>
|
3159
1864
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/silence.rb, line 32</span>
|
3160
1865
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">silence_stdout</span> <span class="ruby-comment cmt">#:yeild:</span>
|
@@ -3166,46 +1871,7 @@ TODO: pepulate_from(obj) ?
|
|
3166
1871
|
</div>
|
3167
1872
|
<div class="method">
|
3168
1873
|
<div class="title">
|
3169
|
-
<a name="
|
3170
|
-
</div>
|
3171
|
-
<div class="description">
|
3172
|
-
<p>
|
3173
|
-
Silences any stream for the duration of the block.
|
3174
|
-
</p>
|
3175
|
-
<pre>
|
3176
|
-
silence_stream(STDOUT) do
|
3177
|
-
puts 'This will never be seen'
|
3178
|
-
end
|
3179
|
-
|
3180
|
-
puts 'But this will'
|
3181
|
-
|
3182
|
-
CREDIT: David Heinemeier Hansson
|
3183
|
-
</pre>
|
3184
|
-
</div>
|
3185
|
-
<div class="sourcecode">
|
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">
|
3188
|
-
<pre>
|
3189
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/silence.rb, line 13</span>
|
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>
|
3191
|
-
<span class="ruby-identifier">on_hold</span> = <span class="ruby-identifier">streams</span>.<span class="ruby-identifier">collect</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">stream</span><span class="ruby-operator">|</span> <span class="ruby-identifier">stream</span>.<span class="ruby-identifier">dup</span> }
|
3192
|
-
<span class="ruby-identifier">streams</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">stream</span><span class="ruby-operator">|</span>
|
3193
|
-
<span class="ruby-identifier">stream</span>.<span class="ruby-identifier">reopen</span>(<span class="ruby-constant">RUBY_PLATFORM</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/mswin/</span> <span class="ruby-operator">?</span> <span class="ruby-value str">'NUL:'</span> <span class="ruby-operator">:</span> <span class="ruby-value str">'/dev/null'</span>)
|
3194
|
-
<span class="ruby-identifier">stream</span>.<span class="ruby-identifier">sync</span> = <span class="ruby-keyword kw">true</span>
|
3195
|
-
<span class="ruby-keyword kw">end</span>
|
3196
|
-
<span class="ruby-keyword kw">yield</span>
|
3197
|
-
<span class="ruby-keyword kw">ensure</span>
|
3198
|
-
<span class="ruby-identifier">streams</span>.<span class="ruby-identifier">each_with_index</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">stream</span>, <span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
|
3199
|
-
<span class="ruby-identifier">stream</span>.<span class="ruby-identifier">reopen</span>(<span class="ruby-identifier">on_hold</span>[<span class="ruby-identifier">i</span>])
|
3200
|
-
<span class="ruby-keyword kw">end</span>
|
3201
|
-
<span class="ruby-keyword kw">end</span>
|
3202
|
-
</pre>
|
3203
|
-
</div>
|
3204
|
-
</div>
|
3205
|
-
</div>
|
3206
|
-
<div class="method">
|
3207
|
-
<div class="title">
|
3208
|
-
<a name="M000681"></a><b>silence_stream</b>(*streams) {|| ...}
|
1874
|
+
<a name="M000360"></a><b>silence_stream</b>(*streams) {|| ...}
|
3209
1875
|
</div>
|
3210
1876
|
<div class="description">
|
3211
1877
|
<p>
|
@@ -3222,8 +1888,8 @@ Silences any stream for the duration of the block.
|
|
3222
1888
|
</pre>
|
3223
1889
|
</div>
|
3224
1890
|
<div class="sourcecode">
|
3225
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3226
|
-
<div id="
|
1891
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000360_source')" id="l_M000360_source">show source</a> ]</p>
|
1892
|
+
<div id="M000360_source" class="dyn-source">
|
3227
1893
|
<pre>
|
3228
1894
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/silence.rb, line 13</span>
|
3229
1895
|
<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>
|
@@ -3244,7 +1910,7 @@ Silences any stream for the duration of the block.
|
|
3244
1910
|
</div>
|
3245
1911
|
<div class="method">
|
3246
1912
|
<div class="title">
|
3247
|
-
<a name="
|
1913
|
+
<a name="M000364"></a><b>silence_warnings</b>() {|| ...}
|
3248
1914
|
</div>
|
3249
1915
|
<div class="description">
|
3250
1916
|
<p>
|
@@ -3262,8 +1928,8 @@ value afterwards.
|
|
3262
1928
|
</pre>
|
3263
1929
|
</div>
|
3264
1930
|
<div class="sourcecode">
|
3265
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3266
|
-
<div id="
|
1931
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000364_source')" id="l_M000364_source">show source</a> ]</p>
|
1932
|
+
<div id="M000364_source" class="dyn-source">
|
3267
1933
|
<pre>
|
3268
1934
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/silence.rb, line 55</span>
|
3269
1935
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">silence_warnings</span>
|
@@ -3278,51 +1944,17 @@ value afterwards.
|
|
3278
1944
|
</div>
|
3279
1945
|
<div class="method">
|
3280
1946
|
<div class="title">
|
3281
|
-
<a name="
|
1947
|
+
<a name="M000363"></a><b>silently</b>(*streams) {|| ...}
|
3282
1948
|
</div>
|
3283
1949
|
<div class="description">
|
3284
1950
|
<p>
|
3285
|
-
|
3286
|
-
value afterwards.
|
3287
|
-
</p>
|
3288
|
-
<pre>
|
3289
|
-
silence_warnings do
|
3290
|
-
value = noisy_call # no warning voiced
|
3291
|
-
end
|
3292
|
-
|
3293
|
-
noisy_call # no warning is voiced
|
3294
|
-
|
3295
|
-
CREDIT: David Heinemeier Hansson
|
3296
|
-
</pre>
|
3297
|
-
</div>
|
3298
|
-
<div class="sourcecode">
|
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">
|
3301
|
-
<pre>
|
3302
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/silence.rb, line 55</span>
|
3303
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">silence_warnings</span>
|
3304
|
-
<span class="ruby-identifier">old_verbose</span>, <span class="ruby-identifier">$VERBOSE</span> = <span class="ruby-identifier">$VERBOSE</span>, <span class="ruby-keyword kw">nil</span>
|
3305
|
-
<span class="ruby-keyword kw">yield</span>
|
3306
|
-
<span class="ruby-keyword kw">ensure</span>
|
3307
|
-
<span class="ruby-identifier">$VERBOSE</span> = <span class="ruby-identifier">old_verbose</span>
|
3308
|
-
<span class="ruby-keyword kw">end</span>
|
3309
|
-
</pre>
|
3310
|
-
</div>
|
3311
|
-
</div>
|
3312
|
-
</div>
|
3313
|
-
<div class="method">
|
3314
|
-
<div class="title">
|
3315
|
-
<a name="M000634"></a><b>silently</b>(*streams) {|| ...}
|
3316
|
-
</div>
|
3317
|
-
<div class="description">
|
3318
|
-
<p>
|
3319
|
-
Just like <a href="Kernel.html#M000631">silence_stream</a>, but will
|
1951
|
+
Just like <a href="Kernel.html#M000360">silence_stream</a>, but will
|
3320
1952
|
default to STDOUT, STDERR if no streams are given.
|
3321
1953
|
</p>
|
3322
1954
|
</div>
|
3323
1955
|
<div class="sourcecode">
|
3324
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3325
|
-
<div id="
|
1956
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000363_source')" id="l_M000363_source">show source</a> ]</p>
|
1957
|
+
<div id="M000363_source" class="dyn-source">
|
3326
1958
|
<pre>
|
3327
1959
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/silence.rb, line 39</span>
|
3328
1960
|
<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>
|
@@ -3335,111 +1967,35 @@ default to STDOUT, STDERR if no streams are given.
|
|
3335
1967
|
</div>
|
3336
1968
|
<div class="method">
|
3337
1969
|
<div class="title">
|
3338
|
-
<a name="
|
1970
|
+
<a name="M000381"></a><b>singleton</b>(&block)
|
3339
1971
|
</div>
|
3340
1972
|
<div class="description">
|
3341
1973
|
<p>
|
3342
|
-
|
3343
|
-
default to STDOUT, STDERR if no streams are given.
|
1974
|
+
Alias for <a href="Kernel.html#M000380">singleton_class</a>
|
3344
1975
|
</p>
|
3345
1976
|
</div>
|
3346
|
-
<div class="sourcecode">
|
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">
|
3349
|
-
<pre>
|
3350
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/silence.rb, line 39</span>
|
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>
|
3352
|
-
<span class="ruby-identifier">streams</span> = [<span class="ruby-constant">STDOUT</span>, <span class="ruby-constant">STDERR</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">streams</span>.<span class="ruby-identifier">empty?</span>
|
3353
|
-
<span class="ruby-identifier">silence_stream</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">streams</span>){ <span class="ruby-keyword kw">yield</span> }
|
3354
|
-
<span class="ruby-keyword kw">end</span>
|
3355
|
-
</pre>
|
3356
|
-
</div>
|
3357
|
-
</div>
|
3358
1977
|
</div>
|
3359
1978
|
<div class="method">
|
3360
1979
|
<div class="title">
|
3361
|
-
<a name="
|
1980
|
+
<a name="M000380"></a><b>singleton_class</b>(&block)
|
3362
1981
|
</div>
|
3363
1982
|
<div class="description">
|
3364
1983
|
<p>
|
3365
|
-
|
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.
|
1984
|
+
Easy access to an object‘s "special" class,
|
3369
1985
|
</p>
|
3370
1986
|
<p>
|
3371
1987
|
One day these names must be reconciled!
|
3372
1988
|
</p>
|
3373
1989
|
</div>
|
3374
|
-
<div class="
|
3375
|
-
|
3376
|
-
<
|
3377
|
-
<pre>
|
3378
|
-
<span class="ruby-comment cmt"># File lib/core/facets/metaid.rb, line 62</span>
|
3379
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">singleton</span>
|
3380
|
-
(<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>)
|
3381
|
-
<span class="ruby-keyword kw">end</span>
|
3382
|
-
</pre>
|
3383
|
-
</div>
|
3384
|
-
</div>
|
3385
|
-
</div>
|
3386
|
-
<div class="method">
|
3387
|
-
<div class="title">
|
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)
|
3405
|
-
</div>
|
3406
|
-
<div class="description">
|
3407
|
-
<p>
|
3408
|
-
Easy access to an object‘s "special" class, otherwise known
|
3409
|
-
<a href="Kernel.html#M000614">as</a> it‘s eigen or meta class.
|
3410
|
-
</p>
|
3411
|
-
</div>
|
3412
|
-
<div class="sourcecode">
|
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">
|
3415
|
-
<pre>
|
3416
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/singleton_class.rb, line 6</span>
|
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>)
|
3418
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block_given?</span>
|
3419
|
-
(<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>).<span class="ruby-identifier">class_eval</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
3420
|
-
<span class="ruby-keyword kw">else</span>
|
3421
|
-
(<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>)
|
3422
|
-
<span class="ruby-keyword kw">end</span>
|
3423
|
-
<span class="ruby-keyword kw">end</span>
|
3424
|
-
</pre>
|
3425
|
-
</div>
|
3426
|
-
</div>
|
1990
|
+
<div class="aka">
|
1991
|
+
This method is also aliased as
|
1992
|
+
<a href="Kernel.html#M000381">singleton</a>
|
3427
1993
|
</div>
|
3428
|
-
<div class="method">
|
3429
|
-
<div class="title">
|
3430
|
-
<a name="M000651"></a><b>singleton_class</b>(&block)
|
3431
|
-
</div>
|
3432
|
-
<div class="description">
|
3433
|
-
<p>
|
3434
|
-
Easy access to an object‘s "special" class, otherwise known
|
3435
|
-
<a href="Kernel.html#M000614">as</a> it‘s eigen or meta class.
|
3436
|
-
</p>
|
3437
|
-
</div>
|
3438
1994
|
<div class="sourcecode">
|
3439
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3440
|
-
<div id="
|
1995
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000380_source')" id="l_M000380_source">show source</a> ]</p>
|
1996
|
+
<div id="M000380_source" class="dyn-source">
|
3441
1997
|
<pre>
|
3442
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/singleton_class.rb, line
|
1998
|
+
<span class="ruby-comment cmt"># File lib/core/facets/kernel/singleton_class.rb, line 7</span>
|
3443
1999
|
<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>)
|
3444
2000
|
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block_given?</span>
|
3445
2001
|
(<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>).<span class="ruby-identifier">class_eval</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -3453,47 +2009,7 @@ Easy access to an object‘s "special" class, otherwise known
|
|
3453
2009
|
</div>
|
3454
2010
|
<div class="method">
|
3455
2011
|
<div class="title">
|
3456
|
-
<a name="
|
3457
|
-
</div>
|
3458
|
-
<div class="description">
|
3459
|
-
<p>
|
3460
|
-
Like super but skips to a specific ancestor module or class.
|
3461
|
-
</p>
|
3462
|
-
<pre>
|
3463
|
-
class A
|
3464
|
-
def x ; 1 ; end
|
3465
|
-
end
|
3466
|
-
|
3467
|
-
class B < A
|
3468
|
-
def x ; 2 ; end
|
3469
|
-
end
|
3470
|
-
|
3471
|
-
class C < B
|
3472
|
-
def x ; super_as(A) ; end
|
3473
|
-
end
|
3474
|
-
|
3475
|
-
C.new.x #=> 1
|
3476
|
-
</pre>
|
3477
|
-
</div>
|
3478
|
-
<div class="sourcecode">
|
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">
|
3481
|
-
<pre>
|
3482
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/as.rb, line 73</span>
|
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>)
|
3484
|
-
<span class="ruby-keyword kw">unless</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">ancestors</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">klass</span>)
|
3485
|
-
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>
|
3486
|
-
<span class="ruby-keyword kw">end</span>
|
3487
|
-
<span class="ruby-identifier">called</span> = <span class="ruby-regexp re">/\`([^\']+)\'/</span>.<span class="ruby-identifier">match</span>(<span class="ruby-identifier">caller</span>(<span class="ruby-value">1</span>).<span class="ruby-identifier">first</span>)[<span class="ruby-value">1</span>].<span class="ruby-identifier">to_sym</span>
|
3488
|
-
<span class="ruby-identifier">klass</span>.<span class="ruby-identifier">instance_method</span>(<span class="ruby-identifier">called</span>).<span class="ruby-identifier">bind</span>(<span class="ruby-keyword kw">self</span>).<span class="ruby-identifier">call</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>,<span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
3489
|
-
<span class="ruby-keyword kw">end</span>
|
3490
|
-
</pre>
|
3491
|
-
</div>
|
3492
|
-
</div>
|
3493
|
-
</div>
|
3494
|
-
<div class="method">
|
3495
|
-
<div class="title">
|
3496
|
-
<a name="M000617"></a><b>super_as</b>(klass=self.class.superclass, *args, &blk)
|
2012
|
+
<a name="M000347"></a><b>super_as</b>(klass=self.class.superclass, *args, &blk)
|
3497
2013
|
</div>
|
3498
2014
|
<div class="description">
|
3499
2015
|
<p>
|
@@ -3516,8 +2032,8 @@ Like super but skips to a specific ancestor module or class.
|
|
3516
2032
|
</pre>
|
3517
2033
|
</div>
|
3518
2034
|
<div class="sourcecode">
|
3519
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3520
|
-
<div id="
|
2035
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000347_source')" id="l_M000347_source">show source</a> ]</p>
|
2036
|
+
<div id="M000347_source" class="dyn-source">
|
3521
2037
|
<pre>
|
3522
2038
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/as.rb, line 73</span>
|
3523
2039
|
<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>)
|
@@ -3533,7 +2049,7 @@ Like super but skips to a specific ancestor module or class.
|
|
3533
2049
|
</div>
|
3534
2050
|
<div class="method">
|
3535
2051
|
<div class="title">
|
3536
|
-
<a name="
|
2052
|
+
<a name="M000346"></a><b>super_method</b>(klass, meth)
|
3537
2053
|
</div>
|
3538
2054
|
<div class="description">
|
3539
2055
|
<p>
|
@@ -3541,8 +2057,8 @@ Returns method of a parent class bound to self.
|
|
3541
2057
|
</p>
|
3542
2058
|
</div>
|
3543
2059
|
<div class="sourcecode">
|
3544
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3545
|
-
<div id="
|
2060
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000346_source')" id="l_M000346_source">show source</a> ]</p>
|
2061
|
+
<div id="M000346_source" class="dyn-source">
|
3546
2062
|
<pre>
|
3547
2063
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/as.rb, line 50</span>
|
3548
2064
|
<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>)
|
@@ -3557,132 +2073,17 @@ Returns method of a parent class bound to self.
|
|
3557
2073
|
</div>
|
3558
2074
|
<div class="method">
|
3559
2075
|
<div class="title">
|
3560
|
-
<a name="
|
2076
|
+
<a name="M000352"></a><b>tap</b>() {|self| ...}
|
3561
2077
|
</div>
|
3562
2078
|
<div class="description">
|
3563
2079
|
<p>
|
3564
|
-
|
3565
|
-
</p>
|
3566
|
-
</div>
|
3567
|
-
<div class="sourcecode">
|
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">
|
3570
|
-
<pre>
|
3571
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/as.rb, line 50</span>
|
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>)
|
3573
|
-
<span class="ruby-keyword kw">unless</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">ancestors</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">klass</span>)
|
3574
|
-
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-node">"Not an ancestor for super_method-- #{klass}"</span>
|
3575
|
-
<span class="ruby-keyword kw">end</span>
|
3576
|
-
<span class="ruby-identifier">klass</span>.<span class="ruby-identifier">instance_method</span>(<span class="ruby-identifier">meth</span>).<span class="ruby-identifier">bind</span>(<span class="ruby-keyword kw">self</span>)
|
3577
|
-
<span class="ruby-keyword kw">end</span>
|
3578
|
-
</pre>
|
3579
|
-
</div>
|
3580
|
-
</div>
|
3581
|
-
</div>
|
3582
|
-
<div class="method">
|
3583
|
-
<div class="title">
|
3584
|
-
<a name="M000669"></a><b>suppress</b>(*exception_classes) {|| ...}
|
3585
|
-
</div>
|
3586
|
-
<div class="description">
|
3587
|
-
<p>
|
3588
|
-
Supress errors while executing a block, <a
|
3589
|
-
href="Kernel.html#M000642">with</a> execptions.
|
3590
|
-
</p>
|
3591
|
-
<p>
|
3592
|
-
TODO: This will be deprecatd in favor or <a
|
3593
|
-
href="Exception.html#M000394">Exception#suppress</a>.
|
3594
|
-
</p>
|
3595
|
-
<pre>
|
3596
|
-
CREDIT: David Heinemeier Hansson
|
3597
|
-
</pre>
|
3598
|
-
</div>
|
3599
|
-
<div class="sourcecode">
|
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">
|
3602
|
-
<pre>
|
3603
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/suppress.rb, line 9</span>
|
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>)
|
3605
|
-
<span class="ruby-identifier">warn</span> <span class="ruby-value str">"use Exception#supress for future versions"</span>
|
3606
|
-
<span class="ruby-keyword kw">begin</span> <span class="ruby-keyword kw">yield</span>
|
3607
|
-
<span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Exception</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">e</span>
|
3608
|
-
<span class="ruby-identifier">raise</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">exception_classes</span>.<span class="ruby-identifier">any?</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">cls</span><span class="ruby-operator">|</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-identifier">cls</span>) }
|
3609
|
-
<span class="ruby-keyword kw">end</span>
|
3610
|
-
<span class="ruby-keyword kw">end</span>
|
3611
|
-
</pre>
|
3612
|
-
</div>
|
3613
|
-
</div>
|
3614
|
-
</div>
|
3615
|
-
<div class="method">
|
3616
|
-
<div class="title">
|
3617
|
-
<a name="M000619"></a><b>suppress</b>(*exception_classes) {|| ...}
|
3618
|
-
</div>
|
3619
|
-
<div class="description">
|
3620
|
-
<p>
|
3621
|
-
Supress errors while executing a block, <a
|
3622
|
-
href="Kernel.html#M000642">with</a> execptions.
|
3623
|
-
</p>
|
3624
|
-
<p>
|
3625
|
-
TODO: This will be deprecatd in favor or <a
|
3626
|
-
href="Exception.html#M000394">Exception#suppress</a>.
|
3627
|
-
</p>
|
3628
|
-
<pre>
|
3629
|
-
CREDIT: David Heinemeier Hansson
|
3630
|
-
</pre>
|
3631
|
-
</div>
|
3632
|
-
<div class="sourcecode">
|
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">
|
3635
|
-
<pre>
|
3636
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/suppress.rb, line 9</span>
|
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>)
|
3638
|
-
<span class="ruby-identifier">warn</span> <span class="ruby-value str">"use Exception#supress for future versions"</span>
|
3639
|
-
<span class="ruby-keyword kw">begin</span> <span class="ruby-keyword kw">yield</span>
|
3640
|
-
<span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Exception</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">e</span>
|
3641
|
-
<span class="ruby-identifier">raise</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">exception_classes</span>.<span class="ruby-identifier">any?</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">cls</span><span class="ruby-operator">|</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-identifier">cls</span>) }
|
3642
|
-
<span class="ruby-keyword kw">end</span>
|
3643
|
-
<span class="ruby-keyword kw">end</span>
|
3644
|
-
</pre>
|
3645
|
-
</div>
|
3646
|
-
</div>
|
3647
|
-
</div>
|
3648
|
-
<div class="method">
|
3649
|
-
<div class="title">
|
3650
|
-
<a name="M000623"></a><b>tap</b>() {|self| ...}
|
3651
|
-
</div>
|
3652
|
-
<div class="description">
|
3653
|
-
<p>
|
3654
|
-
The <a href="Kernel.html#M000623">tap</a> K-Combinator. This yields self
|
3655
|
-
-and- returns self.
|
3656
|
-
</p>
|
3657
|
-
</div>
|
3658
|
-
<div class="sourcecode">
|
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">
|
3661
|
-
<pre>
|
3662
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/tap.rb, line 7</span>
|
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>)
|
3664
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block_given?</span>
|
3665
|
-
<span class="ruby-identifier">b</span>.<span class="ruby-identifier">arity</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span> <span class="ruby-operator">?</span> <span class="ruby-keyword kw">yield</span>(<span class="ruby-keyword kw">self</span>) <span class="ruby-operator">:</span> <span class="ruby-identifier">instance_eval</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">b</span>)
|
3666
|
-
<span class="ruby-keyword kw">end</span>
|
3667
|
-
<span class="ruby-keyword kw">self</span>
|
3668
|
-
<span class="ruby-keyword kw">end</span>
|
3669
|
-
</pre>
|
3670
|
-
</div>
|
3671
|
-
</div>
|
3672
|
-
</div>
|
3673
|
-
<div class="method">
|
3674
|
-
<div class="title">
|
3675
|
-
<a name="M000673"></a><b>tap</b>() {|self| ...}
|
3676
|
-
</div>
|
3677
|
-
<div class="description">
|
3678
|
-
<p>
|
3679
|
-
The <a href="Kernel.html#M000623">tap</a> K-Combinator. This yields self
|
2080
|
+
The <a href="Kernel.html#M000352">tap</a> K-Combinator. This yields self
|
3680
2081
|
-and- returns self.
|
3681
2082
|
</p>
|
3682
2083
|
</div>
|
3683
2084
|
<div class="sourcecode">
|
3684
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3685
|
-
<div id="
|
2085
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000352_source')" id="l_M000352_source">show source</a> ]</p>
|
2086
|
+
<div id="M000352_source" class="dyn-source">
|
3686
2087
|
<pre>
|
3687
2088
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/tap.rb, line 7</span>
|
3688
2089
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tap</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">b</span>)
|
@@ -3697,7 +2098,7 @@ The <a href="Kernel.html#M000623">tap</a> K-Combinator. This yields self
|
|
3697
2098
|
</div>
|
3698
2099
|
<div class="method">
|
3699
2100
|
<div class="title">
|
3700
|
-
<a name="
|
2101
|
+
<a name="M000339"></a><b>to_b</b>()
|
3701
2102
|
</div>
|
3702
2103
|
<div class="description">
|
3703
2104
|
<p>
|
@@ -3712,8 +2113,8 @@ this to suite the particular need.
|
|
3712
2113
|
</pre>
|
3713
2114
|
</div>
|
3714
2115
|
<div class="sourcecode">
|
3715
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3716
|
-
<div id="
|
2116
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000339_source')" id="l_M000339_source">show source</a> ]</p>
|
2117
|
+
<div id="M000339_source" class="dyn-source">
|
3717
2118
|
<pre>
|
3718
2119
|
<span class="ruby-comment cmt"># File lib/core/facets/boolean.rb, line 94</span>
|
3719
2120
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_b</span>
|
@@ -3725,7 +2126,7 @@ this to suite the particular need.
|
|
3725
2126
|
</div>
|
3726
2127
|
<div class="method">
|
3727
2128
|
<div class="title">
|
3728
|
-
<a name="
|
2129
|
+
<a name="M000340"></a><b>true?</b>()
|
3729
2130
|
</div>
|
3730
2131
|
<div class="description">
|
3731
2132
|
<p>
|
@@ -3739,8 +2140,8 @@ otherwise false.
|
|
3739
2140
|
</pre>
|
3740
2141
|
</div>
|
3741
2142
|
<div class="sourcecode">
|
3742
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3743
|
-
<div id="
|
2143
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000340_source')" id="l_M000340_source">show source</a> ]</p>
|
2144
|
+
<div id="M000340_source" class="dyn-source">
|
3744
2145
|
<pre>
|
3745
2146
|
<span class="ruby-comment cmt"># File lib/core/facets/boolean.rb, line 105</span>
|
3746
2147
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">true?</span>
|
@@ -3752,43 +2153,7 @@ otherwise false.
|
|
3752
2153
|
</div>
|
3753
2154
|
<div class="method">
|
3754
2155
|
<div class="title">
|
3755
|
-
<a name="
|
3756
|
-
</div>
|
3757
|
-
<div class="description">
|
3758
|
-
<p>
|
3759
|
-
Try a method.
|
3760
|
-
</p>
|
3761
|
-
<pre>
|
3762
|
-
@person ? @person.name : nil
|
3763
|
-
</pre>
|
3764
|
-
<p>
|
3765
|
-
vs
|
3766
|
-
</p>
|
3767
|
-
<pre>
|
3768
|
-
@person.try(:name)
|
3769
|
-
|
3770
|
-
CREDIT: Chris Wanstrath
|
3771
|
-
</pre>
|
3772
|
-
</div>
|
3773
|
-
<div class="sourcecode">
|
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">
|
3776
|
-
<pre>
|
3777
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/try.rb, line 10</span>
|
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>)
|
3779
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">respond_to?</span> <span class="ruby-identifier">method</span>
|
3780
|
-
<span class="ruby-identifier">send</span> <span class="ruby-identifier">method</span>
|
3781
|
-
<span class="ruby-keyword kw">else</span>
|
3782
|
-
<span class="ruby-identifier">default</span>
|
3783
|
-
<span class="ruby-keyword kw">end</span>
|
3784
|
-
<span class="ruby-keyword kw">end</span>
|
3785
|
-
</pre>
|
3786
|
-
</div>
|
3787
|
-
</div>
|
3788
|
-
</div>
|
3789
|
-
<div class="method">
|
3790
|
-
<div class="title">
|
3791
|
-
<a name="M000652"></a><b>try</b>(method, default=nil)
|
2156
|
+
<a name="M000382"></a><b>try</b>(method, default=nil)
|
3792
2157
|
</div>
|
3793
2158
|
<div class="description">
|
3794
2159
|
<p>
|
@@ -3807,8 +2172,8 @@ vs
|
|
3807
2172
|
</pre>
|
3808
2173
|
</div>
|
3809
2174
|
<div class="sourcecode">
|
3810
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3811
|
-
<div id="
|
2175
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000382_source')" id="l_M000382_source">show source</a> ]</p>
|
2176
|
+
<div id="M000382_source" class="dyn-source">
|
3812
2177
|
<pre>
|
3813
2178
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/try.rb, line 10</span>
|
3814
2179
|
<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>)
|
@@ -3824,37 +2189,7 @@ vs
|
|
3824
2189
|
</div>
|
3825
2190
|
<div class="method">
|
3826
2191
|
<div class="title">
|
3827
|
-
<a name="
|
3828
|
-
</div>
|
3829
|
-
<div class="description">
|
3830
|
-
<p>
|
3831
|
-
Tests to see if something has value. An object is considered to have value
|
3832
|
-
if it is not nil? and if it responds to empty?, is not empty.
|
3833
|
-
</p>
|
3834
|
-
<pre>
|
3835
|
-
nil.val? #=> false
|
3836
|
-
[].val? #=> false
|
3837
|
-
10.val? #=> true
|
3838
|
-
[nil].val? #=> true
|
3839
|
-
</pre>
|
3840
|
-
</div>
|
3841
|
-
<div class="sourcecode">
|
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">
|
3844
|
-
<pre>
|
3845
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/val.rb, line 12</span>
|
3846
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">val?</span>
|
3847
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">nil?</span>
|
3848
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">empty?</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:empty?</span>)
|
3849
|
-
<span class="ruby-keyword kw">true</span>
|
3850
|
-
<span class="ruby-keyword kw">end</span>
|
3851
|
-
</pre>
|
3852
|
-
</div>
|
3853
|
-
</div>
|
3854
|
-
</div>
|
3855
|
-
<div class="method">
|
3856
|
-
<div class="title">
|
3857
|
-
<a name="M000707"></a><b>val?</b>()
|
2192
|
+
<a name="M000387"></a><b>val?</b>()
|
3858
2193
|
</div>
|
3859
2194
|
<div class="description">
|
3860
2195
|
<p>
|
@@ -3869,8 +2204,8 @@ if it is not nil? and if it responds to empty?, is not empty.
|
|
3869
2204
|
</pre>
|
3870
2205
|
</div>
|
3871
2206
|
<div class="sourcecode">
|
3872
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3873
|
-
<div id="
|
2207
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000387_source')" id="l_M000387_source">show source</a> ]</p>
|
2208
|
+
<div id="M000387_source" class="dyn-source">
|
3874
2209
|
<pre>
|
3875
2210
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/val.rb, line 12</span>
|
3876
2211
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">val?</span>
|
@@ -3884,43 +2219,11 @@ if it is not nil? and if it responds to empty?, is not empty.
|
|
3884
2219
|
</div>
|
3885
2220
|
<div class="method">
|
3886
2221
|
<div class="title">
|
3887
|
-
<a name="
|
3888
|
-
</div>
|
3889
|
-
<div class="description">
|
3890
|
-
<p>
|
3891
|
-
Like <a href="Kernel.html#M000654">returning</a> but exectures the block
|
3892
|
-
via instance_eval.
|
3893
|
-
</p>
|
3894
|
-
<pre>
|
3895
|
-
def foo
|
3896
|
-
with values = [] do
|
3897
|
-
self << 'bar'
|
3898
|
-
self << 'baz'
|
3899
|
-
end
|
3900
|
-
end
|
3901
|
-
|
3902
|
-
foo # => ['bar', 'baz']
|
3903
|
-
</pre>
|
3904
|
-
</div>
|
3905
|
-
<div class="sourcecode">
|
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">
|
3908
|
-
<pre>
|
3909
|
-
<span class="ruby-comment cmt"># File lib/core/facets/kernel/with.rb, line 15</span>
|
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>)
|
3911
|
-
<span class="ruby-identifier">obj</span>.<span class="ruby-identifier">instance_eval</span> <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>
|
3912
|
-
<span class="ruby-keyword kw">end</span>
|
3913
|
-
</pre>
|
3914
|
-
</div>
|
3915
|
-
</div>
|
3916
|
-
</div>
|
3917
|
-
<div class="method">
|
3918
|
-
<div class="title">
|
3919
|
-
<a name="M000642"></a><b>with</b>(obj=self, &block)
|
2222
|
+
<a name="M000372"></a><b>with</b>(obj=self, &block)
|
3920
2223
|
</div>
|
3921
2224
|
<div class="description">
|
3922
2225
|
<p>
|
3923
|
-
Like <a href="Kernel.html#
|
2226
|
+
Like <a href="Kernel.html#M000384">returning</a> but exectures the block
|
3924
2227
|
via instance_eval.
|
3925
2228
|
</p>
|
3926
2229
|
<pre>
|
@@ -3935,12 +2238,12 @@ via instance_eval.
|
|
3935
2238
|
</pre>
|
3936
2239
|
</div>
|
3937
2240
|
<div class="sourcecode">
|
3938
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
3939
|
-
<div id="
|
2241
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000372_source')" id="l_M000372_source">show source</a> ]</p>
|
2242
|
+
<div id="M000372_source" class="dyn-source">
|
3940
2243
|
<pre>
|
3941
2244
|
<span class="ruby-comment cmt"># File lib/core/facets/kernel/with.rb, line 15</span>
|
3942
2245
|
<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>)
|
3943
|
-
<span class="ruby-identifier">obj</span>.<span class="ruby-identifier">instance_eval</span>
|
2246
|
+
<span class="ruby-identifier">obj</span>.<span class="ruby-identifier">instance_eval</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
3944
2247
|
<span class="ruby-keyword kw">end</span>
|
3945
2248
|
</pre>
|
3946
2249
|
</div>
|