facets 2.4.2 → 2.4.3
Sign up to get free protection for your applications and to get access to all the features.
- data/AUTHORS +1 -1
- data/CHANGES +25 -5
- data/MANIFEST +67 -34
- data/METADATA +2 -2
- data/NEWS +54 -46
- data/doc/news/NEWS-2.4.0 +52 -0
- data/doc/rdoc/core/classes/Array.html +198 -198
- data/doc/rdoc/core/classes/Binding.html +86 -192
- data/doc/rdoc/core/classes/Class.html +136 -136
- data/doc/rdoc/core/classes/Comparable.html +45 -45
- data/doc/rdoc/core/classes/Dir.html +64 -64
- data/doc/rdoc/core/classes/Enumerable.html +287 -281
- data/doc/rdoc/core/classes/Exception.html +16 -16
- data/doc/rdoc/core/classes/FalseClass.html +8 -8
- data/doc/rdoc/core/classes/File.html +100 -100
- data/doc/rdoc/core/classes/FileTest.html +8 -8
- data/doc/rdoc/core/classes/Float.html +32 -32
- data/doc/rdoc/core/classes/Friend.html +8 -8
- data/doc/rdoc/core/classes/Functor.html +12 -12
- data/doc/rdoc/core/classes/Hash.html +439 -847
- data/doc/rdoc/{more → core}/classes/Indexable.html +115 -115
- data/doc/rdoc/core/classes/InstanceVariables.html +88 -88
- data/doc/rdoc/core/classes/Integer.html +142 -142
- data/doc/rdoc/core/classes/Kernel.html +602 -600
- data/doc/rdoc/core/classes/Lazy/Promise.html +1 -1
- data/doc/rdoc/core/classes/MatchData.html +30 -30
- data/doc/rdoc/core/classes/Module.html +379 -327
- data/doc/rdoc/core/classes/NilClass.html +32 -32
- data/doc/rdoc/core/classes/Numeric.html +46 -46
- data/doc/rdoc/core/classes/Object.html +4 -4
- data/doc/rdoc/core/classes/Proc.html +46 -134
- data/doc/rdoc/core/classes/Range.html +60 -60
- data/doc/rdoc/core/classes/Regexp.html +28 -28
- data/doc/rdoc/{more → core}/classes/Stackable.html +38 -38
- data/doc/rdoc/core/classes/String.html +844 -504
- data/doc/rdoc/core/classes/Symbol.html +62 -62
- data/doc/rdoc/core/classes/Time.html +112 -112
- data/doc/rdoc/core/classes/TrueClass.html +8 -8
- data/doc/rdoc/core/classes/UnboundMethod.html +22 -22
- data/doc/rdoc/core/created.rid +1 -1
- data/doc/rdoc/core/files/lib/core/facets/array_rb.html +4 -1
- data/doc/rdoc/core/files/lib/core/facets/binding_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/boolean_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/class/methodize_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/class/pathize_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/class_rb.html +5 -1
- data/doc/rdoc/core/files/lib/core/facets/dir_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/{class/to_methodname_rb.html → enumerable/commonality_rb.html} +4 -4
- data/doc/rdoc/core/files/lib/core/facets/enumerable/entropy_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/{class/to_pathname_rb.html → enumerable/frequency_rb.html} +4 -4
- data/doc/rdoc/core/files/lib/core/facets/enumerable/probability_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable_rb.html +6 -2
- data/doc/rdoc/core/files/lib/core/facets/file_rb.html +2 -1
- data/doc/rdoc/core/files/lib/core/facets/hash_rb.html +7 -1
- data/doc/rdoc/{more/files/lib/more → core/files/lib/core}/facets/indexable_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/require_all_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/require_local_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel_rb.html +15 -2
- data/doc/rdoc/core/files/lib/core/facets/module/integrate_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/module/methodize_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/module/module_load_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/pathize_rb.html +5 -1
- data/doc/rdoc/core/files/lib/core/facets/module/redefine_method_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module/redirect_method_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module/rename_method_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module/revise_rb.html +8 -1
- data/doc/rdoc/core/files/lib/core/facets/module/wrap_method_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module_rb.html +8 -5
- data/doc/rdoc/core/files/lib/core/facets/numeric_rb.html +2 -1
- data/doc/rdoc/core/files/lib/core/facets/proc_rb.html +3 -5
- data/doc/rdoc/{more/files/lib/more → core/files/lib/core}/facets/stackable_rb.html +3 -4
- data/doc/rdoc/core/files/lib/core/facets/string/each_word_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/{module/clone_rb.html → string/methodize_rb.html} +4 -4
- data/doc/rdoc/core/files/lib/core/facets/{kernel/load_rb.html → string/pathize_rb.html} +4 -4
- data/doc/rdoc/core/files/lib/core/facets/string/word_wrap_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/words_rb.html +1 -5
- data/doc/rdoc/core/files/lib/core/facets/string_rb.html +8 -3
- data/doc/rdoc/core/files/lib/core/facets/symbol_rb.html +2 -1
- data/doc/rdoc/core/fr_class_index.html +2 -3
- data/doc/rdoc/core/fr_file_index.html +36 -16
- data/doc/rdoc/core/fr_method_index.html +778 -784
- data/doc/rdoc/lore/created.rid +1 -1
- data/doc/rdoc/more/classes/ANSICode.html +66 -66
- data/doc/rdoc/more/classes/Advisable.html +37 -37
- data/doc/rdoc/more/classes/Advisable/Method.html +20 -20
- data/doc/rdoc/more/classes/Archive/Tar/Minitar.html +27 -27
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Input.html +28 -28
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Output.html +19 -19
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Reader.html +31 -31
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Writer.html +33 -33
- data/doc/rdoc/more/classes/Association.html +28 -28
- data/doc/rdoc/more/classes/Association/Kernel.html +8 -8
- data/doc/rdoc/more/classes/Autoarray.html +12 -12
- data/doc/rdoc/more/classes/BBCode.html +34 -34
- data/doc/rdoc/more/classes/BaseX.html +16 -16
- data/doc/rdoc/more/classes/BiCrypt.html +67 -67
- data/doc/rdoc/more/classes/BigDuration.html +30 -30
- data/doc/rdoc/more/classes/BinReadable.html +85 -85
- data/doc/rdoc/more/classes/BinReadable/ByteOrder.html +25 -25
- data/doc/rdoc/more/classes/Binding.html +201 -0
- data/doc/rdoc/more/classes/Buildable.html +4 -4
- data/doc/rdoc/more/classes/BuildingBlock.html +32 -32
- data/doc/rdoc/more/classes/CLI.html +108 -0
- data/doc/rdoc/more/classes/CLI/Arguments.html +76 -76
- data/doc/rdoc/more/classes/CLI/Command.html +22 -22
- data/doc/rdoc/more/classes/CLI/NoCommandError.html +4 -4
- data/doc/rdoc/more/classes/CLI/NoOptionError.html +4 -4
- data/doc/rdoc/more/classes/CacheDecorator.html +21 -21
- data/doc/rdoc/more/classes/Capsule.html +41 -41
- data/doc/rdoc/more/classes/Chain.html +17 -17
- data/doc/rdoc/more/classes/Cloneable.html +4 -4
- data/doc/rdoc/more/classes/ConsoleUtils.html +18 -18
- data/doc/rdoc/more/classes/Coroutine.html +28 -28
- data/doc/rdoc/more/classes/Crypt.html +16 -16
- data/doc/rdoc/more/classes/CssFilter.html +45 -45
- data/doc/rdoc/more/classes/CssTree.html +8 -8
- data/doc/rdoc/more/classes/Dictionary.html +228 -228
- data/doc/rdoc/more/classes/DictionaryMatcher.html +38 -38
- data/doc/rdoc/more/classes/DictionaryMatcher/MatchData.html +4 -4
- data/doc/rdoc/more/classes/Downloader.html +56 -56
- data/doc/rdoc/more/classes/Duration.html +68 -68
- data/doc/rdoc/more/classes/Enumerable.html +44 -44
- data/doc/rdoc/more/classes/Enumerable/Elementor.html +16 -16
- data/doc/rdoc/more/classes/Enumerable/Enumerator.html +4 -4
- data/doc/rdoc/more/classes/EnumerablePass.html +15 -15
- data/doc/rdoc/more/classes/Equatable.html +16 -16
- data/doc/rdoc/more/classes/EventHook.html +8 -8
- data/doc/rdoc/more/classes/Expirable.html +17 -17
- data/doc/rdoc/more/classes/FileList.html +125 -125
- data/doc/rdoc/more/classes/FileShell.html +147 -147
- data/doc/rdoc/more/classes/Fileable.html +14 -14
- data/doc/rdoc/more/classes/Fileable/DSL.html +41 -41
- data/doc/rdoc/more/classes/Hash.html +306 -14
- data/doc/rdoc/more/classes/Hash2Xml.html +4 -4
- data/doc/rdoc/more/classes/HtmlFilter.html +9 -9
- data/doc/rdoc/more/classes/IORedirect.html +19 -19
- data/doc/rdoc/more/classes/InfinityClass.html +36 -36
- data/doc/rdoc/more/classes/InfinityClass/Numeric.html +23 -23
- data/doc/rdoc/more/classes/Ini.html +37 -37
- data/doc/rdoc/more/classes/Instantiable.html +9 -9
- data/doc/rdoc/more/classes/Instantise.html +8 -8
- data/doc/rdoc/more/classes/Interval.html +187 -187
- data/doc/rdoc/more/classes/It.html +12 -12
- data/doc/rdoc/more/classes/Kernel.html +77 -77
- data/doc/rdoc/more/classes/LRUCache.html +38 -38
- data/doc/rdoc/more/classes/LinkedList.html +68 -68
- data/doc/rdoc/more/classes/LinkedList/Node.html +4 -4
- data/doc/rdoc/{core → more}/classes/MissingArgument.html +1 -2
- data/doc/rdoc/more/classes/Module.html +171 -171
- data/doc/rdoc/more/classes/Multiton.html +12 -12
- data/doc/rdoc/more/classes/Multiton/MetaMethods.html +28 -28
- data/doc/rdoc/more/classes/Net/SMTP.html +19 -19
- data/doc/rdoc/more/classes/NullClass.html +24 -24
- data/doc/rdoc/more/classes/ObjectReflection.html +12 -12
- data/doc/rdoc/more/classes/OpEsc.html +5 -5
- data/doc/rdoc/more/classes/OpenCascade.html +4 -4
- data/doc/rdoc/more/classes/OpenCollection.html +8 -8
- data/doc/rdoc/more/classes/OpenHash.html +9 -9
- data/doc/rdoc/more/classes/OpenObject.html +95 -95
- data/doc/rdoc/more/classes/PQueue.html +84 -84
- data/doc/rdoc/more/classes/Paramix.html +11 -11
- data/doc/rdoc/more/classes/Paramix/Delegator.html +16 -16
- data/doc/rdoc/more/classes/PathList.html +8 -8
- data/doc/rdoc/more/classes/PathList/Finder.html +8 -8
- data/doc/rdoc/more/classes/Platform.html +46 -46
- data/doc/rdoc/more/classes/Pool.html +18 -18
- data/doc/rdoc/more/classes/Proc.html +48 -4
- data/doc/rdoc/more/classes/ProgressBar.html +52 -52
- data/doc/rdoc/more/classes/Prototype.html +28 -28
- data/doc/rdoc/more/classes/RWDelegator.html +16 -16
- data/doc/rdoc/more/classes/Random.html +9 -9
- data/doc/rdoc/more/classes/Random/Array.html +37 -37
- data/doc/rdoc/more/classes/Random/Hash.html +52 -52
- data/doc/rdoc/more/classes/Random/Object.html +4 -4
- data/doc/rdoc/more/classes/Random/String.html +34 -34
- data/doc/rdoc/more/classes/Random/String/Self.html +9 -9
- data/doc/rdoc/more/classes/Recorder.html +16 -16
- data/doc/rdoc/more/classes/Reference.html +19 -19
- data/doc/rdoc/more/classes/Registerable.html +13 -13
- data/doc/rdoc/more/classes/Semaphore.html +36 -36
- data/doc/rdoc/more/classes/Settings.html +28 -28
- data/doc/rdoc/more/classes/Settings/Setting.html +13 -13
- data/doc/rdoc/more/classes/Settings/SettingCollection.html +4 -4
- data/doc/rdoc/more/classes/SimpleStringIO.html +8 -8
- data/doc/rdoc/more/classes/Snapshot.html +16 -16
- data/doc/rdoc/more/classes/Snapshot/ValueHolder.html +12 -12
- data/doc/rdoc/more/classes/String/Style.html +113 -113
- data/doc/rdoc/{core → more}/classes/String/Words.html +78 -78
- data/doc/rdoc/more/classes/Struct.html +8 -8
- data/doc/rdoc/more/classes/SyncArray.html +4 -4
- data/doc/rdoc/more/classes/SyncHash.html +4 -4
- data/doc/rdoc/more/classes/SyncHash/Delegator.html +28 -28
- data/doc/rdoc/more/classes/SyncHash/Inheritor.html +28 -28
- data/doc/rdoc/more/classes/System.html +253 -253
- data/doc/rdoc/more/classes/Timer.html +48 -48
- data/doc/rdoc/more/classes/Timer/Dummy.html +9 -9
- data/doc/rdoc/more/classes/TracePoint.html +64 -62
- data/doc/rdoc/more/classes/Tuple.html +170 -170
- data/doc/rdoc/more/classes/TypeCast/Class.html +4 -4
- data/doc/rdoc/more/classes/TypeCast/Object.html +4 -4
- data/doc/rdoc/more/classes/Uninheritable.html +6 -6
- data/doc/rdoc/more/classes/UploadUtils.html +49 -49
- data/doc/rdoc/more/classes/VersionNumber.html +53 -53
- data/doc/rdoc/more/classes/Weekdays.html +28 -28
- data/doc/rdoc/more/classes/XOXO.html +9 -9
- data/doc/rdoc/more/classes/ZipUtils.html +58 -58
- data/doc/rdoc/more/classes/ZipUtils/DryRun.html +28 -28
- data/doc/rdoc/more/classes/ZipUtils/NoWrite.html +28 -28
- data/doc/rdoc/more/classes/ZipUtils/Verbose.html +28 -28
- data/doc/rdoc/more/created.rid +1 -1
- data/doc/rdoc/more/files/lib/more/facets/ansicode_rb.html +1 -1
- data/doc/rdoc/{core/files/lib/core → more/files/lib/more}/facets/binding/opvars_rb.html +2 -2
- data/doc/rdoc/{core/files/lib/core → more/files/lib/more}/facets/hash/stringify_keys_rb.html +2 -2
- data/doc/rdoc/{core/files/lib/core → more/files/lib/more}/facets/hash/symbolize_keys_rb.html +2 -2
- data/doc/rdoc/{core/files/lib/core/facets/proc → more/files/lib/more/facets}/partial_rb.html +8 -7
- data/doc/rdoc/more/files/lib/more/facets/snapshot_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/string/words_rb.html +96 -0
- data/doc/rdoc/more/files/lib/more/facets/tracepoint_rb.html +13 -8
- data/doc/rdoc/more/fr_class_index.html +4 -2
- data/doc/rdoc/more/fr_file_index.html +9 -2
- data/doc/rdoc/more/fr_method_index.html +1013 -1009
- data/doc/ri/CLI/cdesc-CLI.yaml +7 -2
- data/doc/ri/Enumerable/probability-i.yaml +1 -1
- data/doc/ri/Module/append_features-i.yaml +4 -3
- data/doc/ri/Module/cdesc-Module.yaml +4 -3
- data/doc/ri/Module/methodize-i.yaml +14 -0
- data/doc/ri/Module/redefine_method-i.yaml +1 -1
- data/doc/ri/Module/redirect_method-i.yaml +3 -1
- data/doc/ri/Module/rename_method-i.yaml +1 -1
- data/doc/ri/created.rid +1 -1
- data/lib/core/facets/array.rb +3 -0
- data/lib/core/facets/binding.rb +0 -1
- data/lib/core/facets/class.rb +4 -4
- data/lib/core/facets/class/{to_methodname.rb → methodize.rb} +5 -2
- data/lib/core/facets/class/pathize.rb +14 -0
- data/lib/core/facets/enumerable.rb +5 -2
- data/lib/core/facets/enumerable/commonality.rb +33 -0
- data/lib/core/facets/enumerable/entropy.rb +37 -0
- data/lib/core/facets/enumerable/frequency.rb +18 -0
- data/lib/core/facets/enumerable/probability.rb +1 -98
- data/lib/core/facets/file.rb +1 -1
- data/lib/core/facets/hash.rb +6 -0
- data/lib/{more → core}/facets/indexable.rb +0 -0
- data/lib/core/facets/kernel.rb +15 -1
- data/lib/core/facets/kernel/require_all.rb +21 -0
- data/lib/core/facets/kernel/{load.rb → require_local.rb} +6 -23
- data/lib/core/facets/module.rb +7 -3
- data/lib/core/facets/module/integrate.rb +2 -0
- data/lib/core/facets/module/methodize.rb +14 -0
- data/lib/core/facets/module/pathize.rb +10 -7
- data/lib/core/facets/module/redefine_method.rb +35 -0
- data/lib/core/facets/module/redirect_method.rb +45 -0
- data/lib/core/facets/module/rename_method.rb +20 -0
- data/lib/core/facets/module/revise.rb +7 -113
- data/lib/core/facets/module/wrap_method.rb +28 -0
- data/lib/core/facets/numeric.rb +1 -1
- data/lib/core/facets/proc.rb +2 -3
- data/lib/{more → core}/facets/stackable.rb +0 -0
- data/lib/core/facets/string.rb +8 -6
- data/lib/core/facets/string/each_word.rb +13 -0
- data/lib/core/facets/string/methodize.rb +12 -0
- data/lib/core/facets/string/pathize.rb +12 -0
- data/lib/core/facets/string/word_wrap.rb +34 -0
- data/lib/core/facets/string/words.rb +6 -167
- data/lib/core/facets/symbol.rb +1 -0
- data/lib/more/facets/ansicode.rb +4 -4
- data/lib/{core → more}/facets/binding/opvars.rb +0 -0
- data/lib/{core → more}/facets/hash/stringify_keys.rb +0 -0
- data/lib/{core → more}/facets/hash/symbolize_keys.rb +5 -6
- data/lib/{core/facets/proc → more/facets}/partial.rb +0 -0
- data/lib/more/facets/string/words.rb +173 -0
- data/test/core/dir/test_multiglob.rb +1 -0
- data/test/core/dir/test_recurse.rb +1 -0
- data/test/core/enumerable/test_commonality.rb +15 -0
- data/test/core/enumerable/test_entropy.rb +15 -0
- data/test/core/enumerable/test_frequency.rb +11 -0
- data/test/core/enumerable/test_probability.rb +1 -34
- data/test/core/string/test_each_word.rb +14 -0
- data/test/core/string/test_fold.rb +1 -1
- data/test/core/string/test_word_wrap.rb +35 -0
- data/test/core/string/test_words.rb +12 -61
- data/test/more/test_command.rb +7 -9
- data/test/more/test_paramix.rb +4 -1
- data/test/{core/proc → more}/test_partial.rb +1 -1
- metadata +75 -38
- data/doc/rdoc/core/classes/Module/CloneExtensions.html +0 -287
- data/doc/ri/Module/CloneExtensions/cdesc-CloneExtensions.yaml +0 -20
- data/doc/ri/Module/CloneExtensions/clone_removing-i.yaml +0 -14
- data/doc/ri/Module/CloneExtensions/clone_renaming-i.yaml +0 -14
- data/doc/ri/Module/CloneExtensions/clone_using-i.yaml +0 -14
- data/lib/core/facets/class/to_pathname.rb +0 -12
- data/lib/core/facets/module/clone.rb +0 -57
- data/test/core/module/test_clone.rb +0 -45
data/METADATA
CHANGED
data/NEWS
CHANGED
@@ -1,52 +1,60 @@
|
|
1
1
|
= Release Notes
|
2
2
|
|
3
|
-
Facets 2.4 is
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
3
|
+
Facets 2.4.3 is now out in the wild. The release is primarily a maintenance
|
4
|
+
release --fixing a handful of small bugs and adding some small feature
|
5
|
+
improvements, but a few significant changes are also present. Here's
|
6
|
+
an overview:
|
7
|
+
|
8
|
+
== Major Changes
|
9
|
+
|
10
|
+
* Changed File#rewrite to not use the in-place change of the string.
|
11
|
+
* Deprecate Hash#keys_to_s and Hash#keys_to_sym.
|
12
|
+
* Renamed Class#to_pathname and #to_methodname to #pathize and #methodize.
|
13
|
+
* Deprecated Console:: namespace for ANSICode.
|
14
|
+
* Added Time#trunc and Time#round to Core.
|
15
|
+
* Added Ken Bloom's DictionaryMatcher class (will be renamed in future version)
|
16
|
+
* Added Array#recursively and fixed bug in Hash#recursively.
|
17
|
+
* Added kernel/instance method which provides a fluent interface to private object space.
|
18
|
+
* Moved Mentalguy's lazy.rb to core!
|
19
|
+
* Added Indexable and Stackable to core.
|
20
|
+
* Deprecated ruby.rb, which was a sort 1.9 compatibility layer.
|
21
|
+
* The ruby.rb methods were moved to core, wrapped in a 1.9 condition.
|
22
|
+
|
23
|
+
== Minor Changes
|
24
|
+
|
25
|
+
* Fixed Time#hence changed years when changing months.
|
26
|
+
* Fixed Time#hence to flip year correctly when adding months.
|
27
|
+
* Added optional argument to Dictionary#first and #last.
|
28
|
+
* Improved File#rootname --it is now more robust.
|
29
|
+
* Made FileUtils#whereis a module_function again.
|
30
|
+
* Although not perceptible to the end user, there are now three divisions lib/core, lib/lore, lib/more.
|
31
|
+
* Created Lore library to house extensions to Ruby's standard library.
|
32
|
+
|
33
|
+
Note that this release does not include a setup.rb script. We are working
|
34
|
+
on a new version of this script, which we plan to include in the next release.
|
35
|
+
|
36
|
+
Special thanks to:
|
37
|
+
|
38
|
+
* Ken Bloom
|
39
|
+
* Nick Caruso
|
40
|
+
* Evgeniy Dolzhenko
|
41
|
+
* Andy Freeman
|
42
|
+
* Tomasz Muras
|
43
|
+
* Dave Myron
|
44
|
+
|
45
|
+
And of course, to anyone else I failed to mention that has contributed.
|
46
|
+
|
47
|
+
As a REMINDER, Facets 2.4+ now encourages:
|
18
48
|
|
19
49
|
require 'facets'
|
20
50
|
|
21
|
-
This is better than cherry-picking methods. It may seem counter-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
methods
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
ActiveSupport, and Ruby 1.9, interoperability. Expect this
|
31
|
-
to be complete in the next minor release or two.
|
32
|
-
|
33
|
-
= Previous Notes
|
34
|
-
|
35
|
-
(2.3.0) Amoung other changes with this release, cloneable.rb is
|
36
|
-
now a true deep dup/clone mixin; tracepoint.rb returns
|
37
|
-
to the library.
|
38
|
-
|
39
|
-
(2.2.1) This release get rid of the underlying methods subdir.
|
40
|
-
All method redirects are now in core, to ensure
|
41
|
-
there are no more name clashes.
|
42
|
-
|
43
|
-
(2.2.0) This release provides improved rdocs and prepares facets for
|
44
|
-
use with RUby 1.9. It also adds Matthew Harris' duration.rb
|
45
|
-
library. Bug thanks to Matthew!
|
46
|
-
|
47
|
-
(2.1.0) Major changes include a new and much-improved command.rb,
|
48
|
-
a new BiCrypt class for simple two-way crypotgraphy,
|
49
|
-
as well as attr_reader!, attr_writer! and attr_accessor!
|
50
|
-
for flag attributes, plus alias_xxx methods for all
|
51
|
-
attr_xxx methods.
|
51
|
+
This is better than cherry-picking methods. It may seem counter-intuitive,
|
52
|
+
but it actually proves more advantages to do this for the sake of
|
53
|
+
improved interoperability. The practice of cherry-picking can become
|
54
|
+
problematic if other dependent libraries have cherry-picked different
|
55
|
+
methods. In those cases these distinctions go unaccounted and untested.
|
56
|
+
|
57
|
+
Facets is almost fully interoperable with ActiveSupport and Ruby 1.9.
|
58
|
+
We will continue to improve this interoperability in upcoming releases.
|
59
|
+
|
52
60
|
|
data/doc/news/NEWS-2.4.0
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
= Release Notes
|
2
|
+
|
3
|
+
Facets 2.4 is a major step forward for Facets. It is perhaps
|
4
|
+
the release that 2.0 should have been, but of course it took
|
5
|
+
the actual 2.0 release to make 2.4 possible. Some annoyances
|
6
|
+
you may have encountered in updating your code to 2.0 are now
|
7
|
+
fixed. And from 2.4 on, Facets will now be settling down into
|
8
|
+
simple refinement release cycles.
|
9
|
+
|
10
|
+
The main change under the hood is to bring everything up to
|
11
|
+
the top lib/facets/ directory. No longer are the libraries
|
12
|
+
sorted by category. I had done so for a long time to make
|
13
|
+
it easier to track the various libs, but in the end it was
|
14
|
+
only making it more diffcult to deal with build tools and
|
15
|
+
packaging.
|
16
|
+
|
17
|
+
For the end-user, the largest change is a new emphisis on:
|
18
|
+
|
19
|
+
require 'facets'
|
20
|
+
|
21
|
+
This is better than cherry-picking methods. It may seem counter-
|
22
|
+
intuitive, but it actually proves more advantantages to do this
|
23
|
+
for the sake of interoperability than the practice of cherry-picking.
|
24
|
+
The reason is simply because others may have cherry-picked different
|
25
|
+
methods, and those distinctions go unaccounted and untested.
|
26
|
+
|
27
|
+
Also with this release, to bolster the use of require 'facets',
|
28
|
+
some lack-luster extensions have been deprecated and namespace usage
|
29
|
+
has been improved. In addition, we are getting very close to full
|
30
|
+
ActiveSupport, and Ruby 1.9, interoperability. Expect this
|
31
|
+
to be complete in the next minor release or two.
|
32
|
+
|
33
|
+
= Previous Notes
|
34
|
+
|
35
|
+
(2.3.0) Amoung other changes with this release, cloneable.rb is
|
36
|
+
now a true deep dup/clone mixin; tracepoint.rb returns
|
37
|
+
to the library.
|
38
|
+
|
39
|
+
(2.2.1) This release get rid of the underlying methods subdir.
|
40
|
+
All method redirects are now in core, to ensure
|
41
|
+
there are no more name clashes.
|
42
|
+
|
43
|
+
(2.2.0) This release provides improved rdocs and prepares facets for
|
44
|
+
use with RUby 1.9. It also adds Matthew Harris' duration.rb
|
45
|
+
library. Bug thanks to Matthew!
|
46
|
+
|
47
|
+
(2.1.0) Major changes include a new and much-improved command.rb,
|
48
|
+
a new BiCrypt class for simple two-way crypotgraphy,
|
49
|
+
as well as attr_reader!, attr_writer! and attr_accessor!
|
50
|
+
for flag attributes, plus alias_xxx methods for all
|
51
|
+
attr_xxx methods.
|
52
|
+
|
@@ -116,58 +116,58 @@ Object
|
|
116
116
|
|
117
117
|
<div class="sectiontitle">Methods</div>
|
118
118
|
<ul>
|
119
|
-
<li><a href="#
|
120
|
-
<li><a href="#
|
121
|
-
<li><a href="#
|
122
|
-
<li><a href="#
|
123
|
-
<li><a href="#
|
124
|
-
<li><a href="#
|
125
|
-
<li><a href="#
|
126
|
-
<li><a href="#
|
127
|
-
<li><a href="#
|
128
|
-
<li><a href="#
|
129
|
-
<li><a href="#
|
130
|
-
<li><a href="#
|
131
|
-
<li><a href="#
|
132
|
-
<li><a href="#
|
133
|
-
<li><a href="#
|
134
|
-
<li><a href="#
|
135
|
-
<li><a href="#
|
136
|
-
<li><a href="#
|
137
|
-
<li><a href="#
|
138
|
-
<li><a href="#
|
139
|
-
<li><a href="#
|
140
|
-
<li><a href="#
|
141
|
-
<li><a href="#
|
142
|
-
<li><a href="#
|
143
|
-
<li><a href="#
|
144
|
-
<li><a href="#
|
145
|
-
<li><a href="#
|
146
|
-
<li><a href="#
|
147
|
-
<li><a href="#
|
148
|
-
<li><a href="#
|
149
|
-
<li><a href="#
|
150
|
-
<li><a href="#
|
151
|
-
<li><a href="#
|
152
|
-
<li><a href="#
|
153
|
-
<li><a href="#
|
154
|
-
<li><a href="#
|
155
|
-
<li><a href="#
|
156
|
-
<li><a href="#
|
157
|
-
<li><a href="#
|
158
|
-
<li><a href="#
|
159
|
-
<li><a href="#
|
160
|
-
<li><a href="#
|
161
|
-
<li><a href="#
|
162
|
-
<li><a href="#
|
119
|
+
<li><a href="#M000256">**</a></li>
|
120
|
+
<li><a href="#M000235">**</a></li>
|
121
|
+
<li><a href="#M000272">combination</a></li>
|
122
|
+
<li><a href="#M000251">combination</a></li>
|
123
|
+
<li><a href="#M000262">conjoin</a></li>
|
124
|
+
<li><a href="#M000241">conjoin</a></li>
|
125
|
+
<li><a href="#M000248">delete_unless</a></li>
|
126
|
+
<li><a href="#M000269">delete_unless</a></li>
|
127
|
+
<li><a href="#M000249">delete_values</a></li>
|
128
|
+
<li><a href="#M000270">delete_values</a></li>
|
129
|
+
<li><a href="#M000271">delete_values_at</a></li>
|
130
|
+
<li><a href="#M000250">delete_values_at</a></li>
|
131
|
+
<li><a href="#M000263">merge!</a></li>
|
132
|
+
<li><a href="#M000242">merge!</a></li>
|
133
|
+
<li><a href="#M000238">not_empty?</a></li>
|
134
|
+
<li><a href="#M000259">not_empty?</a></li>
|
135
|
+
<li><a href="#M000268">only</a></li>
|
136
|
+
<li><a href="#M000247">only</a></li>
|
137
|
+
<li><a href="#M000274">pad</a></li>
|
138
|
+
<li><a href="#M000253">pad</a></li>
|
139
|
+
<li><a href="#M000275">pad!</a></li>
|
140
|
+
<li><a href="#M000254">pad!</a></li>
|
141
|
+
<li><a href="#M000245">permutation</a></li>
|
142
|
+
<li><a href="#M000266">permutation</a></li>
|
143
|
+
<li><a href="#M000255">product</a></li>
|
144
|
+
<li><a href="#M000234">product</a></li>
|
145
|
+
<li><a href="#M000236">recursively</a></li>
|
146
|
+
<li><a href="#M000257">recursively</a></li>
|
147
|
+
<li><a href="#M000258">recursively!</a></li>
|
148
|
+
<li><a href="#M000237">recursively!</a></li>
|
149
|
+
<li><a href="#M000239">rotate</a></li>
|
150
|
+
<li><a href="#M000260">rotate</a></li>
|
151
|
+
<li><a href="#M000261">rotate!</a></li>
|
152
|
+
<li><a href="#M000240">rotate!</a></li>
|
153
|
+
<li><a href="#M000246">select!</a></li>
|
154
|
+
<li><a href="#M000267">select!</a></li>
|
155
|
+
<li><a href="#M000273">splice</a></li>
|
156
|
+
<li><a href="#M000252">splice</a></li>
|
157
|
+
<li><a href="#M000233">to_b</a></li>
|
158
|
+
<li><a href="#M000232">to_h</a></li>
|
159
|
+
<li><a href="#M000264">traverse</a></li>
|
160
|
+
<li><a href="#M000243">traverse</a></li>
|
161
|
+
<li><a href="#M000244">traverse!</a></li>
|
162
|
+
<li><a href="#M000265">traverse!</a></li>
|
163
163
|
</ul>
|
164
164
|
|
165
165
|
<div class="sectiontitle">Included Modules</div>
|
166
166
|
<ul>
|
167
|
-
<li>Indexable</li>
|
168
|
-
<li>Stackable</li>
|
169
|
-
<li>Indexable</li>
|
170
|
-
<li>Stackable</li>
|
167
|
+
<li><a href="Indexable.html">Indexable</a></li>
|
168
|
+
<li><a href="Stackable.html">Stackable</a></li>
|
169
|
+
<li><a href="Indexable.html">Indexable</a></li>
|
170
|
+
<li><a href="Stackable.html">Stackable</a></li>
|
171
171
|
</ul>
|
172
172
|
|
173
173
|
|
@@ -177,32 +177,32 @@ Object
|
|
177
177
|
<div class="sectiontitle">Public Instance methods</div>
|
178
178
|
<div class="method">
|
179
179
|
<div class="title">
|
180
|
-
<a name="
|
180
|
+
<a name="M000256"></a><b>**</b>(*enums, &block)
|
181
181
|
</div>
|
182
182
|
<div class="description">
|
183
183
|
<p>
|
184
|
-
Alias for <a href="Array.html#
|
184
|
+
Alias for <a href="Array.html#M000234">product</a>
|
185
185
|
</p>
|
186
186
|
</div>
|
187
187
|
</div>
|
188
188
|
<div class="method">
|
189
189
|
<div class="title">
|
190
|
-
<a name="
|
190
|
+
<a name="M000235"></a><b>**</b>(*enums, &block)
|
191
191
|
</div>
|
192
192
|
<div class="description">
|
193
193
|
<p>
|
194
|
-
Alias for <a href="Array.html#
|
194
|
+
Alias for <a href="Array.html#M000234">product</a>
|
195
195
|
</p>
|
196
196
|
</div>
|
197
197
|
</div>
|
198
198
|
<div class="method">
|
199
199
|
<div class="title">
|
200
|
-
<a name="
|
200
|
+
<a name="M000272"></a><b>combination</b>(k=2) {|s.values_at(*idx)| ...}
|
201
201
|
</div>
|
202
202
|
<div class="description">
|
203
203
|
<p>
|
204
204
|
Yields the block to each unique <a
|
205
|
-
href="Array.html#
|
205
|
+
href="Array.html#M000251">combination</a> of <em>n</em> elements.
|
206
206
|
</p>
|
207
207
|
<pre>
|
208
208
|
a = %w|a b c d|
|
@@ -222,8 +222,8 @@ CREDIT: Florian Gross
|
|
222
222
|
</p>
|
223
223
|
</div>
|
224
224
|
<div class="sourcecode">
|
225
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
226
|
-
<div id="
|
225
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000272_source')" id="l_M000272_source">show source</a> ]</p>
|
226
|
+
<div id="M000272_source" class="dyn-source">
|
227
227
|
<pre>
|
228
228
|
<span class="ruby-comment cmt"># File lib/core/facets/array/combination.rb, line 21</span>
|
229
229
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">combination</span>(<span class="ruby-identifier">k</span>=<span class="ruby-value">2</span>)
|
@@ -250,12 +250,12 @@ CREDIT: Florian Gross
|
|
250
250
|
</div>
|
251
251
|
<div class="method">
|
252
252
|
<div class="title">
|
253
|
-
<a name="
|
253
|
+
<a name="M000251"></a><b>combination</b>(k=2) {|s.values_at(*idx)| ...}
|
254
254
|
</div>
|
255
255
|
<div class="description">
|
256
256
|
<p>
|
257
257
|
Yields the block to each unique <a
|
258
|
-
href="Array.html#
|
258
|
+
href="Array.html#M000251">combination</a> of <em>n</em> elements.
|
259
259
|
</p>
|
260
260
|
<pre>
|
261
261
|
a = %w|a b c d|
|
@@ -275,8 +275,8 @@ CREDIT: Florian Gross
|
|
275
275
|
</p>
|
276
276
|
</div>
|
277
277
|
<div class="sourcecode">
|
278
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
279
|
-
<div id="
|
278
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000251_source')" id="l_M000251_source">show source</a> ]</p>
|
279
|
+
<div id="M000251_source" class="dyn-source">
|
280
280
|
<pre>
|
281
281
|
<span class="ruby-comment cmt"># File lib/core/facets/array/combination.rb, line 21</span>
|
282
282
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">combination</span>(<span class="ruby-identifier">k</span>=<span class="ruby-value">2</span>)
|
@@ -303,7 +303,7 @@ CREDIT: Florian Gross
|
|
303
303
|
</div>
|
304
304
|
<div class="method">
|
305
305
|
<div class="title">
|
306
|
-
<a name="
|
306
|
+
<a name="M000262"></a><b>conjoin</b>(*args) {|i, *slice(i,2)| ...}
|
307
307
|
</div>
|
308
308
|
<div class="description">
|
309
309
|
<p>
|
@@ -338,8 +338,8 @@ no longer the case. You must specifically provide these parameters.
|
|
338
338
|
</pre>
|
339
339
|
</div>
|
340
340
|
<div class="sourcecode">
|
341
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
342
|
-
<div id="
|
341
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000262_source')" id="l_M000262_source">show source</a> ]</p>
|
342
|
+
<div id="M000262_source" class="dyn-source">
|
343
343
|
<pre>
|
344
344
|
<span class="ruby-comment cmt"># File lib/core/facets/array/conjoin.rb, line 30</span>
|
345
345
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">conjoin</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -374,7 +374,7 @@ no longer the case. You must specifically provide these parameters.
|
|
374
374
|
</div>
|
375
375
|
<div class="method">
|
376
376
|
<div class="title">
|
377
|
-
<a name="
|
377
|
+
<a name="M000241"></a><b>conjoin</b>(*args) {|i, *slice(i,2)| ...}
|
378
378
|
</div>
|
379
379
|
<div class="description">
|
380
380
|
<p>
|
@@ -409,8 +409,8 @@ no longer the case. You must specifically provide these parameters.
|
|
409
409
|
</pre>
|
410
410
|
</div>
|
411
411
|
<div class="sourcecode">
|
412
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
413
|
-
<div id="
|
412
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000241_source')" id="l_M000241_source">show source</a> ]</p>
|
413
|
+
<div id="M000241_source" class="dyn-source">
|
414
414
|
<pre>
|
415
415
|
<span class="ruby-comment cmt"># File lib/core/facets/array/conjoin.rb, line 30</span>
|
416
416
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">conjoin</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -445,7 +445,7 @@ no longer the case. You must specifically provide these parameters.
|
|
445
445
|
</div>
|
446
446
|
<div class="method">
|
447
447
|
<div class="title">
|
448
|
-
<a name="
|
448
|
+
<a name="M000248"></a><b>delete_unless</b>(&block)
|
449
449
|
</div>
|
450
450
|
<div class="description">
|
451
451
|
<p>
|
@@ -459,8 +459,8 @@ Inverse of delete_if.
|
|
459
459
|
</pre>
|
460
460
|
</div>
|
461
461
|
<div class="sourcecode">
|
462
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
463
|
-
<div id="
|
462
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000248_source')" id="l_M000248_source">show source</a> ]</p>
|
463
|
+
<div id="M000248_source" class="dyn-source">
|
464
464
|
<pre>
|
465
465
|
<span class="ruby-comment cmt"># File lib/core/facets/array/delete.rb, line 10</span>
|
466
466
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete_unless</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -472,7 +472,7 @@ Inverse of delete_if.
|
|
472
472
|
</div>
|
473
473
|
<div class="method">
|
474
474
|
<div class="title">
|
475
|
-
<a name="
|
475
|
+
<a name="M000269"></a><b>delete_unless</b>(&block)
|
476
476
|
</div>
|
477
477
|
<div class="description">
|
478
478
|
<p>
|
@@ -486,8 +486,8 @@ Inverse of delete_if.
|
|
486
486
|
</pre>
|
487
487
|
</div>
|
488
488
|
<div class="sourcecode">
|
489
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
490
|
-
<div id="
|
489
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000269_source')" id="l_M000269_source">show source</a> ]</p>
|
490
|
+
<div id="M000269_source" class="dyn-source">
|
491
491
|
<pre>
|
492
492
|
<span class="ruby-comment cmt"># File lib/core/facets/array/delete.rb, line 10</span>
|
493
493
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete_unless</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -499,7 +499,7 @@ Inverse of delete_if.
|
|
499
499
|
</div>
|
500
500
|
<div class="method">
|
501
501
|
<div class="title">
|
502
|
-
<a name="
|
502
|
+
<a name="M000249"></a><b>delete_values</b>(*values)
|
503
503
|
</div>
|
504
504
|
<div class="description">
|
505
505
|
<p>
|
@@ -515,8 +515,8 @@ CREDIT: Trans
|
|
515
515
|
</p>
|
516
516
|
</div>
|
517
517
|
<div class="sourcecode">
|
518
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
519
|
-
<div id="
|
518
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000249_source')" id="l_M000249_source">show source</a> ]</p>
|
519
|
+
<div id="M000249_source" class="dyn-source">
|
520
520
|
<pre>
|
521
521
|
<span class="ruby-comment cmt"># File lib/core/facets/array/delete.rb, line 22</span>
|
522
522
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete_values</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">values</span>)
|
@@ -530,7 +530,7 @@ CREDIT: Trans
|
|
530
530
|
</div>
|
531
531
|
<div class="method">
|
532
532
|
<div class="title">
|
533
|
-
<a name="
|
533
|
+
<a name="M000270"></a><b>delete_values</b>(*values)
|
534
534
|
</div>
|
535
535
|
<div class="description">
|
536
536
|
<p>
|
@@ -546,8 +546,8 @@ CREDIT: Trans
|
|
546
546
|
</p>
|
547
547
|
</div>
|
548
548
|
<div class="sourcecode">
|
549
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
550
|
-
<div id="
|
549
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000270_source')" id="l_M000270_source">show source</a> ]</p>
|
550
|
+
<div id="M000270_source" class="dyn-source">
|
551
551
|
<pre>
|
552
552
|
<span class="ruby-comment cmt"># File lib/core/facets/array/delete.rb, line 22</span>
|
553
553
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete_values</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">values</span>)
|
@@ -561,7 +561,7 @@ CREDIT: Trans
|
|
561
561
|
</div>
|
562
562
|
<div class="method">
|
563
563
|
<div class="title">
|
564
|
-
<a name="
|
564
|
+
<a name="M000271"></a><b>delete_values_at</b>(*selectors)
|
565
565
|
</div>
|
566
566
|
<div class="description">
|
567
567
|
<p>
|
@@ -583,8 +583,8 @@ NOTE: It would be nice to see delete_at incorporate this funcitonaility.
|
|
583
583
|
</pre>
|
584
584
|
</div>
|
585
585
|
<div class="sourcecode">
|
586
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
587
|
-
<div id="
|
586
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000271_source')" id="l_M000271_source">show source</a> ]</p>
|
587
|
+
<div id="M000271_source" class="dyn-source">
|
588
588
|
<pre>
|
589
589
|
<span class="ruby-comment cmt"># File lib/core/facets/array/delete.rb, line 43</span>
|
590
590
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete_values_at</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">selectors</span>)
|
@@ -609,7 +609,7 @@ NOTE: It would be nice to see delete_at incorporate this funcitonaility.
|
|
609
609
|
</div>
|
610
610
|
<div class="method">
|
611
611
|
<div class="title">
|
612
|
-
<a name="
|
612
|
+
<a name="M000250"></a><b>delete_values_at</b>(*selectors)
|
613
613
|
</div>
|
614
614
|
<div class="description">
|
615
615
|
<p>
|
@@ -631,8 +631,8 @@ NOTE: It would be nice to see delete_at incorporate this funcitonaility.
|
|
631
631
|
</pre>
|
632
632
|
</div>
|
633
633
|
<div class="sourcecode">
|
634
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
635
|
-
<div id="
|
634
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000250_source')" id="l_M000250_source">show source</a> ]</p>
|
635
|
+
<div id="M000250_source" class="dyn-source">
|
636
636
|
<pre>
|
637
637
|
<span class="ruby-comment cmt"># File lib/core/facets/array/delete.rb, line 43</span>
|
638
638
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete_values_at</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">selectors</span>)
|
@@ -657,7 +657,7 @@ NOTE: It would be nice to see delete_at incorporate this funcitonaility.
|
|
657
657
|
</div>
|
658
658
|
<div class="method">
|
659
659
|
<div class="title">
|
660
|
-
<a name="
|
660
|
+
<a name="M000263"></a><b>merge!</b>( other )
|
661
661
|
</div>
|
662
662
|
<div class="description">
|
663
663
|
<p>
|
@@ -672,8 +672,8 @@ In place merge.
|
|
672
672
|
</pre>
|
673
673
|
</div>
|
674
674
|
<div class="sourcecode">
|
675
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
676
|
-
<div id="
|
675
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000263_source')" id="l_M000263_source">show source</a> ]</p>
|
676
|
+
<div id="M000263_source" class="dyn-source">
|
677
677
|
<pre>
|
678
678
|
<span class="ruby-comment cmt"># File lib/core/facets/array/merge.rb, line 11</span>
|
679
679
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">merge!</span>( <span class="ruby-identifier">other</span> )
|
@@ -685,7 +685,7 @@ In place merge.
|
|
685
685
|
</div>
|
686
686
|
<div class="method">
|
687
687
|
<div class="title">
|
688
|
-
<a name="
|
688
|
+
<a name="M000242"></a><b>merge!</b>( other )
|
689
689
|
</div>
|
690
690
|
<div class="description">
|
691
691
|
<p>
|
@@ -700,8 +700,8 @@ In place merge.
|
|
700
700
|
</pre>
|
701
701
|
</div>
|
702
702
|
<div class="sourcecode">
|
703
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
704
|
-
<div id="
|
703
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000242_source')" id="l_M000242_source">show source</a> ]</p>
|
704
|
+
<div id="M000242_source" class="dyn-source">
|
705
705
|
<pre>
|
706
706
|
<span class="ruby-comment cmt"># File lib/core/facets/array/merge.rb, line 11</span>
|
707
707
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">merge!</span>( <span class="ruby-identifier">other</span> )
|
@@ -713,7 +713,7 @@ In place merge.
|
|
713
713
|
</div>
|
714
714
|
<div class="method">
|
715
715
|
<div class="title">
|
716
|
-
<a name="
|
716
|
+
<a name="M000238"></a><b>not_empty?</b>()
|
717
717
|
</div>
|
718
718
|
<div class="description">
|
719
719
|
<p>
|
@@ -725,8 +725,8 @@ Not empty?
|
|
725
725
|
</pre>
|
726
726
|
</div>
|
727
727
|
<div class="sourcecode">
|
728
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
729
|
-
<div id="
|
728
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000238_source')" id="l_M000238_source">show source</a> ]</p>
|
729
|
+
<div id="M000238_source" class="dyn-source">
|
730
730
|
<pre>
|
731
731
|
<span class="ruby-comment cmt"># File lib/core/facets/array/not_empty.rb, line 8</span>
|
732
732
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">not_empty?</span>
|
@@ -738,7 +738,7 @@ Not empty?
|
|
738
738
|
</div>
|
739
739
|
<div class="method">
|
740
740
|
<div class="title">
|
741
|
-
<a name="
|
741
|
+
<a name="M000259"></a><b>not_empty?</b>()
|
742
742
|
</div>
|
743
743
|
<div class="description">
|
744
744
|
<p>
|
@@ -750,8 +750,8 @@ Not empty?
|
|
750
750
|
</pre>
|
751
751
|
</div>
|
752
752
|
<div class="sourcecode">
|
753
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
754
|
-
<div id="
|
753
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000259_source')" id="l_M000259_source">show source</a> ]</p>
|
754
|
+
<div id="M000259_source" class="dyn-source">
|
755
755
|
<pre>
|
756
756
|
<span class="ruby-comment cmt"># File lib/core/facets/array/not_empty.rb, line 8</span>
|
757
757
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">not_empty?</span>
|
@@ -763,11 +763,11 @@ Not empty?
|
|
763
763
|
</div>
|
764
764
|
<div class="method">
|
765
765
|
<div class="title">
|
766
|
-
<a name="
|
766
|
+
<a name="M000268"></a><b>only</b>()
|
767
767
|
</div>
|
768
768
|
<div class="description">
|
769
769
|
<p>
|
770
|
-
Returns the <em><a href="Array.html#
|
770
|
+
Returns the <em><a href="Array.html#M000247">only</a></em> element in the
|
771
771
|
array. Raises an IndexError if the array‘s size is not 1.
|
772
772
|
</p>
|
773
773
|
<pre>
|
@@ -780,8 +780,8 @@ array. Raises an IndexError if the array‘s size is not 1.
|
|
780
780
|
</pre>
|
781
781
|
</div>
|
782
782
|
<div class="sourcecode">
|
783
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
784
|
-
<div id="
|
783
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000268_source')" id="l_M000268_source">show source</a> ]</p>
|
784
|
+
<div id="M000268_source" class="dyn-source">
|
785
785
|
<pre>
|
786
786
|
<span class="ruby-comment cmt"># File lib/core/facets/array/only.rb, line 13</span>
|
787
787
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">only</span>
|
@@ -796,11 +796,11 @@ array. Raises an IndexError if the array‘s size is not 1.
|
|
796
796
|
</div>
|
797
797
|
<div class="method">
|
798
798
|
<div class="title">
|
799
|
-
<a name="
|
799
|
+
<a name="M000247"></a><b>only</b>()
|
800
800
|
</div>
|
801
801
|
<div class="description">
|
802
802
|
<p>
|
803
|
-
Returns the <em><a href="Array.html#
|
803
|
+
Returns the <em><a href="Array.html#M000247">only</a></em> element in the
|
804
804
|
array. Raises an IndexError if the array‘s size is not 1.
|
805
805
|
</p>
|
806
806
|
<pre>
|
@@ -813,8 +813,8 @@ array. Raises an IndexError if the array‘s size is not 1.
|
|
813
813
|
</pre>
|
814
814
|
</div>
|
815
815
|
<div class="sourcecode">
|
816
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
817
|
-
<div id="
|
816
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000247_source')" id="l_M000247_source">show source</a> ]</p>
|
817
|
+
<div id="M000247_source" class="dyn-source">
|
818
818
|
<pre>
|
819
819
|
<span class="ruby-comment cmt"># File lib/core/facets/array/only.rb, line 13</span>
|
820
820
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">only</span>
|
@@ -829,7 +829,7 @@ array. Raises an IndexError if the array‘s size is not 1.
|
|
829
829
|
</div>
|
830
830
|
<div class="method">
|
831
831
|
<div class="title">
|
832
|
-
<a name="
|
832
|
+
<a name="M000274"></a><b>pad</b>(len, val=nil)
|
833
833
|
</div>
|
834
834
|
<div class="description">
|
835
835
|
<p>
|
@@ -849,8 +849,8 @@ beginning of the array.
|
|
849
849
|
</pre>
|
850
850
|
</div>
|
851
851
|
<div class="sourcecode">
|
852
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
853
|
-
<div id="
|
852
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000274_source')" id="l_M000274_source">show source</a> ]</p>
|
853
|
+
<div id="M000274_source" class="dyn-source">
|
854
854
|
<pre>
|
855
855
|
<span class="ruby-comment cmt"># File lib/core/facets/array/pad.rb, line 14</span>
|
856
856
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pad</span>(<span class="ruby-identifier">len</span>, <span class="ruby-identifier">val</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -867,7 +867,7 @@ beginning of the array.
|
|
867
867
|
</div>
|
868
868
|
<div class="method">
|
869
869
|
<div class="title">
|
870
|
-
<a name="
|
870
|
+
<a name="M000253"></a><b>pad</b>(len, val=nil)
|
871
871
|
</div>
|
872
872
|
<div class="description">
|
873
873
|
<p>
|
@@ -887,8 +887,8 @@ beginning of the array.
|
|
887
887
|
</pre>
|
888
888
|
</div>
|
889
889
|
<div class="sourcecode">
|
890
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
891
|
-
<div id="
|
890
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000253_source')" id="l_M000253_source">show source</a> ]</p>
|
891
|
+
<div id="M000253_source" class="dyn-source">
|
892
892
|
<pre>
|
893
893
|
<span class="ruby-comment cmt"># File lib/core/facets/array/pad.rb, line 14</span>
|
894
894
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pad</span>(<span class="ruby-identifier">len</span>, <span class="ruby-identifier">val</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -905,11 +905,11 @@ beginning of the array.
|
|
905
905
|
</div>
|
906
906
|
<div class="method">
|
907
907
|
<div class="title">
|
908
|
-
<a name="
|
908
|
+
<a name="M000275"></a><b>pad!</b>(len, val=nil)
|
909
909
|
</div>
|
910
910
|
<div class="description">
|
911
911
|
<p>
|
912
|
-
Like <a href="Array.html#
|
912
|
+
Like <a href="Array.html#M000253">pad</a> but changes the array in place.
|
913
913
|
</p>
|
914
914
|
<pre>
|
915
915
|
a = [0,1,2]
|
@@ -920,8 +920,8 @@ Like <a href="Array.html#M000271">pad</a> but changes the array in place.
|
|
920
920
|
</pre>
|
921
921
|
</div>
|
922
922
|
<div class="sourcecode">
|
923
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
924
|
-
<div id="
|
923
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000275_source')" id="l_M000275_source">show source</a> ]</p>
|
924
|
+
<div id="M000275_source" class="dyn-source">
|
925
925
|
<pre>
|
926
926
|
<span class="ruby-comment cmt"># File lib/core/facets/array/pad.rb, line 31</span>
|
927
927
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pad!</span>(<span class="ruby-identifier">len</span>, <span class="ruby-identifier">val</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -938,11 +938,11 @@ Like <a href="Array.html#M000271">pad</a> but changes the array in place.
|
|
938
938
|
</div>
|
939
939
|
<div class="method">
|
940
940
|
<div class="title">
|
941
|
-
<a name="
|
941
|
+
<a name="M000254"></a><b>pad!</b>(len, val=nil)
|
942
942
|
</div>
|
943
943
|
<div class="description">
|
944
944
|
<p>
|
945
|
-
Like <a href="Array.html#
|
945
|
+
Like <a href="Array.html#M000253">pad</a> but changes the array in place.
|
946
946
|
</p>
|
947
947
|
<pre>
|
948
948
|
a = [0,1,2]
|
@@ -953,8 +953,8 @@ Like <a href="Array.html#M000271">pad</a> but changes the array in place.
|
|
953
953
|
</pre>
|
954
954
|
</div>
|
955
955
|
<div class="sourcecode">
|
956
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
957
|
-
<div id="
|
956
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000254_source')" id="l_M000254_source">show source</a> ]</p>
|
957
|
+
<div id="M000254_source" class="dyn-source">
|
958
958
|
<pre>
|
959
959
|
<span class="ruby-comment cmt"># File lib/core/facets/array/pad.rb, line 31</span>
|
960
960
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pad!</span>(<span class="ruby-identifier">len</span>, <span class="ruby-identifier">val</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -971,12 +971,12 @@ Like <a href="Array.html#M000271">pad</a> but changes the array in place.
|
|
971
971
|
</div>
|
972
972
|
<div class="method">
|
973
973
|
<div class="title">
|
974
|
-
<a name="
|
974
|
+
<a name="M000245"></a><b>permutation</b>(n=size) {|[]| ...}
|
975
975
|
</div>
|
976
976
|
<div class="description">
|
977
977
|
<p>
|
978
978
|
Permutation provids the possible orders of an enumerable. Each is indexed
|
979
|
-
by a <a href="Array.html#
|
979
|
+
by a <a href="Array.html#M000245">permutation</a> number. The maximum
|
980
980
|
number of arrangements is the factorial of the size of the array.
|
981
981
|
</p>
|
982
982
|
<pre>
|
@@ -984,8 +984,8 @@ number of arrangements is the factorial of the size of the array.
|
|
984
984
|
</pre>
|
985
985
|
</div>
|
986
986
|
<div class="sourcecode">
|
987
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
988
|
-
<div id="
|
987
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000245_source')" id="l_M000245_source">show source</a> ]</p>
|
988
|
+
<div id="M000245_source" class="dyn-source">
|
989
989
|
<pre>
|
990
990
|
<span class="ruby-comment cmt"># File lib/core/facets/array/permutation.rb, line 11</span>
|
991
991
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">permutation</span>(<span class="ruby-identifier">n</span>=<span class="ruby-identifier">size</span>)
|
@@ -1009,12 +1009,12 @@ number of arrangements is the factorial of the size of the array.
|
|
1009
1009
|
</div>
|
1010
1010
|
<div class="method">
|
1011
1011
|
<div class="title">
|
1012
|
-
<a name="
|
1012
|
+
<a name="M000266"></a><b>permutation</b>(n=size) {|[]| ...}
|
1013
1013
|
</div>
|
1014
1014
|
<div class="description">
|
1015
1015
|
<p>
|
1016
1016
|
Permutation provids the possible orders of an enumerable. Each is indexed
|
1017
|
-
by a <a href="Array.html#
|
1017
|
+
by a <a href="Array.html#M000245">permutation</a> number. The maximum
|
1018
1018
|
number of arrangements is the factorial of the size of the array.
|
1019
1019
|
</p>
|
1020
1020
|
<pre>
|
@@ -1022,8 +1022,8 @@ number of arrangements is the factorial of the size of the array.
|
|
1022
1022
|
</pre>
|
1023
1023
|
</div>
|
1024
1024
|
<div class="sourcecode">
|
1025
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1026
|
-
<div id="
|
1025
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000266_source')" id="l_M000266_source">show source</a> ]</p>
|
1026
|
+
<div id="M000266_source" class="dyn-source">
|
1027
1027
|
<pre>
|
1028
1028
|
<span class="ruby-comment cmt"># File lib/core/facets/array/permutation.rb, line 11</span>
|
1029
1029
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">permutation</span>(<span class="ruby-identifier">n</span>=<span class="ruby-identifier">size</span>)
|
@@ -1047,11 +1047,11 @@ number of arrangements is the factorial of the size of the array.
|
|
1047
1047
|
</div>
|
1048
1048
|
<div class="method">
|
1049
1049
|
<div class="title">
|
1050
|
-
<a name="
|
1050
|
+
<a name="M000255"></a><b>product</b>(*enums, &block)
|
1051
1051
|
</div>
|
1052
1052
|
<div class="description">
|
1053
1053
|
<p>
|
1054
|
-
Provides the cross-<a href="Array.html#
|
1054
|
+
Provides the cross-<a href="Array.html#M000234">product</a> of two or more
|
1055
1055
|
Enumerables. This is the class-level method. The instance method calls on
|
1056
1056
|
this.
|
1057
1057
|
</p>
|
@@ -1070,8 +1070,8 @@ this.
|
|
1070
1070
|
</pre>
|
1071
1071
|
</div>
|
1072
1072
|
<div class="sourcecode">
|
1073
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1074
|
-
<div id="
|
1073
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000255_source')" id="l_M000255_source">show source</a> ]</p>
|
1074
|
+
<div id="M000255_source" class="dyn-source">
|
1075
1075
|
<pre>
|
1076
1076
|
<span class="ruby-comment cmt"># File lib/core/facets/array/product.rb, line 21</span>
|
1077
1077
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">product</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">enums</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -1098,11 +1098,11 @@ this.
|
|
1098
1098
|
</div>
|
1099
1099
|
<div class="method">
|
1100
1100
|
<div class="title">
|
1101
|
-
<a name="
|
1101
|
+
<a name="M000234"></a><b>product</b>(*enums, &block)
|
1102
1102
|
</div>
|
1103
1103
|
<div class="description">
|
1104
1104
|
<p>
|
1105
|
-
Provides the cross-<a href="Array.html#
|
1105
|
+
Provides the cross-<a href="Array.html#M000234">product</a> of two or more
|
1106
1106
|
Enumerables. This is the class-level method. The instance method calls on
|
1107
1107
|
this.
|
1108
1108
|
</p>
|
@@ -1122,12 +1122,12 @@ this.
|
|
1122
1122
|
</div>
|
1123
1123
|
<div class="aka">
|
1124
1124
|
This method is also aliased as
|
1125
|
-
<a href="Array.html#
|
1126
|
-
<a href="Array.html#
|
1125
|
+
<a href="Array.html#M000235">**</a>
|
1126
|
+
<a href="Array.html#M000256">**</a>
|
1127
1127
|
</div>
|
1128
1128
|
<div class="sourcecode">
|
1129
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1130
|
-
<div id="
|
1129
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000234_source')" id="l_M000234_source">show source</a> ]</p>
|
1130
|
+
<div id="M000234_source" class="dyn-source">
|
1131
1131
|
<pre>
|
1132
1132
|
<span class="ruby-comment cmt"># File lib/core/facets/array/product.rb, line 21</span>
|
1133
1133
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">product</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">enums</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -1154,11 +1154,11 @@ this.
|
|
1154
1154
|
</div>
|
1155
1155
|
<div class="method">
|
1156
1156
|
<div class="title">
|
1157
|
-
<a name="
|
1157
|
+
<a name="M000236"></a><b>recursively</b>() {|a| ...}
|
1158
1158
|
</div>
|
1159
1159
|
<div class="description">
|
1160
1160
|
<p>
|
1161
|
-
Apply a block to hash, and <a href="Array.html#
|
1161
|
+
Apply a block to hash, and <a href="Array.html#M000236">recursively</a>
|
1162
1162
|
apply that block to each subhash.
|
1163
1163
|
</p>
|
1164
1164
|
<pre>
|
@@ -1171,8 +1171,8 @@ TODO: Can this be generalized in Enumerbale?
|
|
1171
1171
|
</p>
|
1172
1172
|
</div>
|
1173
1173
|
<div class="sourcecode">
|
1174
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1175
|
-
<div id="
|
1174
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000236_source')" id="l_M000236_source">show source</a> ]</p>
|
1175
|
+
<div id="M000236_source" class="dyn-source">
|
1176
1176
|
<pre>
|
1177
1177
|
<span class="ruby-comment cmt"># File lib/core/facets/array/recursively.rb, line 12</span>
|
1178
1178
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recursively</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -1192,11 +1192,11 @@ TODO: Can this be generalized in Enumerbale?
|
|
1192
1192
|
</div>
|
1193
1193
|
<div class="method">
|
1194
1194
|
<div class="title">
|
1195
|
-
<a name="
|
1195
|
+
<a name="M000257"></a><b>recursively</b>() {|a| ...}
|
1196
1196
|
</div>
|
1197
1197
|
<div class="description">
|
1198
1198
|
<p>
|
1199
|
-
Apply a block to hash, and <a href="Array.html#
|
1199
|
+
Apply a block to hash, and <a href="Array.html#M000236">recursively</a>
|
1200
1200
|
apply that block to each subhash.
|
1201
1201
|
</p>
|
1202
1202
|
<pre>
|
@@ -1209,8 +1209,8 @@ TODO: Can this be generalized in Enumerbale?
|
|
1209
1209
|
</p>
|
1210
1210
|
</div>
|
1211
1211
|
<div class="sourcecode">
|
1212
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1213
|
-
<div id="
|
1212
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000257_source')" id="l_M000257_source">show source</a> ]</p>
|
1213
|
+
<div id="M000257_source" class="dyn-source">
|
1214
1214
|
<pre>
|
1215
1215
|
<span class="ruby-comment cmt"># File lib/core/facets/array/recursively.rb, line 12</span>
|
1216
1216
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recursively</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -1230,16 +1230,16 @@ TODO: Can this be generalized in Enumerbale?
|
|
1230
1230
|
</div>
|
1231
1231
|
<div class="method">
|
1232
1232
|
<div class="title">
|
1233
|
-
<a name="
|
1233
|
+
<a name="M000258"></a><b>recursively!</b>(&block)
|
1234
1234
|
</div>
|
1235
1235
|
<div class="description">
|
1236
1236
|
<p>
|
1237
|
-
In place form of <a href="Array.html#
|
1237
|
+
In place form of <a href="Array.html#M000236">recursively</a>.
|
1238
1238
|
</p>
|
1239
1239
|
</div>
|
1240
1240
|
<div class="sourcecode">
|
1241
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1242
|
-
<div id="
|
1241
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000258_source')" id="l_M000258_source">show source</a> ]</p>
|
1242
|
+
<div id="M000258_source" class="dyn-source">
|
1243
1243
|
<pre>
|
1244
1244
|
<span class="ruby-comment cmt"># File lib/core/facets/array/recursively.rb, line 26</span>
|
1245
1245
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recursively!</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -1251,16 +1251,16 @@ In place form of <a href="Array.html#M000254">recursively</a>.
|
|
1251
1251
|
</div>
|
1252
1252
|
<div class="method">
|
1253
1253
|
<div class="title">
|
1254
|
-
<a name="
|
1254
|
+
<a name="M000237"></a><b>recursively!</b>(&block)
|
1255
1255
|
</div>
|
1256
1256
|
<div class="description">
|
1257
1257
|
<p>
|
1258
|
-
In place form of <a href="Array.html#
|
1258
|
+
In place form of <a href="Array.html#M000236">recursively</a>.
|
1259
1259
|
</p>
|
1260
1260
|
</div>
|
1261
1261
|
<div class="sourcecode">
|
1262
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1263
|
-
<div id="
|
1262
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000237_source')" id="l_M000237_source">show source</a> ]</p>
|
1263
|
+
<div id="M000237_source" class="dyn-source">
|
1264
1264
|
<pre>
|
1265
1265
|
<span class="ruby-comment cmt"># File lib/core/facets/array/recursively.rb, line 26</span>
|
1266
1266
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recursively!</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -1272,7 +1272,7 @@ In place form of <a href="Array.html#M000254">recursively</a>.
|
|
1272
1272
|
</div>
|
1273
1273
|
<div class="method">
|
1274
1274
|
<div class="title">
|
1275
|
-
<a name="
|
1275
|
+
<a name="M000239"></a><b>rotate</b>(n=1)
|
1276
1276
|
</div>
|
1277
1277
|
<div class="description">
|
1278
1278
|
<p>
|
@@ -1295,8 +1295,8 @@ A negative parameter reverses the order from front to back.
|
|
1295
1295
|
</pre>
|
1296
1296
|
</div>
|
1297
1297
|
<div class="sourcecode">
|
1298
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1299
|
-
<div id="
|
1298
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000239_source')" id="l_M000239_source">show source</a> ]</p>
|
1299
|
+
<div id="M000239_source" class="dyn-source">
|
1300
1300
|
<pre>
|
1301
1301
|
<span class="ruby-comment cmt"># File lib/core/facets/array/rotate.rb, line 17</span>
|
1302
1302
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rotate</span>(<span class="ruby-identifier">n</span>=<span class="ruby-value">1</span>)
|
@@ -1308,7 +1308,7 @@ A negative parameter reverses the order from front to back.
|
|
1308
1308
|
</div>
|
1309
1309
|
<div class="method">
|
1310
1310
|
<div class="title">
|
1311
|
-
<a name="
|
1311
|
+
<a name="M000260"></a><b>rotate</b>(n=1)
|
1312
1312
|
</div>
|
1313
1313
|
<div class="description">
|
1314
1314
|
<p>
|
@@ -1331,8 +1331,8 @@ A negative parameter reverses the order from front to back.
|
|
1331
1331
|
</pre>
|
1332
1332
|
</div>
|
1333
1333
|
<div class="sourcecode">
|
1334
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1335
|
-
<div id="
|
1334
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000260_source')" id="l_M000260_source">show source</a> ]</p>
|
1335
|
+
<div id="M000260_source" class="dyn-source">
|
1336
1336
|
<pre>
|
1337
1337
|
<span class="ruby-comment cmt"># File lib/core/facets/array/rotate.rb, line 17</span>
|
1338
1338
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rotate</span>(<span class="ruby-identifier">n</span>=<span class="ruby-value">1</span>)
|
@@ -1344,11 +1344,11 @@ A negative parameter reverses the order from front to back.
|
|
1344
1344
|
</div>
|
1345
1345
|
<div class="method">
|
1346
1346
|
<div class="title">
|
1347
|
-
<a name="
|
1347
|
+
<a name="M000261"></a><b>rotate!</b>(n=1)
|
1348
1348
|
</div>
|
1349
1349
|
<div class="description">
|
1350
1350
|
<p>
|
1351
|
-
Same as <a href="Array.html#
|
1351
|
+
Same as <a href="Array.html#M000239">rotate</a>, but acts in place.
|
1352
1352
|
</p>
|
1353
1353
|
<pre>
|
1354
1354
|
a = [1,2,3]
|
@@ -1360,8 +1360,8 @@ Same as <a href="Array.html#M000257">rotate</a>, but acts in place.
|
|
1360
1360
|
</pre>
|
1361
1361
|
</div>
|
1362
1362
|
<div class="sourcecode">
|
1363
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1364
|
-
<div id="
|
1363
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000261_source')" id="l_M000261_source">show source</a> ]</p>
|
1364
|
+
<div id="M000261_source" class="dyn-source">
|
1365
1365
|
<pre>
|
1366
1366
|
<span class="ruby-comment cmt"># File lib/core/facets/array/rotate.rb, line 30</span>
|
1367
1367
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rotate!</span>(<span class="ruby-identifier">n</span>=<span class="ruby-value">1</span>)
|
@@ -1380,11 +1380,11 @@ Same as <a href="Array.html#M000257">rotate</a>, but acts in place.
|
|
1380
1380
|
</div>
|
1381
1381
|
<div class="method">
|
1382
1382
|
<div class="title">
|
1383
|
-
<a name="
|
1383
|
+
<a name="M000240"></a><b>rotate!</b>(n=1)
|
1384
1384
|
</div>
|
1385
1385
|
<div class="description">
|
1386
1386
|
<p>
|
1387
|
-
Same as <a href="Array.html#
|
1387
|
+
Same as <a href="Array.html#M000239">rotate</a>, but acts in place.
|
1388
1388
|
</p>
|
1389
1389
|
<pre>
|
1390
1390
|
a = [1,2,3]
|
@@ -1396,8 +1396,8 @@ Same as <a href="Array.html#M000257">rotate</a>, but acts in place.
|
|
1396
1396
|
</pre>
|
1397
1397
|
</div>
|
1398
1398
|
<div class="sourcecode">
|
1399
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1400
|
-
<div id="
|
1399
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000240_source')" id="l_M000240_source">show source</a> ]</p>
|
1400
|
+
<div id="M000240_source" class="dyn-source">
|
1401
1401
|
<pre>
|
1402
1402
|
<span class="ruby-comment cmt"># File lib/core/facets/array/rotate.rb, line 30</span>
|
1403
1403
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rotate!</span>(<span class="ruby-identifier">n</span>=<span class="ruby-value">1</span>)
|
@@ -1416,7 +1416,7 @@ Same as <a href="Array.html#M000257">rotate</a>, but acts in place.
|
|
1416
1416
|
</div>
|
1417
1417
|
<div class="method">
|
1418
1418
|
<div class="title">
|
1419
|
-
<a name="
|
1419
|
+
<a name="M000246"></a><b>select!</b>( {|| ...}
|
1420
1420
|
</div>
|
1421
1421
|
<div class="description">
|
1422
1422
|
<p>
|
@@ -1431,8 +1431,8 @@ As with select but modifies the <a href="Array.html">Array</a> in place.
|
|
1431
1431
|
</pre>
|
1432
1432
|
</div>
|
1433
1433
|
<div class="sourcecode">
|
1434
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1435
|
-
<div id="
|
1434
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000246_source')" id="l_M000246_source">show source</a> ]</p>
|
1435
|
+
<div id="M000246_source" class="dyn-source">
|
1436
1436
|
<pre>
|
1437
1437
|
<span class="ruby-comment cmt"># File lib/core/facets/array/select.rb, line 11</span>
|
1438
1438
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">select!</span> <span class="ruby-comment cmt"># :yield:</span>
|
@@ -1444,7 +1444,7 @@ As with select but modifies the <a href="Array.html">Array</a> in place.
|
|
1444
1444
|
</div>
|
1445
1445
|
<div class="method">
|
1446
1446
|
<div class="title">
|
1447
|
-
<a name="
|
1447
|
+
<a name="M000267"></a><b>select!</b>( {|| ...}
|
1448
1448
|
</div>
|
1449
1449
|
<div class="description">
|
1450
1450
|
<p>
|
@@ -1459,8 +1459,8 @@ As with select but modifies the <a href="Array.html">Array</a> in place.
|
|
1459
1459
|
</pre>
|
1460
1460
|
</div>
|
1461
1461
|
<div class="sourcecode">
|
1462
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1463
|
-
<div id="
|
1462
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000267_source')" id="l_M000267_source">show source</a> ]</p>
|
1463
|
+
<div id="M000267_source" class="dyn-source">
|
1464
1464
|
<pre>
|
1465
1465
|
<span class="ruby-comment cmt"># File lib/core/facets/array/select.rb, line 11</span>
|
1466
1466
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">select!</span> <span class="ruby-comment cmt"># :yield:</span>
|
@@ -1472,11 +1472,11 @@ As with select but modifies the <a href="Array.html">Array</a> in place.
|
|
1472
1472
|
</div>
|
1473
1473
|
<div class="method">
|
1474
1474
|
<div class="title">
|
1475
|
-
<a name="
|
1475
|
+
<a name="M000273"></a><b>splice</b>(*args)
|
1476
1476
|
</div>
|
1477
1477
|
<div class="description">
|
1478
1478
|
<p>
|
1479
|
-
Splice acts a <a href="Array.html#
|
1479
|
+
Splice acts a <a href="Array.html#M000251">combination</a> of slice! and
|
1480
1480
|
store. If two arguments are given it calls store. If a single argument is
|
1481
1481
|
give it calls slice!.
|
1482
1482
|
</p>
|
@@ -1493,8 +1493,8 @@ give it calls slice!.
|
|
1493
1493
|
</pre>
|
1494
1494
|
</div>
|
1495
1495
|
<div class="sourcecode">
|
1496
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1497
|
-
<div id="
|
1496
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000273_source')" id="l_M000273_source">show source</a> ]</p>
|
1497
|
+
<div id="M000273_source" class="dyn-source">
|
1498
1498
|
<pre>
|
1499
1499
|
<span class="ruby-comment cmt"># File lib/core/facets/array/splice.rb, line 17</span>
|
1500
1500
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">splice</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
@@ -1510,11 +1510,11 @@ give it calls slice!.
|
|
1510
1510
|
</div>
|
1511
1511
|
<div class="method">
|
1512
1512
|
<div class="title">
|
1513
|
-
<a name="
|
1513
|
+
<a name="M000252"></a><b>splice</b>(*args)
|
1514
1514
|
</div>
|
1515
1515
|
<div class="description">
|
1516
1516
|
<p>
|
1517
|
-
Splice acts a <a href="Array.html#
|
1517
|
+
Splice acts a <a href="Array.html#M000251">combination</a> of slice! and
|
1518
1518
|
store. If two arguments are given it calls store. If a single argument is
|
1519
1519
|
give it calls slice!.
|
1520
1520
|
</p>
|
@@ -1531,8 +1531,8 @@ give it calls slice!.
|
|
1531
1531
|
</pre>
|
1532
1532
|
</div>
|
1533
1533
|
<div class="sourcecode">
|
1534
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1535
|
-
<div id="
|
1534
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000252_source')" id="l_M000252_source">show source</a> ]</p>
|
1535
|
+
<div id="M000252_source" class="dyn-source">
|
1536
1536
|
<pre>
|
1537
1537
|
<span class="ruby-comment cmt"># File lib/core/facets/array/splice.rb, line 17</span>
|
1538
1538
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">splice</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
@@ -1548,7 +1548,7 @@ give it calls slice!.
|
|
1548
1548
|
</div>
|
1549
1549
|
<div class="method">
|
1550
1550
|
<div class="title">
|
1551
|
-
<a name="
|
1551
|
+
<a name="M000233"></a><b>to_b</b>()
|
1552
1552
|
</div>
|
1553
1553
|
<div class="description">
|
1554
1554
|
<p>
|
@@ -1556,8 +1556,8 @@ Boolean conversion for not empty?
|
|
1556
1556
|
</p>
|
1557
1557
|
</div>
|
1558
1558
|
<div class="sourcecode">
|
1559
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1560
|
-
<div id="
|
1559
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000233_source')" id="l_M000233_source">show source</a> ]</p>
|
1560
|
+
<div id="M000233_source" class="dyn-source">
|
1561
1561
|
<pre>
|
1562
1562
|
<span class="ruby-comment cmt"># File lib/core/facets/boolean.rb, line 60</span>
|
1563
1563
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_b</span>
|
@@ -1569,7 +1569,7 @@ Boolean conversion for not empty?
|
|
1569
1569
|
</div>
|
1570
1570
|
<div class="method">
|
1571
1571
|
<div class="title">
|
1572
|
-
<a name="
|
1572
|
+
<a name="M000232"></a><b>to_h</b>(arrayed=nil)
|
1573
1573
|
</div>
|
1574
1574
|
<div class="description">
|
1575
1575
|
<p>
|
@@ -1597,8 +1597,8 @@ functionality is as simple as:
|
|
1597
1597
|
</pre>
|
1598
1598
|
</div>
|
1599
1599
|
<div class="sourcecode">
|
1600
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1601
|
-
<div id="
|
1600
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000232_source')" id="l_M000232_source">show source</a> ]</p>
|
1601
|
+
<div id="M000232_source" class="dyn-source">
|
1602
1602
|
<pre>
|
1603
1603
|
<span class="ruby-comment cmt"># File lib/core/facets/to_hash.rb, line 20</span>
|
1604
1604
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_h</span>(<span class="ruby-identifier">arrayed</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -1622,11 +1622,11 @@ functionality is as simple as:
|
|
1622
1622
|
</div>
|
1623
1623
|
<div class="method">
|
1624
1624
|
<div class="title">
|
1625
|
-
<a name="
|
1625
|
+
<a name="M000264"></a><b>traverse</b>() {|item| ...}
|
1626
1626
|
</div>
|
1627
1627
|
<div class="sourcecode">
|
1628
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1629
|
-
<div id="
|
1628
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000264_source')" id="l_M000264_source">show source</a> ]</p>
|
1629
|
+
<div id="M000264_source" class="dyn-source">
|
1630
1630
|
<pre>
|
1631
1631
|
<span class="ruby-comment cmt"># File lib/core/facets/array/traverse.rb, line 5</span>
|
1632
1632
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">traverse</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -1644,11 +1644,11 @@ functionality is as simple as:
|
|
1644
1644
|
</div>
|
1645
1645
|
<div class="method">
|
1646
1646
|
<div class="title">
|
1647
|
-
<a name="
|
1647
|
+
<a name="M000243"></a><b>traverse</b>() {|item| ...}
|
1648
1648
|
</div>
|
1649
1649
|
<div class="sourcecode">
|
1650
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1651
|
-
<div id="
|
1650
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000243_source')" id="l_M000243_source">show source</a> ]</p>
|
1651
|
+
<div id="M000243_source" class="dyn-source">
|
1652
1652
|
<pre>
|
1653
1653
|
<span class="ruby-comment cmt"># File lib/core/facets/array/traverse.rb, line 5</span>
|
1654
1654
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">traverse</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -1666,11 +1666,11 @@ functionality is as simple as:
|
|
1666
1666
|
</div>
|
1667
1667
|
<div class="method">
|
1668
1668
|
<div class="title">
|
1669
|
-
<a name="
|
1669
|
+
<a name="M000244"></a><b>traverse!</b>(&block)
|
1670
1670
|
</div>
|
1671
1671
|
<div class="sourcecode">
|
1672
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1673
|
-
<div id="
|
1672
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000244_source')" id="l_M000244_source">show source</a> ]</p>
|
1673
|
+
<div id="M000244_source" class="dyn-source">
|
1674
1674
|
<pre>
|
1675
1675
|
<span class="ruby-comment cmt"># File lib/core/facets/array/traverse.rb, line 17</span>
|
1676
1676
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">traverse!</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -1682,11 +1682,11 @@ functionality is as simple as:
|
|
1682
1682
|
</div>
|
1683
1683
|
<div class="method">
|
1684
1684
|
<div class="title">
|
1685
|
-
<a name="
|
1685
|
+
<a name="M000265"></a><b>traverse!</b>(&block)
|
1686
1686
|
</div>
|
1687
1687
|
<div class="sourcecode">
|
1688
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1689
|
-
<div id="
|
1688
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000265_source')" id="l_M000265_source">show source</a> ]</p>
|
1689
|
+
<div id="M000265_source" class="dyn-source">
|
1690
1690
|
<pre>
|
1691
1691
|
<span class="ruby-comment cmt"># File lib/core/facets/array/traverse.rb, line 17</span>
|
1692
1692
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">traverse!</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|