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
@@ -57,7 +57,7 @@
|
|
57
57
|
<tr valign="top">
|
58
58
|
<td>In:</td>
|
59
59
|
<td>
|
60
|
-
<a href="../files/lib/
|
60
|
+
<a href="../files/lib/core/facets/stackable_rb.html">lib/core/facets/stackable.rb</a>
|
61
61
|
</td>
|
62
62
|
</tr>
|
63
63
|
</table>
|
@@ -72,10 +72,10 @@
|
|
72
72
|
<div class="description"><h1><a href="Stackable.html">Stackable</a></h1>
|
73
73
|
<p>
|
74
74
|
<a href="Stackable.html">Stackable</a> mixin provides <a
|
75
|
-
href="Stackable.html#
|
76
|
-
href="Stackable.html#
|
77
|
-
href="Stackable.html#
|
78
|
-
|
75
|
+
href="Stackable.html#M000589">pop</a>, <a
|
76
|
+
href="Stackable.html#M000590">push</a>, <a
|
77
|
+
href="Stackable.html#M000591">pull</a>, etc. It depends on slice, splice
|
78
|
+
and insert.
|
79
79
|
</p>
|
80
80
|
</div>
|
81
81
|
|
@@ -83,13 +83,13 @@ depends on slice, splice and insert.
|
|
83
83
|
|
84
84
|
<div class="sectiontitle">Methods</div>
|
85
85
|
<ul>
|
86
|
-
<li><a href="#
|
87
|
-
<li><a href="#
|
88
|
-
<li><a href="#
|
89
|
-
<li><a href="#
|
90
|
-
<li><a href="#
|
91
|
-
<li><a href="#
|
92
|
-
<li><a href="#
|
86
|
+
<li><a href="#M000595">peek</a></li>
|
87
|
+
<li><a href="#M000593">poke</a></li>
|
88
|
+
<li><a href="#M000589">pop</a></li>
|
89
|
+
<li><a href="#M000591">pull</a></li>
|
90
|
+
<li><a href="#M000590">push</a></li>
|
91
|
+
<li><a href="#M000592">shift</a></li>
|
92
|
+
<li><a href="#M000594">unshift</a></li>
|
93
93
|
</ul>
|
94
94
|
|
95
95
|
|
@@ -100,7 +100,7 @@ depends on slice, splice and insert.
|
|
100
100
|
<div class="sectiontitle">Public Instance methods</div>
|
101
101
|
<div class="method">
|
102
102
|
<div class="title">
|
103
|
-
<a name="
|
103
|
+
<a name="M000595"></a><b>peek</b>()
|
104
104
|
</div>
|
105
105
|
<div class="description">
|
106
106
|
<p>
|
@@ -113,10 +113,10 @@ Peek at the top of the stack.
|
|
113
113
|
</pre>
|
114
114
|
</div>
|
115
115
|
<div class="sourcecode">
|
116
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
117
|
-
<div id="
|
116
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000595_source')" id="l_M000595_source">show source</a> ]</p>
|
117
|
+
<div id="M000595_source" class="dyn-source">
|
118
118
|
<pre>
|
119
|
-
<span class="ruby-comment cmt"># File lib/
|
119
|
+
<span class="ruby-comment cmt"># File lib/core/facets/stackable.rb, line 81</span>
|
120
120
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">peek</span>
|
121
121
|
<span class="ruby-identifier">slice</span>(<span class="ruby-value">-1</span>)
|
122
122
|
<span class="ruby-keyword kw">end</span>
|
@@ -126,7 +126,7 @@ Peek at the top of the stack.
|
|
126
126
|
</div>
|
127
127
|
<div class="method">
|
128
128
|
<div class="title">
|
129
|
-
<a name="
|
129
|
+
<a name="M000593"></a><b>poke</b>(x)
|
130
130
|
</div>
|
131
131
|
<div class="description">
|
132
132
|
<p>
|
@@ -141,13 +141,13 @@ Poke item onto the stack.
|
|
141
141
|
</div>
|
142
142
|
<div class="aka">
|
143
143
|
This method is also aliased as
|
144
|
-
<a href="Stackable.html#
|
144
|
+
<a href="Stackable.html#M000594">unshift</a>
|
145
145
|
</div>
|
146
146
|
<div class="sourcecode">
|
147
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
148
|
-
<div id="
|
147
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000593_source')" id="l_M000593_source">show source</a> ]</p>
|
148
|
+
<div id="M000593_source" class="dyn-source">
|
149
149
|
<pre>
|
150
|
-
<span class="ruby-comment cmt"># File lib/
|
150
|
+
<span class="ruby-comment cmt"># File lib/core/facets/stackable.rb, line 69</span>
|
151
151
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">poke</span>(<span class="ruby-identifier">x</span>)
|
152
152
|
<span class="ruby-identifier">insert</span>(<span class="ruby-value">0</span>,<span class="ruby-identifier">x</span>)
|
153
153
|
<span class="ruby-keyword kw">end</span>
|
@@ -157,7 +157,7 @@ Poke item onto the stack.
|
|
157
157
|
</div>
|
158
158
|
<div class="method">
|
159
159
|
<div class="title">
|
160
|
-
<a name="
|
160
|
+
<a name="M000589"></a><b>pop</b>()
|
161
161
|
</div>
|
162
162
|
<div class="description">
|
163
163
|
<p>
|
@@ -170,10 +170,10 @@ Pop item off stack.
|
|
170
170
|
</pre>
|
171
171
|
</div>
|
172
172
|
<div class="sourcecode">
|
173
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
174
|
-
<div id="
|
173
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000589_source')" id="l_M000589_source">show source</a> ]</p>
|
174
|
+
<div id="M000589_source" class="dyn-source">
|
175
175
|
<pre>
|
176
|
-
<span class="ruby-comment cmt"># File lib/
|
176
|
+
<span class="ruby-comment cmt"># File lib/core/facets/stackable.rb, line 37</span>
|
177
177
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pop</span>
|
178
178
|
<span class="ruby-identifier">splice</span>(<span class="ruby-value">-1</span>)
|
179
179
|
<span class="ruby-keyword kw">end</span>
|
@@ -183,7 +183,7 @@ Pop item off stack.
|
|
183
183
|
</div>
|
184
184
|
<div class="method">
|
185
185
|
<div class="title">
|
186
|
-
<a name="
|
186
|
+
<a name="M000591"></a><b>pull</b>()
|
187
187
|
</div>
|
188
188
|
<div class="description">
|
189
189
|
<p>
|
@@ -197,13 +197,13 @@ Pull item off the stack.
|
|
197
197
|
</div>
|
198
198
|
<div class="aka">
|
199
199
|
This method is also aliased as
|
200
|
-
<a href="Stackable.html#
|
200
|
+
<a href="Stackable.html#M000592">shift</a>
|
201
201
|
</div>
|
202
202
|
<div class="sourcecode">
|
203
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
204
|
-
<div id="
|
203
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000591_source')" id="l_M000591_source">show source</a> ]</p>
|
204
|
+
<div id="M000591_source" class="dyn-source">
|
205
205
|
<pre>
|
206
|
-
<span class="ruby-comment cmt"># File lib/
|
206
|
+
<span class="ruby-comment cmt"># File lib/core/facets/stackable.rb, line 56</span>
|
207
207
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pull</span>
|
208
208
|
<span class="ruby-identifier">slice</span>(<span class="ruby-value">0</span>)
|
209
209
|
<span class="ruby-keyword kw">end</span>
|
@@ -213,7 +213,7 @@ Pull item off the stack.
|
|
213
213
|
</div>
|
214
214
|
<div class="method">
|
215
215
|
<div class="title">
|
216
|
-
<a name="
|
216
|
+
<a name="M000590"></a><b>push</b>(x)
|
217
217
|
</div>
|
218
218
|
<div class="description">
|
219
219
|
<p>
|
@@ -225,10 +225,10 @@ Push item onto the stack.
|
|
225
225
|
</pre>
|
226
226
|
</div>
|
227
227
|
<div class="sourcecode">
|
228
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
229
|
-
<div id="
|
228
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000590_source')" id="l_M000590_source">show source</a> ]</p>
|
229
|
+
<div id="M000590_source" class="dyn-source">
|
230
230
|
<pre>
|
231
|
-
<span class="ruby-comment cmt"># File lib/
|
231
|
+
<span class="ruby-comment cmt"># File lib/core/facets/stackable.rb, line 46</span>
|
232
232
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">push</span>(<span class="ruby-identifier">x</span>)
|
233
233
|
<span class="ruby-identifier">insert</span>(<span class="ruby-value">-1</span>,<span class="ruby-identifier">x</span>)
|
234
234
|
<span class="ruby-keyword kw">end</span>
|
@@ -238,21 +238,21 @@ Push item onto the stack.
|
|
238
238
|
</div>
|
239
239
|
<div class="method">
|
240
240
|
<div class="title">
|
241
|
-
<a name="
|
241
|
+
<a name="M000592"></a><b>shift</b>()
|
242
242
|
</div>
|
243
243
|
<div class="description">
|
244
244
|
<p>
|
245
|
-
Alias for <a href="Stackable.html#
|
245
|
+
Alias for <a href="Stackable.html#M000591">pull</a>
|
246
246
|
</p>
|
247
247
|
</div>
|
248
248
|
</div>
|
249
249
|
<div class="method">
|
250
250
|
<div class="title">
|
251
|
-
<a name="
|
251
|
+
<a name="M000594"></a><b>unshift</b>(x)
|
252
252
|
</div>
|
253
253
|
<div class="description">
|
254
254
|
<p>
|
255
|
-
Alias for <a href="Stackable.html#
|
255
|
+
Alias for <a href="Stackable.html#M000593">poke</a>
|
256
256
|
</p>
|
257
257
|
</div>
|
258
258
|
</div>
|
@@ -69,8 +69,10 @@
|
|
69
69
|
<a href="../files/lib/core/facets/string/start_with_rb.html">lib/core/facets/string/start_with.rb</a>
|
70
70
|
<a href="../files/lib/core/facets/string/camelcase_rb.html">lib/core/facets/string/camelcase.rb</a>
|
71
71
|
<a href="../files/lib/core/facets/string/lines_rb.html">lib/core/facets/string/lines.rb</a>
|
72
|
+
<a href="../files/lib/core/facets/string/word_wrap_rb.html">lib/core/facets/string/word_wrap.rb</a>
|
72
73
|
<a href="../files/lib/core/facets/string/align_rb.html">lib/core/facets/string/align.rb</a>
|
73
74
|
<a href="../files/lib/core/facets/string/tab_rb.html">lib/core/facets/string/tab.rb</a>
|
75
|
+
<a href="../files/lib/core/facets/string/methodize_rb.html">lib/core/facets/string/methodize.rb</a>
|
74
76
|
<a href="../files/lib/core/facets/string/range_rb.html">lib/core/facets/string/range.rb</a>
|
75
77
|
<a href="../files/lib/core/facets/string/snakecase_rb.html">lib/core/facets/string/snakecase.rb</a>
|
76
78
|
<a href="../files/lib/core/facets/string/each_char_rb.html">lib/core/facets/string/each_char.rb</a>
|
@@ -80,6 +82,7 @@
|
|
80
82
|
<a href="../files/lib/core/facets/string/natcmp_rb.html">lib/core/facets/string/natcmp.rb</a>
|
81
83
|
<a href="../files/lib/core/facets/string/bytes_rb.html">lib/core/facets/string/bytes.rb</a>
|
82
84
|
<a href="../files/lib/core/facets/string/subtract_rb.html">lib/core/facets/string/subtract.rb</a>
|
85
|
+
<a href="../files/lib/core/facets/string/pathize_rb.html">lib/core/facets/string/pathize.rb</a>
|
83
86
|
<a href="../files/lib/core/facets/string/titlecase_rb.html">lib/core/facets/string/titlecase.rb</a>
|
84
87
|
<a href="../files/lib/core/facets/string/words_rb.html">lib/core/facets/string/words.rb</a>
|
85
88
|
<a href="../files/lib/core/facets/string/interpolate_rb.html">lib/core/facets/string/interpolate.rb</a>
|
@@ -93,14 +96,17 @@
|
|
93
96
|
<a href="../files/lib/core/facets/string/rewrite_rb.html">lib/core/facets/string/rewrite.rb</a>
|
94
97
|
<a href="../files/lib/core/facets/string/nchar_rb.html">lib/core/facets/string/nchar.rb</a>
|
95
98
|
<a href="../files/lib/core/facets/string/xor_rb.html">lib/core/facets/string/xor.rb</a>
|
99
|
+
<a href="../files/lib/core/facets/string/each_word_rb.html">lib/core/facets/string/each_word.rb</a>
|
96
100
|
<a href="../files/lib/core/facets/string/shatter_rb.html">lib/core/facets/string/shatter.rb</a>
|
97
101
|
<a href="../files/lib/core/facets/string/to_re_rb.html">lib/core/facets/string/to_re.rb</a>
|
98
102
|
<a href="../files/lib/core/facets/string/fold_rb.html">lib/core/facets/string/fold.rb</a>
|
99
103
|
<a href="../files/lib/core/facets/string/start_with_rb.html">lib/core/facets/string/start_with.rb</a>
|
100
104
|
<a href="../files/lib/core/facets/string/camelcase_rb.html">lib/core/facets/string/camelcase.rb</a>
|
101
105
|
<a href="../files/lib/core/facets/string/lines_rb.html">lib/core/facets/string/lines.rb</a>
|
106
|
+
<a href="../files/lib/core/facets/string/word_wrap_rb.html">lib/core/facets/string/word_wrap.rb</a>
|
102
107
|
<a href="../files/lib/core/facets/string/align_rb.html">lib/core/facets/string/align.rb</a>
|
103
108
|
<a href="../files/lib/core/facets/string/tab_rb.html">lib/core/facets/string/tab.rb</a>
|
109
|
+
<a href="../files/lib/core/facets/string/methodize_rb.html">lib/core/facets/string/methodize.rb</a>
|
104
110
|
<a href="../files/lib/core/facets/string/range_rb.html">lib/core/facets/string/range.rb</a>
|
105
111
|
<a href="../files/lib/core/facets/string/snakecase_rb.html">lib/core/facets/string/snakecase.rb</a>
|
106
112
|
<a href="../files/lib/core/facets/string/each_char_rb.html">lib/core/facets/string/each_char.rb</a>
|
@@ -110,6 +116,7 @@
|
|
110
116
|
<a href="../files/lib/core/facets/string/natcmp_rb.html">lib/core/facets/string/natcmp.rb</a>
|
111
117
|
<a href="../files/lib/core/facets/string/bytes_rb.html">lib/core/facets/string/bytes.rb</a>
|
112
118
|
<a href="../files/lib/core/facets/string/subtract_rb.html">lib/core/facets/string/subtract.rb</a>
|
119
|
+
<a href="../files/lib/core/facets/string/pathize_rb.html">lib/core/facets/string/pathize.rb</a>
|
113
120
|
<a href="../files/lib/core/facets/string/titlecase_rb.html">lib/core/facets/string/titlecase.rb</a>
|
114
121
|
<a href="../files/lib/core/facets/string/words_rb.html">lib/core/facets/string/words.rb</a>
|
115
122
|
<a href="../files/lib/core/facets/string/interpolate_rb.html">lib/core/facets/string/interpolate.rb</a>
|
@@ -123,6 +130,7 @@
|
|
123
130
|
<a href="../files/lib/core/facets/string/rewrite_rb.html">lib/core/facets/string/rewrite.rb</a>
|
124
131
|
<a href="../files/lib/core/facets/string/nchar_rb.html">lib/core/facets/string/nchar.rb</a>
|
125
132
|
<a href="../files/lib/core/facets/string/xor_rb.html">lib/core/facets/string/xor.rb</a>
|
133
|
+
<a href="../files/lib/core/facets/string/each_word_rb.html">lib/core/facets/string/each_word.rb</a>
|
126
134
|
<a href="../files/lib/core/facets/blank_rb.html">lib/core/facets/blank.rb</a>
|
127
135
|
</td>
|
128
136
|
</tr>
|
@@ -148,127 +156,131 @@ Object
|
|
148
156
|
|
149
157
|
<div class="sectiontitle">Methods</div>
|
150
158
|
<ul>
|
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="#
|
163
|
-
<li><a href="#
|
164
|
-
<li><a href="#
|
165
|
-
<li><a href="#
|
166
|
-
<li><a href="#
|
167
|
-
<li><a href="#
|
168
|
-
<li><a href="#
|
169
|
-
<li><a href="#
|
170
|
-
<li><a href="#
|
171
|
-
<li><a href="#
|
172
|
-
<li><a href="#
|
173
|
-
<li><a href="#
|
174
|
-
<li><a href="#
|
175
|
-
<li><a href="#
|
176
|
-
<li><a href="#
|
177
|
-
<li><a href="#
|
178
|
-
<li><a href="#
|
179
|
-
<li><a href="#
|
180
|
-
<li><a href="#
|
181
|
-
<li><a href="#
|
182
|
-
<li><a href="#
|
183
|
-
<li><a href="#
|
184
|
-
<li><a href="#
|
185
|
-
<li><a href="#
|
186
|
-
<li><a href="#
|
187
|
-
<li><a href="#
|
188
|
-
<li><a href="#
|
189
|
-
<li><a href="#
|
190
|
-
<li><a href="#
|
191
|
-
<li><a href="#
|
192
|
-
<li><a href="#
|
193
|
-
<li><a href="#
|
194
|
-
<li><a href="#
|
195
|
-
<li><a href="#
|
196
|
-
<li><a href="#
|
197
|
-
<li><a href="#
|
198
|
-
<li><a href="#
|
199
|
-
<li><a href="#
|
200
|
-
<li><a href="#
|
201
|
-
<li><a href="#
|
202
|
-
<li><a href="#
|
203
|
-
<li><a href="#
|
204
|
-
<li><a href="#
|
205
|
-
<li><a href="#
|
206
|
-
<li><a href="#
|
207
|
-
<li><a href="#
|
208
|
-
<li><a href="#
|
209
|
-
<li><a href="#
|
210
|
-
<li><a href="#
|
211
|
-
<li><a href="#
|
212
|
-
<li><a href="#
|
213
|
-
<li><a href="#
|
214
|
-
<li><a href="#
|
215
|
-
<li><a href="#
|
216
|
-
<li><a href="#
|
217
|
-
<li><a href="#
|
218
|
-
<li><a href="#
|
219
|
-
<li><a href="#
|
220
|
-
<li><a href="#
|
221
|
-
<li><a href="#
|
222
|
-
<li><a href="#
|
223
|
-
<li><a href="#
|
224
|
-
<li><a href="#
|
225
|
-
<li><a href="#
|
226
|
-
<li><a href="#
|
227
|
-
<li><a href="#
|
228
|
-
<li><a href="#
|
229
|
-
<li><a href="#
|
230
|
-
<li><a href="#
|
231
|
-
<li><a href="#
|
232
|
-
<li><a href="#
|
233
|
-
<li><a href="#
|
234
|
-
<li><a href="#
|
235
|
-
<li><a href="#
|
236
|
-
<li><a href="#
|
237
|
-
<li><a href="#
|
238
|
-
<li><a href="#
|
239
|
-
<li><a href="#
|
240
|
-
<li><a href="#
|
241
|
-
<li><a href="#
|
242
|
-
<li><a href="#
|
243
|
-
<li><a href="#
|
244
|
-
<li><a href="#
|
245
|
-
<li><a href="#
|
246
|
-
<li><a href="#
|
247
|
-
<li><a href="#
|
248
|
-
<li><a href="#
|
249
|
-
<li><a href="#
|
250
|
-
<li><a href="#
|
251
|
-
<li><a href="#
|
252
|
-
<li><a href="#
|
253
|
-
<li><a href="#
|
254
|
-
<li><a href="#
|
255
|
-
<li><a href="#
|
256
|
-
<li><a href="#
|
257
|
-
<li><a href="#
|
258
|
-
<li><a href="#
|
259
|
-
<li><a href="#
|
159
|
+
<li><a href="#M000549">-</a></li>
|
160
|
+
<li><a href="#M000492">-</a></li>
|
161
|
+
<li><a href="#M000569">^</a></li>
|
162
|
+
<li><a href="#M000512">^</a></li>
|
163
|
+
<li><a href="#M000524">align</a></li>
|
164
|
+
<li><a href="#M000467">align</a></li>
|
165
|
+
<li><a href="#M000527">align_center</a></li>
|
166
|
+
<li><a href="#M000470">align_center</a></li>
|
167
|
+
<li><a href="#M000526">align_left</a></li>
|
168
|
+
<li><a href="#M000469">align_left</a></li>
|
169
|
+
<li><a href="#M000525">align_right</a></li>
|
170
|
+
<li><a href="#M000468">align_right</a></li>
|
171
|
+
<li><a href="#M000571">blank?</a></li>
|
172
|
+
<li><a href="#M000500">bracket</a></li>
|
173
|
+
<li><a href="#M000557">bracket</a></li>
|
174
|
+
<li><a href="#M000558">bracket!</a></li>
|
175
|
+
<li><a href="#M000501">bracket!</a></li>
|
176
|
+
<li><a href="#M000548">bytes</a></li>
|
177
|
+
<li><a href="#M000491">bytes</a></li>
|
178
|
+
<li><a href="#M000463">camelcase</a></li>
|
179
|
+
<li><a href="#M000520">camelcase</a></li>
|
180
|
+
<li><a href="#M000487">capitalized?</a></li>
|
181
|
+
<li><a href="#M000544">capitalized?</a></li>
|
182
|
+
<li><a href="#M000506">chars</a></li>
|
183
|
+
<li><a href="#M000563">chars</a></li>
|
184
|
+
<li><a href="#M000554">cleave</a></li>
|
185
|
+
<li><a href="#M000497">cleave</a></li>
|
186
|
+
<li><a href="#M000456">cmp</a></li>
|
187
|
+
<li><a href="#M000454">cmp</a></li>
|
188
|
+
<li><a href="#M000505">dequote</a></li>
|
189
|
+
<li><a href="#M000562">dequote</a></li>
|
190
|
+
<li><a href="#M000542">divide</a></li>
|
191
|
+
<li><a href="#M000485">divide</a></li>
|
192
|
+
<li><a href="#M000545">downcase?</a></li>
|
193
|
+
<li><a href="#M000488">downcase?</a></li>
|
194
|
+
<li><a href="#M000484">each_char</a></li>
|
195
|
+
<li><a href="#M000541">each_char</a></li>
|
196
|
+
<li><a href="#M000570">each_word</a></li>
|
197
|
+
<li><a href="#M000513">each_word</a></li>
|
198
|
+
<li><a href="#M000519">end_with?</a></li>
|
199
|
+
<li><a href="#M000462">end_with?</a></li>
|
200
|
+
<li><a href="#M000473">expand_tabs</a></li>
|
201
|
+
<li><a href="#M000530">expand_tabs</a></li>
|
202
|
+
<li><a href="#M000517">fold</a></li>
|
203
|
+
<li><a href="#M000460">fold</a></li>
|
204
|
+
<li><a href="#M000475">indent</a></li>
|
205
|
+
<li><a href="#M000532">indent</a></li>
|
206
|
+
<li><a href="#M000482">index_all</a></li>
|
207
|
+
<li><a href="#M000539">index_all</a></li>
|
208
|
+
<li><a href="#M000496">interpolate</a></li>
|
209
|
+
<li><a href="#M000553">interpolate</a></li>
|
210
|
+
<li><a href="#M000564">lchomp</a></li>
|
211
|
+
<li><a href="#M000507">lchomp</a></li>
|
212
|
+
<li><a href="#M000508">lchomp!</a></li>
|
213
|
+
<li><a href="#M000565">lchomp!</a></li>
|
214
|
+
<li><a href="#M000556">line_wrap</a></li>
|
215
|
+
<li><a href="#M000499">line_wrap</a></li>
|
216
|
+
<li><a href="#M000521">lines</a></li>
|
217
|
+
<li><a href="#M000464">lines</a></li>
|
218
|
+
<li><a href="#M000534">margin</a></li>
|
219
|
+
<li><a href="#M000477">margin</a></li>
|
220
|
+
<li><a href="#M000535">methodize</a></li>
|
221
|
+
<li><a href="#M000478">methodize</a></li>
|
222
|
+
<li><a href="#M000486">mscan</a></li>
|
223
|
+
<li><a href="#M000543">mscan</a></li>
|
224
|
+
<li><a href="#M000490">natcmp</a></li>
|
225
|
+
<li><a href="#M000547">natcmp</a></li>
|
226
|
+
<li><a href="#M000568">nchar</a></li>
|
227
|
+
<li><a href="#M000511">nchar</a></li>
|
228
|
+
<li><a href="#M000476">outdent</a></li>
|
229
|
+
<li><a href="#M000533">outdent</a></li>
|
230
|
+
<li><a href="#M000493">pathize</a></li>
|
231
|
+
<li><a href="#M000550">pathize</a></li>
|
232
|
+
<li><a href="#M000561">quote</a></li>
|
233
|
+
<li><a href="#M000504">quote</a></li>
|
234
|
+
<li><a href="#M000479">range</a></li>
|
235
|
+
<li><a href="#M000536">range</a></li>
|
236
|
+
<li><a href="#M000537">range_all</a></li>
|
237
|
+
<li><a href="#M000480">range_all</a></li>
|
238
|
+
<li><a href="#M000538">range_of_line</a></li>
|
239
|
+
<li><a href="#M000481">range_of_line</a></li>
|
240
|
+
<li><a href="#M000567">rewrite</a></li>
|
241
|
+
<li><a href="#M000510">rewrite</a></li>
|
242
|
+
<li><a href="#M000514">shatter</a></li>
|
243
|
+
<li><a href="#M000457">shatter</a></li>
|
244
|
+
<li><a href="#M000483">snakecase</a></li>
|
245
|
+
<li><a href="#M000540">snakecase</a></li>
|
246
|
+
<li><a href="#M000566">splice</a></li>
|
247
|
+
<li><a href="#M000509">splice</a></li>
|
248
|
+
<li><a href="#M000518">start_with?</a></li>
|
249
|
+
<li><a href="#M000461">start_with?</a></li>
|
250
|
+
<li><a href="#M000471">tab</a></li>
|
251
|
+
<li><a href="#M000528">tab</a></li>
|
252
|
+
<li><a href="#M000472">taballto</a></li>
|
253
|
+
<li><a href="#M000529">taballto</a></li>
|
254
|
+
<li><a href="#M000474">tabto</a></li>
|
255
|
+
<li><a href="#M000531">tabto</a></li>
|
256
|
+
<li><a href="#M000494">titlecase</a></li>
|
257
|
+
<li><a href="#M000551">titlecase</a></li>
|
258
|
+
<li><a href="#M000452">to_b</a></li>
|
259
|
+
<li><a href="#M000458">to_re</a></li>
|
260
|
+
<li><a href="#M000515">to_re</a></li>
|
261
|
+
<li><a href="#M000459">to_rx</a></li>
|
262
|
+
<li><a href="#M000516">to_rx</a></li>
|
263
|
+
<li><a href="#M000453">to_s</a></li>
|
264
|
+
<li><a href="#M000455">to_s</a></li>
|
265
|
+
<li><a href="#M000555">to_time</a></li>
|
266
|
+
<li><a href="#M000498">to_time</a></li>
|
267
|
+
<li><a href="#M000559">unbracket</a></li>
|
268
|
+
<li><a href="#M000502">unbracket</a></li>
|
269
|
+
<li><a href="#M000560">unbracket!</a></li>
|
270
|
+
<li><a href="#M000503">unbracket!</a></li>
|
271
|
+
<li><a href="#M000489">upcase?</a></li>
|
272
|
+
<li><a href="#M000546">upcase?</a></li>
|
273
|
+
<li><a href="#M000451">variablize</a></li>
|
274
|
+
<li><a href="#M000522">word_wrap</a></li>
|
275
|
+
<li><a href="#M000465">word_wrap</a></li>
|
276
|
+
<li><a href="#M000466">word_wrap!</a></li>
|
277
|
+
<li><a href="#M000523">word_wrap!</a></li>
|
278
|
+
<li><a href="#M000552">words</a></li>
|
279
|
+
<li><a href="#M000495">words</a></li>
|
260
280
|
</ul>
|
261
281
|
|
262
|
-
<div class="sectiontitle">Included Modules</div>
|
263
|
-
<ul>
|
264
|
-
<li><a href="String/Words.html">Words</a></li>
|
265
|
-
<li><a href="String/Words.html">Words</a></li>
|
266
|
-
</ul>
|
267
282
|
|
268
283
|
|
269
|
-
<div class="sectiontitle">Classes and Modules</div>
|
270
|
-
Module <a href="String/Words.html" class="link">String::Words</a><br />
|
271
|
-
|
272
284
|
|
273
285
|
<div class="sectiontitle">Constants</div>
|
274
286
|
<table border='0' cellpadding='5'>
|
@@ -288,7 +300,7 @@ Object
|
|
288
300
|
<div class="sectiontitle">Public Class methods</div>
|
289
301
|
<div class="method">
|
290
302
|
<div class="title">
|
291
|
-
<a name="
|
303
|
+
<a name="M000496"></a><b>interpolate</b>(&str)
|
292
304
|
</div>
|
293
305
|
<div class="description">
|
294
306
|
<p>
|
@@ -307,8 +319,8 @@ mechinism.
|
|
307
319
|
</pre>
|
308
320
|
</div>
|
309
321
|
<div class="sourcecode">
|
310
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
311
|
-
<div id="
|
322
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000496_source')" id="l_M000496_source">show source</a> ]</p>
|
323
|
+
<div id="M000496_source" class="dyn-source">
|
312
324
|
<pre>
|
313
325
|
<span class="ruby-comment cmt"># File lib/core/facets/string/interpolate.rb, line 15</span>
|
314
326
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">interpolate</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">str</span>)
|
@@ -320,7 +332,7 @@ mechinism.
|
|
320
332
|
</div>
|
321
333
|
<div class="method">
|
322
334
|
<div class="title">
|
323
|
-
<a name="
|
335
|
+
<a name="M000553"></a><b>interpolate</b>(&str)
|
324
336
|
</div>
|
325
337
|
<div class="description">
|
326
338
|
<p>
|
@@ -339,8 +351,8 @@ mechinism.
|
|
339
351
|
</pre>
|
340
352
|
</div>
|
341
353
|
<div class="sourcecode">
|
342
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
343
|
-
<div id="
|
354
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000553_source')" id="l_M000553_source">show source</a> ]</p>
|
355
|
+
<div id="M000553_source" class="dyn-source">
|
344
356
|
<pre>
|
345
357
|
<span class="ruby-comment cmt"># File lib/core/facets/string/interpolate.rb, line 15</span>
|
346
358
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">interpolate</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">str</span>)
|
@@ -353,7 +365,7 @@ mechinism.
|
|
353
365
|
<div class="sectiontitle">Public Instance methods</div>
|
354
366
|
<div class="method">
|
355
367
|
<div class="title">
|
356
|
-
<a name="
|
368
|
+
<a name="M000549"></a><b>-</b>(pattern)
|
357
369
|
</div>
|
358
370
|
<div class="description">
|
359
371
|
<p>
|
@@ -366,8 +378,8 @@ Removes occurances of a string or regexp.
|
|
366
378
|
</pre>
|
367
379
|
</div>
|
368
380
|
<div class="sourcecode">
|
369
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
370
|
-
<div id="
|
381
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000549_source')" id="l_M000549_source">show source</a> ]</p>
|
382
|
+
<div id="M000549_source" class="dyn-source">
|
371
383
|
<pre>
|
372
384
|
<span class="ruby-comment cmt"># File lib/core/facets/string/subtract.rb, line 9</span>
|
373
385
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">-</span>(<span class="ruby-identifier">pattern</span>)
|
@@ -379,7 +391,7 @@ Removes occurances of a string or regexp.
|
|
379
391
|
</div>
|
380
392
|
<div class="method">
|
381
393
|
<div class="title">
|
382
|
-
<a name="
|
394
|
+
<a name="M000492"></a><b>-</b>(pattern)
|
383
395
|
</div>
|
384
396
|
<div class="description">
|
385
397
|
<p>
|
@@ -392,8 +404,8 @@ Removes occurances of a string or regexp.
|
|
392
404
|
</pre>
|
393
405
|
</div>
|
394
406
|
<div class="sourcecode">
|
395
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
396
|
-
<div id="
|
407
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000492_source')" id="l_M000492_source">show source</a> ]</p>
|
408
|
+
<div id="M000492_source" class="dyn-source">
|
397
409
|
<pre>
|
398
410
|
<span class="ruby-comment cmt"># File lib/core/facets/string/subtract.rb, line 9</span>
|
399
411
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">-</span>(<span class="ruby-identifier">pattern</span>)
|
@@ -405,7 +417,7 @@ Removes occurances of a string or regexp.
|
|
405
417
|
</div>
|
406
418
|
<div class="method">
|
407
419
|
<div class="title">
|
408
|
-
<a name="
|
420
|
+
<a name="M000569"></a><b>^</b>(aString)
|
409
421
|
</div>
|
410
422
|
<div class="description">
|
411
423
|
<p>
|
@@ -416,8 +428,8 @@ TODO: This is used by crypt.rb, it needs to be documented.
|
|
416
428
|
</p>
|
417
429
|
</div>
|
418
430
|
<div class="sourcecode">
|
419
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
420
|
-
<div id="
|
431
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000569_source')" id="l_M000569_source">show source</a> ]</p>
|
432
|
+
<div id="M000569_source" class="dyn-source">
|
421
433
|
<pre>
|
422
434
|
<span class="ruby-comment cmt"># File lib/core/facets/string/xor.rb, line 7</span>
|
423
435
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">^</span>(<span class="ruby-identifier">aString</span>)
|
@@ -439,7 +451,7 @@ TODO: This is used by crypt.rb, it needs to be documented.
|
|
439
451
|
</div>
|
440
452
|
<div class="method">
|
441
453
|
<div class="title">
|
442
|
-
<a name="
|
454
|
+
<a name="M000512"></a><b>^</b>(aString)
|
443
455
|
</div>
|
444
456
|
<div class="description">
|
445
457
|
<p>
|
@@ -450,8 +462,8 @@ TODO: This is used by crypt.rb, it needs to be documented.
|
|
450
462
|
</p>
|
451
463
|
</div>
|
452
464
|
<div class="sourcecode">
|
453
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
454
|
-
<div id="
|
465
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000512_source')" id="l_M000512_source">show source</a> ]</p>
|
466
|
+
<div id="M000512_source" class="dyn-source">
|
455
467
|
<pre>
|
456
468
|
<span class="ruby-comment cmt"># File lib/core/facets/string/xor.rb, line 7</span>
|
457
469
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">^</span>(<span class="ruby-identifier">aString</span>)
|
@@ -473,11 +485,11 @@ TODO: This is used by crypt.rb, it needs to be documented.
|
|
473
485
|
</div>
|
474
486
|
<div class="method">
|
475
487
|
<div class="title">
|
476
|
-
<a name="
|
488
|
+
<a name="M000524"></a><b>align</b>(direction, n, sep="\n", c=' ')
|
477
489
|
</div>
|
478
490
|
<div class="sourcecode">
|
479
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
480
|
-
<div id="
|
491
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000524_source')" id="l_M000524_source">show source</a> ]</p>
|
492
|
+
<div id="M000524_source" class="dyn-source">
|
481
493
|
<pre>
|
482
494
|
<span class="ruby-comment cmt"># File lib/core/facets/string/align.rb, line 3</span>
|
483
495
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">align</span>(<span class="ruby-identifier">direction</span>, <span class="ruby-identifier">n</span>, <span class="ruby-identifier">sep</span>=<span class="ruby-value str">"\n"</span>, <span class="ruby-identifier">c</span>=<span class="ruby-value str">' '</span>)
|
@@ -498,11 +510,11 @@ TODO: This is used by crypt.rb, it needs to be documented.
|
|
498
510
|
</div>
|
499
511
|
<div class="method">
|
500
512
|
<div class="title">
|
501
|
-
<a name="
|
513
|
+
<a name="M000467"></a><b>align</b>(direction, n, sep="\n", c=' ')
|
502
514
|
</div>
|
503
515
|
<div class="sourcecode">
|
504
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
505
|
-
<div id="
|
516
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000467_source')" id="l_M000467_source">show source</a> ]</p>
|
517
|
+
<div id="M000467_source" class="dyn-source">
|
506
518
|
<pre>
|
507
519
|
<span class="ruby-comment cmt"># File lib/core/facets/string/align.rb, line 3</span>
|
508
520
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">align</span>(<span class="ruby-identifier">direction</span>, <span class="ruby-identifier">n</span>, <span class="ruby-identifier">sep</span>=<span class="ruby-value str">"\n"</span>, <span class="ruby-identifier">c</span>=<span class="ruby-value str">' '</span>)
|
@@ -523,7 +535,7 @@ TODO: This is used by crypt.rb, it needs to be documented.
|
|
523
535
|
</div>
|
524
536
|
<div class="method">
|
525
537
|
<div class="title">
|
526
|
-
<a name="
|
538
|
+
<a name="M000527"></a><b>align_center</b>(n, sep="\n", c=' ')
|
527
539
|
</div>
|
528
540
|
<div class="description">
|
529
541
|
<p>
|
@@ -555,8 +567,8 @@ changed as can be the padding string which defaults to a single space
|
|
555
567
|
</pre>
|
556
568
|
</div>
|
557
569
|
<div class="sourcecode">
|
558
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
559
|
-
<div id="
|
570
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000527_source')" id="l_M000527_source">show source</a> ]</p>
|
571
|
+
<div id="M000527_source" class="dyn-source">
|
560
572
|
<pre>
|
561
573
|
<span class="ruby-comment cmt"># File lib/core/facets/string/align.rb, line 97</span>
|
562
574
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">align_center</span>(<span class="ruby-identifier">n</span>, <span class="ruby-identifier">sep</span>=<span class="ruby-value str">"\n"</span>, <span class="ruby-identifier">c</span>=<span class="ruby-value str">' '</span>)
|
@@ -572,7 +584,7 @@ changed as can be the padding string which defaults to a single space
|
|
572
584
|
</div>
|
573
585
|
<div class="method">
|
574
586
|
<div class="title">
|
575
|
-
<a name="
|
587
|
+
<a name="M000470"></a><b>align_center</b>(n, sep="\n", c=' ')
|
576
588
|
</div>
|
577
589
|
<div class="description">
|
578
590
|
<p>
|
@@ -604,8 +616,8 @@ changed as can be the padding string which defaults to a single space
|
|
604
616
|
</pre>
|
605
617
|
</div>
|
606
618
|
<div class="sourcecode">
|
607
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
608
|
-
<div id="
|
619
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000470_source')" id="l_M000470_source">show source</a> ]</p>
|
620
|
+
<div id="M000470_source" class="dyn-source">
|
609
621
|
<pre>
|
610
622
|
<span class="ruby-comment cmt"># File lib/core/facets/string/align.rb, line 97</span>
|
611
623
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">align_center</span>(<span class="ruby-identifier">n</span>, <span class="ruby-identifier">sep</span>=<span class="ruby-value str">"\n"</span>, <span class="ruby-identifier">c</span>=<span class="ruby-value str">' '</span>)
|
@@ -621,7 +633,7 @@ changed as can be the padding string which defaults to a single space
|
|
621
633
|
</div>
|
622
634
|
<div class="method">
|
623
635
|
<div class="title">
|
624
|
-
<a name="
|
636
|
+
<a name="M000526"></a><b>align_left</b>(n, sep="\n", c=' ')
|
625
637
|
</div>
|
626
638
|
<div class="description">
|
627
639
|
<p>
|
@@ -653,8 +665,8 @@ changes as can be the padding string which defaults to a single space
|
|
653
665
|
</pre>
|
654
666
|
</div>
|
655
667
|
<div class="sourcecode">
|
656
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
657
|
-
<div id="
|
668
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000526_source')" id="l_M000526_source">show source</a> ]</p>
|
669
|
+
<div id="M000526_source" class="dyn-source">
|
658
670
|
<pre>
|
659
671
|
<span class="ruby-comment cmt"># File lib/core/facets/string/align.rb, line 67</span>
|
660
672
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">align_left</span>(<span class="ruby-identifier">n</span>, <span class="ruby-identifier">sep</span>=<span class="ruby-value str">"\n"</span>, <span class="ruby-identifier">c</span>=<span class="ruby-value str">' '</span>)
|
@@ -670,7 +682,7 @@ changes as can be the padding string which defaults to a single space
|
|
670
682
|
</div>
|
671
683
|
<div class="method">
|
672
684
|
<div class="title">
|
673
|
-
<a name="
|
685
|
+
<a name="M000469"></a><b>align_left</b>(n, sep="\n", c=' ')
|
674
686
|
</div>
|
675
687
|
<div class="description">
|
676
688
|
<p>
|
@@ -702,8 +714,8 @@ changes as can be the padding string which defaults to a single space
|
|
702
714
|
</pre>
|
703
715
|
</div>
|
704
716
|
<div class="sourcecode">
|
705
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
706
|
-
<div id="
|
717
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000469_source')" id="l_M000469_source">show source</a> ]</p>
|
718
|
+
<div id="M000469_source" class="dyn-source">
|
707
719
|
<pre>
|
708
720
|
<span class="ruby-comment cmt"># File lib/core/facets/string/align.rb, line 67</span>
|
709
721
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">align_left</span>(<span class="ruby-identifier">n</span>, <span class="ruby-identifier">sep</span>=<span class="ruby-value str">"\n"</span>, <span class="ruby-identifier">c</span>=<span class="ruby-value str">' '</span>)
|
@@ -719,7 +731,7 @@ changes as can be the padding string which defaults to a single space
|
|
719
731
|
</div>
|
720
732
|
<div class="method">
|
721
733
|
<div class="title">
|
722
|
-
<a name="
|
734
|
+
<a name="M000525"></a><b>align_right</b>(n, sep="\n", c=' ')
|
723
735
|
</div>
|
724
736
|
<div class="description">
|
725
737
|
<p>
|
@@ -748,8 +760,8 @@ defaults to a single space (’ ’).
|
|
748
760
|
</pre>
|
749
761
|
</div>
|
750
762
|
<div class="sourcecode">
|
751
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
752
|
-
<div id="
|
763
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000525_source')" id="l_M000525_source">show source</a> ]</p>
|
764
|
+
<div id="M000525_source" class="dyn-source">
|
753
765
|
<pre>
|
754
766
|
<span class="ruby-comment cmt"># File lib/core/facets/string/align.rb, line 37</span>
|
755
767
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">align_right</span>(<span class="ruby-identifier">n</span>, <span class="ruby-identifier">sep</span>=<span class="ruby-value str">"\n"</span>, <span class="ruby-identifier">c</span>=<span class="ruby-value str">' '</span>)
|
@@ -765,7 +777,7 @@ defaults to a single space (’ ’).
|
|
765
777
|
</div>
|
766
778
|
<div class="method">
|
767
779
|
<div class="title">
|
768
|
-
<a name="
|
780
|
+
<a name="M000468"></a><b>align_right</b>(n, sep="\n", c=' ')
|
769
781
|
</div>
|
770
782
|
<div class="description">
|
771
783
|
<p>
|
@@ -794,8 +806,8 @@ defaults to a single space (’ ’).
|
|
794
806
|
</pre>
|
795
807
|
</div>
|
796
808
|
<div class="sourcecode">
|
797
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
798
|
-
<div id="
|
809
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000468_source')" id="l_M000468_source">show source</a> ]</p>
|
810
|
+
<div id="M000468_source" class="dyn-source">
|
799
811
|
<pre>
|
800
812
|
<span class="ruby-comment cmt"># File lib/core/facets/string/align.rb, line 37</span>
|
801
813
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">align_right</span>(<span class="ruby-identifier">n</span>, <span class="ruby-identifier">sep</span>=<span class="ruby-value str">"\n"</span>, <span class="ruby-identifier">c</span>=<span class="ruby-value str">' '</span>)
|
@@ -811,7 +823,7 @@ defaults to a single space (’ ’).
|
|
811
823
|
</div>
|
812
824
|
<div class="method">
|
813
825
|
<div class="title">
|
814
|
-
<a name="
|
826
|
+
<a name="M000571"></a><b>blank?</b>()
|
815
827
|
</div>
|
816
828
|
<div class="description">
|
817
829
|
<p>
|
@@ -823,8 +835,8 @@ Is this string just whitespace?
|
|
823
835
|
</pre>
|
824
836
|
</div>
|
825
837
|
<div class="sourcecode">
|
826
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
827
|
-
<div id="
|
838
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000571_source')" id="l_M000571_source">show source</a> ]</p>
|
839
|
+
<div id="M000571_source" class="dyn-source">
|
828
840
|
<pre>
|
829
841
|
<span class="ruby-comment cmt"># File lib/core/facets/blank.rb, line 50</span>
|
830
842
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">blank?</span>
|
@@ -836,12 +848,12 @@ Is this string just whitespace?
|
|
836
848
|
</div>
|
837
849
|
<div class="method">
|
838
850
|
<div class="title">
|
839
|
-
<a name="
|
851
|
+
<a name="M000500"></a><b>bracket</b>(bra, ket=nil)
|
840
852
|
</div>
|
841
853
|
<div class="description">
|
842
854
|
<p>
|
843
855
|
Return a new string embraced by given brakets. If only one <a
|
844
|
-
href="String.html#
|
856
|
+
href="String.html#M000500">bracket</a> char is given it will be placed on
|
845
857
|
either side.
|
846
858
|
</p>
|
847
859
|
<pre>
|
@@ -852,8 +864,8 @@ either side.
|
|
852
864
|
</pre>
|
853
865
|
</div>
|
854
866
|
<div class="sourcecode">
|
855
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
856
|
-
<div id="
|
867
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000500_source')" id="l_M000500_source">show source</a> ]</p>
|
868
|
+
<div id="M000500_source" class="dyn-source">
|
857
869
|
<pre>
|
858
870
|
<span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 14</span>
|
859
871
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bracket</span>(<span class="ruby-identifier">bra</span>, <span class="ruby-identifier">ket</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -867,12 +879,12 @@ either side.
|
|
867
879
|
</div>
|
868
880
|
<div class="method">
|
869
881
|
<div class="title">
|
870
|
-
<a name="
|
882
|
+
<a name="M000557"></a><b>bracket</b>(bra, ket=nil)
|
871
883
|
</div>
|
872
884
|
<div class="description">
|
873
885
|
<p>
|
874
886
|
Return a new string embraced by given brakets. If only one <a
|
875
|
-
href="String.html#
|
887
|
+
href="String.html#M000500">bracket</a> char is given it will be placed on
|
876
888
|
either side.
|
877
889
|
</p>
|
878
890
|
<pre>
|
@@ -883,8 +895,8 @@ either side.
|
|
883
895
|
</pre>
|
884
896
|
</div>
|
885
897
|
<div class="sourcecode">
|
886
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
887
|
-
<div id="
|
898
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000557_source')" id="l_M000557_source">show source</a> ]</p>
|
899
|
+
<div id="M000557_source" class="dyn-source">
|
888
900
|
<pre>
|
889
901
|
<span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 14</span>
|
890
902
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bracket</span>(<span class="ruby-identifier">bra</span>, <span class="ruby-identifier">ket</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -898,7 +910,7 @@ either side.
|
|
898
910
|
</div>
|
899
911
|
<div class="method">
|
900
912
|
<div class="title">
|
901
|
-
<a name="
|
913
|
+
<a name="M000558"></a><b>bracket!</b>(bra, ket=nil)
|
902
914
|
</div>
|
903
915
|
<div class="description">
|
904
916
|
<p>
|
@@ -909,8 +921,8 @@ Inplace version of braket.
|
|
909
921
|
</pre>
|
910
922
|
</div>
|
911
923
|
<div class="sourcecode">
|
912
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
913
|
-
<div id="
|
924
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000558_source')" id="l_M000558_source">show source</a> ]</p>
|
925
|
+
<div id="M000558_source" class="dyn-source">
|
914
926
|
<pre>
|
915
927
|
<span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 24</span>
|
916
928
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bracket!</span>(<span class="ruby-identifier">bra</span>, <span class="ruby-identifier">ket</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -922,7 +934,7 @@ Inplace version of braket.
|
|
922
934
|
</div>
|
923
935
|
<div class="method">
|
924
936
|
<div class="title">
|
925
|
-
<a name="
|
937
|
+
<a name="M000501"></a><b>bracket!</b>(bra, ket=nil)
|
926
938
|
</div>
|
927
939
|
<div class="description">
|
928
940
|
<p>
|
@@ -933,8 +945,8 @@ Inplace version of braket.
|
|
933
945
|
</pre>
|
934
946
|
</div>
|
935
947
|
<div class="sourcecode">
|
936
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
937
|
-
<div id="
|
948
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000501_source')" id="l_M000501_source">show source</a> ]</p>
|
949
|
+
<div id="M000501_source" class="dyn-source">
|
938
950
|
<pre>
|
939
951
|
<span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 24</span>
|
940
952
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bracket!</span>(<span class="ruby-identifier">bra</span>, <span class="ruby-identifier">ket</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -946,16 +958,16 @@ Inplace version of braket.
|
|
946
958
|
</div>
|
947
959
|
<div class="method">
|
948
960
|
<div class="title">
|
949
|
-
<a name="
|
961
|
+
<a name="M000548"></a><b>bytes</b>()
|
950
962
|
</div>
|
951
963
|
<div class="description">
|
952
964
|
<p>
|
953
|
-
Upacks string into <a href="String.html#
|
965
|
+
Upacks string into <a href="String.html#M000491">bytes</a>.
|
954
966
|
</p>
|
955
967
|
</div>
|
956
968
|
<div class="sourcecode">
|
957
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
958
|
-
<div id="
|
969
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000548_source')" id="l_M000548_source">show source</a> ]</p>
|
970
|
+
<div id="M000548_source" class="dyn-source">
|
959
971
|
<pre>
|
960
972
|
<span class="ruby-comment cmt"># File lib/core/facets/string/bytes.rb, line 8</span>
|
961
973
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bytes</span>
|
@@ -967,16 +979,16 @@ Upacks string into <a href="String.html#M000516">bytes</a>.
|
|
967
979
|
</div>
|
968
980
|
<div class="method">
|
969
981
|
<div class="title">
|
970
|
-
<a name="
|
982
|
+
<a name="M000491"></a><b>bytes</b>()
|
971
983
|
</div>
|
972
984
|
<div class="description">
|
973
985
|
<p>
|
974
|
-
Upacks string into <a href="String.html#
|
986
|
+
Upacks string into <a href="String.html#M000491">bytes</a>.
|
975
987
|
</p>
|
976
988
|
</div>
|
977
989
|
<div class="sourcecode">
|
978
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
979
|
-
<div id="
|
990
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000491_source')" id="l_M000491_source">show source</a> ]</p>
|
991
|
+
<div id="M000491_source" class="dyn-source">
|
980
992
|
<pre>
|
981
993
|
<span class="ruby-comment cmt"># File lib/core/facets/string/bytes.rb, line 8</span>
|
982
994
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bytes</span>
|
@@ -988,19 +1000,19 @@ Upacks string into <a href="String.html#M000516">bytes</a>.
|
|
988
1000
|
</div>
|
989
1001
|
<div class="method">
|
990
1002
|
<div class="title">
|
991
|
-
<a name="
|
1003
|
+
<a name="M000463"></a><b>camelcase</b>(upcase_first_letter=true)
|
992
1004
|
</div>
|
993
1005
|
<div class="description">
|
994
1006
|
<p>
|
995
|
-
Converts a string to <a href="String.html#
|
1007
|
+
Converts a string to <a href="String.html#M000463">camelcase</a>.
|
996
1008
|
</p>
|
997
1009
|
<p>
|
998
|
-
By default <a href="String.html#
|
1010
|
+
By default <a href="String.html#M000463">camelcase</a> convert to
|
999
1011
|
UpperCamelCase, If an argument is set to <tt>false</tt>, then <a
|
1000
|
-
href="String.html#
|
1012
|
+
href="String.html#M000463">camelcase</a> will produce lowerCamelCase.
|
1001
1013
|
</p>
|
1002
1014
|
<p>
|
1003
|
-
<tt><a href="String.html#
|
1015
|
+
<tt><a href="String.html#M000463">camelcase</a></tt> also converts
|
1004
1016
|
’/’ to ’::’ which is useful for converting paths to
|
1005
1017
|
namespaces.
|
1006
1018
|
</p>
|
@@ -1014,8 +1026,8 @@ Examples
|
|
1014
1026
|
</pre>
|
1015
1027
|
</div>
|
1016
1028
|
<div class="sourcecode">
|
1017
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1018
|
-
<div id="
|
1029
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000463_source')" id="l_M000463_source">show source</a> ]</p>
|
1030
|
+
<div id="M000463_source" class="dyn-source">
|
1019
1031
|
<pre>
|
1020
1032
|
<span class="ruby-comment cmt"># File lib/core/facets/string/camelcase.rb, line 16</span>
|
1021
1033
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">camelcase</span>(<span class="ruby-identifier">upcase_first_letter</span>=<span class="ruby-keyword kw">true</span>)
|
@@ -1032,19 +1044,19 @@ Examples
|
|
1032
1044
|
</div>
|
1033
1045
|
<div class="method">
|
1034
1046
|
<div class="title">
|
1035
|
-
<a name="
|
1047
|
+
<a name="M000520"></a><b>camelcase</b>(upcase_first_letter=true)
|
1036
1048
|
</div>
|
1037
1049
|
<div class="description">
|
1038
1050
|
<p>
|
1039
|
-
Converts a string to <a href="String.html#
|
1051
|
+
Converts a string to <a href="String.html#M000463">camelcase</a>.
|
1040
1052
|
</p>
|
1041
1053
|
<p>
|
1042
|
-
By default <a href="String.html#
|
1054
|
+
By default <a href="String.html#M000463">camelcase</a> convert to
|
1043
1055
|
UpperCamelCase, If an argument is set to <tt>false</tt>, then <a
|
1044
|
-
href="String.html#
|
1056
|
+
href="String.html#M000463">camelcase</a> will produce lowerCamelCase.
|
1045
1057
|
</p>
|
1046
1058
|
<p>
|
1047
|
-
<tt><a href="String.html#
|
1059
|
+
<tt><a href="String.html#M000463">camelcase</a></tt> also converts
|
1048
1060
|
’/’ to ’::’ which is useful for converting paths to
|
1049
1061
|
namespaces.
|
1050
1062
|
</p>
|
@@ -1058,8 +1070,8 @@ Examples
|
|
1058
1070
|
</pre>
|
1059
1071
|
</div>
|
1060
1072
|
<div class="sourcecode">
|
1061
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1062
|
-
<div id="
|
1073
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000520_source')" id="l_M000520_source">show source</a> ]</p>
|
1074
|
+
<div id="M000520_source" class="dyn-source">
|
1063
1075
|
<pre>
|
1064
1076
|
<span class="ruby-comment cmt"># File lib/core/facets/string/camelcase.rb, line 16</span>
|
1065
1077
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">camelcase</span>(<span class="ruby-identifier">upcase_first_letter</span>=<span class="ruby-keyword kw">true</span>)
|
@@ -1076,7 +1088,7 @@ Examples
|
|
1076
1088
|
</div>
|
1077
1089
|
<div class="method">
|
1078
1090
|
<div class="title">
|
1079
|
-
<a name="
|
1091
|
+
<a name="M000487"></a><b>capitalized?</b>()
|
1080
1092
|
</div>
|
1081
1093
|
<div class="description">
|
1082
1094
|
<p>
|
@@ -1091,8 +1103,8 @@ Return true if the string is capitalized, otherwise false.
|
|
1091
1103
|
</pre>
|
1092
1104
|
</div>
|
1093
1105
|
<div class="sourcecode">
|
1094
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1095
|
-
<div id="
|
1106
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000487_source')" id="l_M000487_source">show source</a> ]</p>
|
1107
|
+
<div id="M000487_source" class="dyn-source">
|
1096
1108
|
<pre>
|
1097
1109
|
<span class="ruby-comment cmt"># File lib/core/facets/string/capitalized.rb, line 11</span>
|
1098
1110
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">capitalized?</span>
|
@@ -1104,7 +1116,7 @@ Return true if the string is capitalized, otherwise false.
|
|
1104
1116
|
</div>
|
1105
1117
|
<div class="method">
|
1106
1118
|
<div class="title">
|
1107
|
-
<a name="
|
1119
|
+
<a name="M000544"></a><b>capitalized?</b>()
|
1108
1120
|
</div>
|
1109
1121
|
<div class="description">
|
1110
1122
|
<p>
|
@@ -1119,8 +1131,8 @@ Return true if the string is capitalized, otherwise false.
|
|
1119
1131
|
</pre>
|
1120
1132
|
</div>
|
1121
1133
|
<div class="sourcecode">
|
1122
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1123
|
-
<div id="
|
1134
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000544_source')" id="l_M000544_source">show source</a> ]</p>
|
1135
|
+
<div id="M000544_source" class="dyn-source">
|
1124
1136
|
<pre>
|
1125
1137
|
<span class="ruby-comment cmt"># File lib/core/facets/string/capitalized.rb, line 11</span>
|
1126
1138
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">capitalized?</span>
|
@@ -1132,7 +1144,7 @@ Return true if the string is capitalized, otherwise false.
|
|
1132
1144
|
</div>
|
1133
1145
|
<div class="method">
|
1134
1146
|
<div class="title">
|
1135
|
-
<a name="
|
1147
|
+
<a name="M000506"></a><b>chars</b>()
|
1136
1148
|
</div>
|
1137
1149
|
<div class="description">
|
1138
1150
|
<p>
|
@@ -1143,8 +1155,8 @@ Returns an array of characters.
|
|
1143
1155
|
</pre>
|
1144
1156
|
</div>
|
1145
1157
|
<div class="sourcecode">
|
1146
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1147
|
-
<div id="
|
1158
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000506_source')" id="l_M000506_source">show source</a> ]</p>
|
1159
|
+
<div id="M000506_source" class="dyn-source">
|
1148
1160
|
<pre>
|
1149
1161
|
<span class="ruby-comment cmt"># File lib/core/facets/string/chars.rb, line 9</span>
|
1150
1162
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chars</span>
|
@@ -1156,7 +1168,7 @@ Returns an array of characters.
|
|
1156
1168
|
</div>
|
1157
1169
|
<div class="method">
|
1158
1170
|
<div class="title">
|
1159
|
-
<a name="
|
1171
|
+
<a name="M000563"></a><b>chars</b>()
|
1160
1172
|
</div>
|
1161
1173
|
<div class="description">
|
1162
1174
|
<p>
|
@@ -1167,8 +1179,8 @@ Returns an array of characters.
|
|
1167
1179
|
</pre>
|
1168
1180
|
</div>
|
1169
1181
|
<div class="sourcecode">
|
1170
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1171
|
-
<div id="
|
1182
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000563_source')" id="l_M000563_source">show source</a> ]</p>
|
1183
|
+
<div id="M000563_source" class="dyn-source">
|
1172
1184
|
<pre>
|
1173
1185
|
<span class="ruby-comment cmt"># File lib/core/facets/string/chars.rb, line 9</span>
|
1174
1186
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chars</span>
|
@@ -1180,7 +1192,7 @@ Returns an array of characters.
|
|
1180
1192
|
</div>
|
1181
1193
|
<div class="method">
|
1182
1194
|
<div class="title">
|
1183
|
-
<a name="
|
1195
|
+
<a name="M000554"></a><b>cleave</b>(threshold=nil, len=nil)
|
1184
1196
|
</div>
|
1185
1197
|
<div class="description">
|
1186
1198
|
<p>
|
@@ -1191,8 +1203,8 @@ Cleave a string. Break a string in two parts at the nearest whitespace.
|
|
1191
1203
|
</pre>
|
1192
1204
|
</div>
|
1193
1205
|
<div class="sourcecode">
|
1194
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1195
|
-
<div id="
|
1206
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000554_source')" id="l_M000554_source">show source</a> ]</p>
|
1207
|
+
<div id="M000554_source" class="dyn-source">
|
1196
1208
|
<pre>
|
1197
1209
|
<span class="ruby-comment cmt"># File lib/core/facets/string/cleave.rb, line 8</span>
|
1198
1210
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cleave</span>(<span class="ruby-identifier">threshold</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">len</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -1228,7 +1240,7 @@ Cleave a string. Break a string in two parts at the nearest whitespace.
|
|
1228
1240
|
</div>
|
1229
1241
|
<div class="method">
|
1230
1242
|
<div class="title">
|
1231
|
-
<a name="
|
1243
|
+
<a name="M000497"></a><b>cleave</b>(threshold=nil, len=nil)
|
1232
1244
|
</div>
|
1233
1245
|
<div class="description">
|
1234
1246
|
<p>
|
@@ -1239,8 +1251,8 @@ Cleave a string. Break a string in two parts at the nearest whitespace.
|
|
1239
1251
|
</pre>
|
1240
1252
|
</div>
|
1241
1253
|
<div class="sourcecode">
|
1242
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1243
|
-
<div id="
|
1254
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000497_source')" id="l_M000497_source">show source</a> ]</p>
|
1255
|
+
<div id="M000497_source" class="dyn-source">
|
1244
1256
|
<pre>
|
1245
1257
|
<span class="ruby-comment cmt"># File lib/core/facets/string/cleave.rb, line 8</span>
|
1246
1258
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cleave</span>(<span class="ruby-identifier">threshold</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">len</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -1276,7 +1288,7 @@ Cleave a string. Break a string in two parts at the nearest whitespace.
|
|
1276
1288
|
</div>
|
1277
1289
|
<div class="method">
|
1278
1290
|
<div class="title">
|
1279
|
-
<a name="
|
1291
|
+
<a name="M000456"></a><b>cmp</b>(other)
|
1280
1292
|
</div>
|
1281
1293
|
<div class="description">
|
1282
1294
|
<p>
|
@@ -1293,8 +1305,8 @@ compatible with succ.
|
|
1293
1305
|
</pre>
|
1294
1306
|
</div>
|
1295
1307
|
<div class="sourcecode">
|
1296
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1297
|
-
<div id="
|
1308
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000456_source')" id="l_M000456_source">show source</a> ]</p>
|
1309
|
+
<div id="M000456_source" class="dyn-source">
|
1298
1310
|
<pre>
|
1299
1311
|
<span class="ruby-comment cmt"># File lib/core/facets/comparable/cmp.rb, line 31</span>
|
1300
1312
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmp</span>(<span class="ruby-identifier">other</span>)
|
@@ -1308,7 +1320,7 @@ compatible with succ.
|
|
1308
1320
|
</div>
|
1309
1321
|
<div class="method">
|
1310
1322
|
<div class="title">
|
1311
|
-
<a name="
|
1323
|
+
<a name="M000454"></a><b>cmp</b>(other)
|
1312
1324
|
</div>
|
1313
1325
|
<div class="description">
|
1314
1326
|
<p>
|
@@ -1325,8 +1337,8 @@ compatible with succ.
|
|
1325
1337
|
</pre>
|
1326
1338
|
</div>
|
1327
1339
|
<div class="sourcecode">
|
1328
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1329
|
-
<div id="
|
1340
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000454_source')" id="l_M000454_source">show source</a> ]</p>
|
1341
|
+
<div id="M000454_source" class="dyn-source">
|
1330
1342
|
<pre>
|
1331
1343
|
<span class="ruby-comment cmt"># File lib/core/facets/comparable/cmp.rb, line 31</span>
|
1332
1344
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmp</span>(<span class="ruby-identifier">other</span>)
|
@@ -1340,7 +1352,7 @@ compatible with succ.
|
|
1340
1352
|
</div>
|
1341
1353
|
<div class="method">
|
1342
1354
|
<div class="title">
|
1343
|
-
<a name="
|
1355
|
+
<a name="M000505"></a><b>dequote</b>()
|
1344
1356
|
</div>
|
1345
1357
|
<div class="description">
|
1346
1358
|
<p>
|
@@ -1353,8 +1365,8 @@ Remove quotes from string.
|
|
1353
1365
|
</pre>
|
1354
1366
|
</div>
|
1355
1367
|
<div class="sourcecode">
|
1356
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1357
|
-
<div id="
|
1368
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000505_source')" id="l_M000505_source">show source</a> ]</p>
|
1369
|
+
<div id="M000505_source" class="dyn-source">
|
1358
1370
|
<pre>
|
1359
1371
|
<span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 88</span>
|
1360
1372
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dequote</span>
|
@@ -1378,7 +1390,7 @@ Remove quotes from string.
|
|
1378
1390
|
</div>
|
1379
1391
|
<div class="method">
|
1380
1392
|
<div class="title">
|
1381
|
-
<a name="
|
1393
|
+
<a name="M000562"></a><b>dequote</b>()
|
1382
1394
|
</div>
|
1383
1395
|
<div class="description">
|
1384
1396
|
<p>
|
@@ -1391,8 +1403,8 @@ Remove quotes from string.
|
|
1391
1403
|
</pre>
|
1392
1404
|
</div>
|
1393
1405
|
<div class="sourcecode">
|
1394
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1395
|
-
<div id="
|
1406
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000562_source')" id="l_M000562_source">show source</a> ]</p>
|
1407
|
+
<div id="M000562_source" class="dyn-source">
|
1396
1408
|
<pre>
|
1397
1409
|
<span class="ruby-comment cmt"># File lib/core/facets/string/bracket.rb, line 88</span>
|
1398
1410
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dequote</span>
|
@@ -1416,7 +1428,7 @@ Remove quotes from string.
|
|
1416
1428
|
</div>
|
1417
1429
|
<div class="method">
|
1418
1430
|
<div class="title">
|
1419
|
-
<a name="
|
1431
|
+
<a name="M000542"></a><b>divide</b>( re )
|
1420
1432
|
</div>
|
1421
1433
|
<div class="description">
|
1422
1434
|
<p>
|
@@ -1437,8 +1449,8 @@ scan, but includes the matches.
|
|
1437
1449
|
</pre>
|
1438
1450
|
</div>
|
1439
1451
|
<div class="sourcecode">
|
1440
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1441
|
-
<div id="
|
1452
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000542_source')" id="l_M000542_source">show source</a> ]</p>
|
1453
|
+
<div id="M000542_source" class="dyn-source">
|
1442
1454
|
<pre>
|
1443
1455
|
<span class="ruby-comment cmt"># File lib/core/facets/string/divide.rb, line 15</span>
|
1444
1456
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">divide</span>( <span class="ruby-identifier">re</span> )
|
@@ -1451,7 +1463,7 @@ scan, but includes the matches.
|
|
1451
1463
|
</div>
|
1452
1464
|
<div class="method">
|
1453
1465
|
<div class="title">
|
1454
|
-
<a name="
|
1466
|
+
<a name="M000485"></a><b>divide</b>( re )
|
1455
1467
|
</div>
|
1456
1468
|
<div class="description">
|
1457
1469
|
<p>
|
@@ -1472,8 +1484,8 @@ scan, but includes the matches.
|
|
1472
1484
|
</pre>
|
1473
1485
|
</div>
|
1474
1486
|
<div class="sourcecode">
|
1475
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1476
|
-
<div id="
|
1487
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000485_source')" id="l_M000485_source">show source</a> ]</p>
|
1488
|
+
<div id="M000485_source" class="dyn-source">
|
1477
1489
|
<pre>
|
1478
1490
|
<span class="ruby-comment cmt"># File lib/core/facets/string/divide.rb, line 15</span>
|
1479
1491
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">divide</span>( <span class="ruby-identifier">re</span> )
|
@@ -1486,7 +1498,7 @@ scan, but includes the matches.
|
|
1486
1498
|
</div>
|
1487
1499
|
<div class="method">
|
1488
1500
|
<div class="title">
|
1489
|
-
<a name="
|
1501
|
+
<a name="M000545"></a><b>downcase?</b>()
|
1490
1502
|
</div>
|
1491
1503
|
<div class="description">
|
1492
1504
|
<p>
|
@@ -1501,8 +1513,8 @@ Return true if the string is lowercase (downcase), otherwise false.
|
|
1501
1513
|
</pre>
|
1502
1514
|
</div>
|
1503
1515
|
<div class="sourcecode">
|
1504
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1505
|
-
<div id="
|
1516
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000545_source')" id="l_M000545_source">show source</a> ]</p>
|
1517
|
+
<div id="M000545_source" class="dyn-source">
|
1506
1518
|
<pre>
|
1507
1519
|
<span class="ruby-comment cmt"># File lib/core/facets/string/capitalized.rb, line 23</span>
|
1508
1520
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">downcase?</span>
|
@@ -1514,7 +1526,7 @@ Return true if the string is lowercase (downcase), otherwise false.
|
|
1514
1526
|
</div>
|
1515
1527
|
<div class="method">
|
1516
1528
|
<div class="title">
|
1517
|
-
<a name="
|
1529
|
+
<a name="M000488"></a><b>downcase?</b>()
|
1518
1530
|
</div>
|
1519
1531
|
<div class="description">
|
1520
1532
|
<p>
|
@@ -1529,8 +1541,8 @@ Return true if the string is lowercase (downcase), otherwise false.
|
|
1529
1541
|
</pre>
|
1530
1542
|
</div>
|
1531
1543
|
<div class="sourcecode">
|
1532
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1533
|
-
<div id="
|
1544
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000488_source')" id="l_M000488_source">show source</a> ]</p>
|
1545
|
+
<div id="M000488_source" class="dyn-source">
|
1534
1546
|
<pre>
|
1535
1547
|
<span class="ruby-comment cmt"># File lib/core/facets/string/capitalized.rb, line 23</span>
|
1536
1548
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">downcase?</span>
|
@@ -1542,12 +1554,12 @@ Return true if the string is lowercase (downcase), otherwise false.
|
|
1542
1554
|
</div>
|
1543
1555
|
<div class="method">
|
1544
1556
|
<div class="title">
|
1545
|
-
<a name="
|
1557
|
+
<a name="M000484"></a><b>each_char</b>( {|| ...}
|
1546
1558
|
</div>
|
1547
1559
|
<div class="description">
|
1548
1560
|
<p>
|
1549
1561
|
Iterates through each character. This is a little faster than using <a
|
1550
|
-
href="String.html#
|
1562
|
+
href="String.html#M000506">chars</a> b/c it does not create the
|
1551
1563
|
intermediate array.
|
1552
1564
|
</p>
|
1553
1565
|
<pre>
|
@@ -1557,8 +1569,8 @@ intermediate array.
|
|
1557
1569
|
</pre>
|
1558
1570
|
</div>
|
1559
1571
|
<div class="sourcecode">
|
1560
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1561
|
-
<div id="
|
1572
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000484_source')" id="l_M000484_source">show source</a> ]</p>
|
1573
|
+
<div id="M000484_source" class="dyn-source">
|
1562
1574
|
<pre>
|
1563
1575
|
<span class="ruby-comment cmt"># File lib/core/facets/string/each_char.rb, line 12</span>
|
1564
1576
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_char</span> <span class="ruby-comment cmt"># :yield:</span>
|
@@ -1572,12 +1584,12 @@ intermediate array.
|
|
1572
1584
|
</div>
|
1573
1585
|
<div class="method">
|
1574
1586
|
<div class="title">
|
1575
|
-
<a name="
|
1587
|
+
<a name="M000541"></a><b>each_char</b>( {|| ...}
|
1576
1588
|
</div>
|
1577
1589
|
<div class="description">
|
1578
1590
|
<p>
|
1579
1591
|
Iterates through each character. This is a little faster than using <a
|
1580
|
-
href="String.html#
|
1592
|
+
href="String.html#M000506">chars</a> b/c it does not create the
|
1581
1593
|
intermediate array.
|
1582
1594
|
</p>
|
1583
1595
|
<pre>
|
@@ -1587,8 +1599,8 @@ intermediate array.
|
|
1587
1599
|
</pre>
|
1588
1600
|
</div>
|
1589
1601
|
<div class="sourcecode">
|
1590
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1591
|
-
<div id="
|
1602
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000541_source')" id="l_M000541_source">show source</a> ]</p>
|
1603
|
+
<div id="M000541_source" class="dyn-source">
|
1592
1604
|
<pre>
|
1593
1605
|
<span class="ruby-comment cmt"># File lib/core/facets/string/each_char.rb, line 12</span>
|
1594
1606
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_char</span> <span class="ruby-comment cmt"># :yield:</span>
|
@@ -1602,7 +1614,55 @@ intermediate array.
|
|
1602
1614
|
</div>
|
1603
1615
|
<div class="method">
|
1604
1616
|
<div class="title">
|
1605
|
-
<a name="
|
1617
|
+
<a name="M000570"></a><b>each_word</b>(&block)
|
1618
|
+
</div>
|
1619
|
+
<div class="description">
|
1620
|
+
<p>
|
1621
|
+
Iterate through each word of a string.
|
1622
|
+
</p>
|
1623
|
+
<pre>
|
1624
|
+
"a string".each_word { |word, range| ... }
|
1625
|
+
</pre>
|
1626
|
+
</div>
|
1627
|
+
<div class="sourcecode">
|
1628
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000570_source')" id="l_M000570_source">show source</a> ]</p>
|
1629
|
+
<div id="M000570_source" class="dyn-source">
|
1630
|
+
<pre>
|
1631
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/each_word.rb, line 9</span>
|
1632
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_word</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
1633
|
+
<span class="ruby-identifier">words</span>.<span class="ruby-identifier">each</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
1634
|
+
<span class="ruby-keyword kw">end</span>
|
1635
|
+
</pre>
|
1636
|
+
</div>
|
1637
|
+
</div>
|
1638
|
+
</div>
|
1639
|
+
<div class="method">
|
1640
|
+
<div class="title">
|
1641
|
+
<a name="M000513"></a><b>each_word</b>(&block)
|
1642
|
+
</div>
|
1643
|
+
<div class="description">
|
1644
|
+
<p>
|
1645
|
+
Iterate through each word of a string.
|
1646
|
+
</p>
|
1647
|
+
<pre>
|
1648
|
+
"a string".each_word { |word, range| ... }
|
1649
|
+
</pre>
|
1650
|
+
</div>
|
1651
|
+
<div class="sourcecode">
|
1652
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000513_source')" id="l_M000513_source">show source</a> ]</p>
|
1653
|
+
<div id="M000513_source" class="dyn-source">
|
1654
|
+
<pre>
|
1655
|
+
<span class="ruby-comment cmt"># File lib/core/facets/string/each_word.rb, line 9</span>
|
1656
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_word</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
1657
|
+
<span class="ruby-identifier">words</span>.<span class="ruby-identifier">each</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
1658
|
+
<span class="ruby-keyword kw">end</span>
|
1659
|
+
</pre>
|
1660
|
+
</div>
|
1661
|
+
</div>
|
1662
|
+
</div>
|
1663
|
+
<div class="method">
|
1664
|
+
<div class="title">
|
1665
|
+
<a name="M000519"></a><b>end_with?</b>(suffix)
|
1606
1666
|
</div>
|
1607
1667
|
<div class="description">
|
1608
1668
|
<p>
|
@@ -1617,8 +1677,8 @@ Does a string end with the given suffix?
|
|
1617
1677
|
</pre>
|
1618
1678
|
</div>
|
1619
1679
|
<div class="sourcecode">
|
1620
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1621
|
-
<div id="
|
1680
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000519_source')" id="l_M000519_source">show source</a> ]</p>
|
1681
|
+
<div id="M000519_source" class="dyn-source">
|
1622
1682
|
<pre>
|
1623
1683
|
<span class="ruby-comment cmt"># File lib/core/facets/string/start_with.rb, line 25</span>
|
1624
1684
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">end_with?</span>(<span class="ruby-identifier">suffix</span>)
|
@@ -1630,7 +1690,7 @@ Does a string end with the given suffix?
|
|
1630
1690
|
</div>
|
1631
1691
|
<div class="method">
|
1632
1692
|
<div class="title">
|
1633
|
-
<a name="
|
1693
|
+
<a name="M000462"></a><b>end_with?</b>(suffix)
|
1634
1694
|
</div>
|
1635
1695
|
<div class="description">
|
1636
1696
|
<p>
|
@@ -1645,8 +1705,8 @@ Does a string end with the given suffix?
|
|
1645
1705
|
</pre>
|
1646
1706
|
</div>
|
1647
1707
|
<div class="sourcecode">
|
1648
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1649
|
-
<div id="
|
1708
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000462_source')" id="l_M000462_source">show source</a> ]</p>
|
1709
|
+
<div id="M000462_source" class="dyn-source">
|
1650
1710
|
<pre>
|
1651
1711
|
<span class="ruby-comment cmt"># File lib/core/facets/string/start_with.rb, line 25</span>
|
1652
1712
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">end_with?</span>(<span class="ruby-identifier">suffix</span>)
|
@@ -1658,7 +1718,7 @@ Does a string end with the given suffix?
|
|
1658
1718
|
</div>
|
1659
1719
|
<div class="method">
|
1660
1720
|
<div class="title">
|
1661
|
-
<a name="
|
1721
|
+
<a name="M000473"></a><b>expand_tabs</b>(n=8)
|
1662
1722
|
</div>
|
1663
1723
|
<div class="description">
|
1664
1724
|
<p>
|
@@ -1676,8 +1736,8 @@ Thanks to GGaramuno for a more efficient algorithm. Very nice.
|
|
1676
1736
|
</pre>
|
1677
1737
|
</div>
|
1678
1738
|
<div class="sourcecode">
|
1679
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1680
|
-
<div id="
|
1739
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000473_source')" id="l_M000473_source">show source</a> ]</p>
|
1740
|
+
<div id="M000473_source" class="dyn-source">
|
1681
1741
|
<pre>
|
1682
1742
|
<span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 26</span>
|
1683
1743
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">expand_tabs</span>(<span class="ruby-identifier">n</span>=<span class="ruby-value">8</span>)
|
@@ -1700,7 +1760,7 @@ Thanks to GGaramuno for a more efficient algorithm. Very nice.
|
|
1700
1760
|
</div>
|
1701
1761
|
<div class="method">
|
1702
1762
|
<div class="title">
|
1703
|
-
<a name="
|
1763
|
+
<a name="M000530"></a><b>expand_tabs</b>(n=8)
|
1704
1764
|
</div>
|
1705
1765
|
<div class="description">
|
1706
1766
|
<p>
|
@@ -1718,8 +1778,8 @@ Thanks to GGaramuno for a more efficient algorithm. Very nice.
|
|
1718
1778
|
</pre>
|
1719
1779
|
</div>
|
1720
1780
|
<div class="sourcecode">
|
1721
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1722
|
-
<div id="
|
1781
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000530_source')" id="l_M000530_source">show source</a> ]</p>
|
1782
|
+
<div id="M000530_source" class="dyn-source">
|
1723
1783
|
<pre>
|
1724
1784
|
<span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 26</span>
|
1725
1785
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">expand_tabs</span>(<span class="ruby-identifier">n</span>=<span class="ruby-value">8</span>)
|
@@ -1742,12 +1802,12 @@ Thanks to GGaramuno for a more efficient algorithm. Very nice.
|
|
1742
1802
|
</div>
|
1743
1803
|
<div class="method">
|
1744
1804
|
<div class="title">
|
1745
|
-
<a name="
|
1805
|
+
<a name="M000517"></a><b>fold</b>(ignore_indented=false)
|
1746
1806
|
</div>
|
1747
1807
|
<div class="description">
|
1748
1808
|
<p>
|
1749
|
-
Returns a new string with all new <a href="String.html#
|
1750
|
-
removed from adjacent <a href="String.html#
|
1809
|
+
Returns a new string with all new <a href="String.html#M000464">lines</a>
|
1810
|
+
removed from adjacent <a href="String.html#M000464">lines</a> of text.
|
1751
1811
|
</p>
|
1752
1812
|
<pre>
|
1753
1813
|
s = "This is\na test.\n\nIt clumps\nlines of text."
|
@@ -1768,8 +1828,8 @@ ends in a newline, it is replaced with a single space.
|
|
1768
1828
|
</pre>
|
1769
1829
|
</div>
|
1770
1830
|
<div class="sourcecode">
|
1771
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1772
|
-
<div id="
|
1831
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000517_source')" id="l_M000517_source">show source</a> ]</p>
|
1832
|
+
<div id="M000517_source" class="dyn-source">
|
1773
1833
|
<pre>
|
1774
1834
|
<span class="ruby-comment cmt"># File lib/core/facets/string/fold.rb, line 19</span>
|
1775
1835
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">fold</span>(<span class="ruby-identifier">ignore_indented</span>=<span class="ruby-keyword kw">false</span>)
|
@@ -1796,12 +1856,12 @@ ends in a newline, it is replaced with a single space.
|
|
1796
1856
|
</div>
|
1797
1857
|
<div class="method">
|
1798
1858
|
<div class="title">
|
1799
|
-
<a name="
|
1859
|
+
<a name="M000460"></a><b>fold</b>(ignore_indented=false)
|
1800
1860
|
</div>
|
1801
1861
|
<div class="description">
|
1802
1862
|
<p>
|
1803
|
-
Returns a new string with all new <a href="String.html#
|
1804
|
-
removed from adjacent <a href="String.html#
|
1863
|
+
Returns a new string with all new <a href="String.html#M000464">lines</a>
|
1864
|
+
removed from adjacent <a href="String.html#M000464">lines</a> of text.
|
1805
1865
|
</p>
|
1806
1866
|
<pre>
|
1807
1867
|
s = "This is\na test.\n\nIt clumps\nlines of text."
|
@@ -1822,8 +1882,8 @@ ends in a newline, it is replaced with a single space.
|
|
1822
1882
|
</pre>
|
1823
1883
|
</div>
|
1824
1884
|
<div class="sourcecode">
|
1825
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1826
|
-
<div id="
|
1885
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000460_source')" id="l_M000460_source">show source</a> ]</p>
|
1886
|
+
<div id="M000460_source" class="dyn-source">
|
1827
1887
|
<pre>
|
1828
1888
|
<span class="ruby-comment cmt"># File lib/core/facets/string/fold.rb, line 19</span>
|
1829
1889
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">fold</span>(<span class="ruby-identifier">ignore_indented</span>=<span class="ruby-keyword kw">false</span>)
|
@@ -1850,13 +1910,13 @@ ends in a newline, it is replaced with a single space.
|
|
1850
1910
|
</div>
|
1851
1911
|
<div class="method">
|
1852
1912
|
<div class="title">
|
1853
|
-
<a name="
|
1913
|
+
<a name="M000475"></a><b>indent</b>(n)
|
1854
1914
|
</div>
|
1855
1915
|
<div class="description">
|
1856
1916
|
<p>
|
1857
1917
|
Indent left or right by n spaces. (This used to be called <a
|
1858
|
-
href="String.html#
|
1859
|
-
href="String.html#
|
1918
|
+
href="String.html#M000471">tab</a> and aliased as <a
|
1919
|
+
href="String.html#M000475">indent</a>.)
|
1860
1920
|
</p>
|
1861
1921
|
<pre>
|
1862
1922
|
CREDIT: Gavin Sinclair
|
@@ -1864,8 +1924,8 @@ href="String.html#M000501">indent</a>.)
|
|
1864
1924
|
</pre>
|
1865
1925
|
</div>
|
1866
1926
|
<div class="sourcecode">
|
1867
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1868
|
-
<div id="
|
1927
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000475_source')" id="l_M000475_source">show source</a> ]</p>
|
1928
|
+
<div id="M000475_source" class="dyn-source">
|
1869
1929
|
<pre>
|
1870
1930
|
<span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 60</span>
|
1871
1931
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">indent</span>(<span class="ruby-identifier">n</span>)
|
@@ -1881,13 +1941,13 @@ href="String.html#M000501">indent</a>.)
|
|
1881
1941
|
</div>
|
1882
1942
|
<div class="method">
|
1883
1943
|
<div class="title">
|
1884
|
-
<a name="
|
1944
|
+
<a name="M000532"></a><b>indent</b>(n)
|
1885
1945
|
</div>
|
1886
1946
|
<div class="description">
|
1887
1947
|
<p>
|
1888
1948
|
Indent left or right by n spaces. (This used to be called <a
|
1889
|
-
href="String.html#
|
1890
|
-
href="String.html#
|
1949
|
+
href="String.html#M000471">tab</a> and aliased as <a
|
1950
|
+
href="String.html#M000475">indent</a>.)
|
1891
1951
|
</p>
|
1892
1952
|
<pre>
|
1893
1953
|
CREDIT: Gavin Sinclair
|
@@ -1895,8 +1955,8 @@ href="String.html#M000501">indent</a>.)
|
|
1895
1955
|
</pre>
|
1896
1956
|
</div>
|
1897
1957
|
<div class="sourcecode">
|
1898
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1899
|
-
<div id="
|
1958
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000532_source')" id="l_M000532_source">show source</a> ]</p>
|
1959
|
+
<div id="M000532_source" class="dyn-source">
|
1900
1960
|
<pre>
|
1901
1961
|
<span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 60</span>
|
1902
1962
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">indent</span>(<span class="ruby-identifier">n</span>)
|
@@ -1912,7 +1972,7 @@ href="String.html#M000501">indent</a>.)
|
|
1912
1972
|
</div>
|
1913
1973
|
<div class="method">
|
1914
1974
|
<div class="title">
|
1915
|
-
<a name="
|
1975
|
+
<a name="M000482"></a><b>index_all</b>(s, reuse=false)
|
1916
1976
|
</div>
|
1917
1977
|
<div class="description">
|
1918
1978
|
<p>
|
@@ -1929,8 +1989,8 @@ allows the trailing portion of a match to be reused for subsquent matches.
|
|
1929
1989
|
</pre>
|
1930
1990
|
</div>
|
1931
1991
|
<div class="sourcecode">
|
1932
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1933
|
-
<div id="
|
1992
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000482_source')" id="l_M000482_source">show source</a> ]</p>
|
1993
|
+
<div id="M000482_source" class="dyn-source">
|
1934
1994
|
<pre>
|
1935
1995
|
<span class="ruby-comment cmt"># File lib/core/facets/string/range.rb, line 66</span>
|
1936
1996
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">index_all</span>(<span class="ruby-identifier">s</span>, <span class="ruby-identifier">reuse</span>=<span class="ruby-keyword kw">false</span>)
|
@@ -1948,7 +2008,7 @@ allows the trailing portion of a match to be reused for subsquent matches.
|
|
1948
2008
|
</div>
|
1949
2009
|
<div class="method">
|
1950
2010
|
<div class="title">
|
1951
|
-
<a name="
|
2011
|
+
<a name="M000539"></a><b>index_all</b>(s, reuse=false)
|
1952
2012
|
</div>
|
1953
2013
|
<div class="description">
|
1954
2014
|
<p>
|
@@ -1965,8 +2025,8 @@ allows the trailing portion of a match to be reused for subsquent matches.
|
|
1965
2025
|
</pre>
|
1966
2026
|
</div>
|
1967
2027
|
<div class="sourcecode">
|
1968
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1969
|
-
<div id="
|
2028
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000539_source')" id="l_M000539_source">show source</a> ]</p>
|
2029
|
+
<div id="M000539_source" class="dyn-source">
|
1970
2030
|
<pre>
|
1971
2031
|
<span class="ruby-comment cmt"># File lib/core/facets/string/range.rb, line 66</span>
|
1972
2032
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">index_all</span>(<span class="ruby-identifier">s</span>, <span class="ruby-identifier">reuse</span>=<span class="ruby-keyword kw">false</span>)
|
@@ -1984,7 +2044,7 @@ allows the trailing portion of a match to be reused for subsquent matches.
|
|
1984
2044
|
</div>
|
1985
2045
|
<div class="method">
|
1986
2046
|
<div class="title">
|
1987
|
-
<a name="
|
2047
|
+
<a name="M000564"></a><b>lchomp</b>(match)
|
1988
2048
|
</div>
|
1989
2049
|
<div class="description">
|
1990
2050
|
<p>
|
@@ -1998,8 +2058,8 @@ Left chomp.
|
|
1998
2058
|
</pre>
|
1999
2059
|
</div>
|
2000
2060
|
<div class="sourcecode">
|
2001
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2002
|
-
<div id="
|
2061
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000564_source')" id="l_M000564_source">show source</a> ]</p>
|
2062
|
+
<div id="M000564_source" class="dyn-source">
|
2003
2063
|
<pre>
|
2004
2064
|
<span class="ruby-comment cmt"># File lib/core/facets/string/chomp.rb, line 10</span>
|
2005
2065
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lchomp</span>(<span class="ruby-identifier">match</span>)
|
@@ -2015,7 +2075,7 @@ Left chomp.
|
|
2015
2075
|
</div>
|
2016
2076
|
<div class="method">
|
2017
2077
|
<div class="title">
|
2018
|
-
<a name="
|
2078
|
+
<a name="M000507"></a><b>lchomp</b>(match)
|
2019
2079
|
</div>
|
2020
2080
|
<div class="description">
|
2021
2081
|
<p>
|
@@ -2029,8 +2089,8 @@ Left chomp.
|
|
2029
2089
|
</pre>
|
2030
2090
|
</div>
|
2031
2091
|
<div class="sourcecode">
|
2032
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2033
|
-
<div id="
|
2092
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000507_source')" id="l_M000507_source">show source</a> ]</p>
|
2093
|
+
<div id="M000507_source" class="dyn-source">
|
2034
2094
|
<pre>
|
2035
2095
|
<span class="ruby-comment cmt"># File lib/core/facets/string/chomp.rb, line 10</span>
|
2036
2096
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lchomp</span>(<span class="ruby-identifier">match</span>)
|
@@ -2046,7 +2106,7 @@ Left chomp.
|
|
2046
2106
|
</div>
|
2047
2107
|
<div class="method">
|
2048
2108
|
<div class="title">
|
2049
|
-
<a name="
|
2109
|
+
<a name="M000508"></a><b>lchomp!</b>(match)
|
2050
2110
|
</div>
|
2051
2111
|
<div class="description">
|
2052
2112
|
<p>
|
@@ -2060,8 +2120,8 @@ In-place left chomp.
|
|
2060
2120
|
</pre>
|
2061
2121
|
</div>
|
2062
2122
|
<div class="sourcecode">
|
2063
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2064
|
-
<div id="
|
2123
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000508_source')" id="l_M000508_source">show source</a> ]</p>
|
2124
|
+
<div id="M000508_source" class="dyn-source">
|
2065
2125
|
<pre>
|
2066
2126
|
<span class="ruby-comment cmt"># File lib/core/facets/string/chomp.rb, line 25</span>
|
2067
2127
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lchomp!</span>(<span class="ruby-identifier">match</span>)
|
@@ -2076,7 +2136,7 @@ In-place left chomp.
|
|
2076
2136
|
</div>
|
2077
2137
|
<div class="method">
|
2078
2138
|
<div class="title">
|
2079
|
-
<a name="
|
2139
|
+
<a name="M000565"></a><b>lchomp!</b>(match)
|
2080
2140
|
</div>
|
2081
2141
|
<div class="description">
|
2082
2142
|
<p>
|
@@ -2090,8 +2150,8 @@ In-place left chomp.
|
|
2090
2150
|
</pre>
|
2091
2151
|
</div>
|
2092
2152
|
<div class="sourcecode">
|
2093
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2094
|
-
<div id="
|
2153
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000565_source')" id="l_M000565_source">show source</a> ]</p>
|
2154
|
+
<div id="M000565_source" class="dyn-source">
|
2095
2155
|
<pre>
|
2096
2156
|
<span class="ruby-comment cmt"># File lib/core/facets/string/chomp.rb, line 25</span>
|
2097
2157
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lchomp!</span>(<span class="ruby-identifier">match</span>)
|
@@ -2106,7 +2166,7 @@ In-place left chomp.
|
|
2106
2166
|
</div>
|
2107
2167
|
<div class="method">
|
2108
2168
|
<div class="title">
|
2109
|
-
<a name="
|
2169
|
+
<a name="M000556"></a><b>line_wrap</b>(width, tabs=4)
|
2110
2170
|
</div>
|
2111
2171
|
<div class="description">
|
2112
2172
|
<p>
|
@@ -2126,8 +2186,8 @@ Line wrap at width.
|
|
2126
2186
|
</pre>
|
2127
2187
|
</div>
|
2128
2188
|
<div class="sourcecode">
|
2129
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2130
|
-
<div id="
|
2189
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000556_source')" id="l_M000556_source">show source</a> ]</p>
|
2190
|
+
<div id="M000556_source" class="dyn-source">
|
2131
2191
|
<pre>
|
2132
2192
|
<span class="ruby-comment cmt"># File lib/core/facets/string/line_wrap.rb, line 14</span>
|
2133
2193
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">line_wrap</span>(<span class="ruby-identifier">width</span>, <span class="ruby-identifier">tabs</span>=<span class="ruby-value">4</span>)
|
@@ -2142,7 +2202,7 @@ Line wrap at width.
|
|
2142
2202
|
</div>
|
2143
2203
|
<div class="method">
|
2144
2204
|
<div class="title">
|
2145
|
-
<a name="
|
2205
|
+
<a name="M000499"></a><b>line_wrap</b>(width, tabs=4)
|
2146
2206
|
</div>
|
2147
2207
|
<div class="description">
|
2148
2208
|
<p>
|
@@ -2162,8 +2222,8 @@ Line wrap at width.
|
|
2162
2222
|
</pre>
|
2163
2223
|
</div>
|
2164
2224
|
<div class="sourcecode">
|
2165
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2166
|
-
<div id="
|
2225
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000499_source')" id="l_M000499_source">show source</a> ]</p>
|
2226
|
+
<div id="M000499_source" class="dyn-source">
|
2167
2227
|
<pre>
|
2168
2228
|
<span class="ruby-comment cmt"># File lib/core/facets/string/line_wrap.rb, line 14</span>
|
2169
2229
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">line_wrap</span>(<span class="ruby-identifier">width</span>, <span class="ruby-identifier">tabs</span>=<span class="ruby-value">4</span>)
|
@@ -2178,7 +2238,7 @@ Line wrap at width.
|
|
2178
2238
|
</div>
|
2179
2239
|
<div class="method">
|
2180
2240
|
<div class="title">
|
2181
|
-
<a name="
|
2241
|
+
<a name="M000521"></a><b>lines</b>()
|
2182
2242
|
</div>
|
2183
2243
|
<div class="description">
|
2184
2244
|
<p>
|
@@ -2189,8 +2249,8 @@ Returns an array of characters.
|
|
2189
2249
|
</pre>
|
2190
2250
|
</div>
|
2191
2251
|
<div class="sourcecode">
|
2192
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2193
|
-
<div id="
|
2252
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000521_source')" id="l_M000521_source">show source</a> ]</p>
|
2253
|
+
<div id="M000521_source" class="dyn-source">
|
2194
2254
|
<pre>
|
2195
2255
|
<span class="ruby-comment cmt"># File lib/core/facets/string/lines.rb, line 9</span>
|
2196
2256
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lines</span>
|
@@ -2202,7 +2262,7 @@ Returns an array of characters.
|
|
2202
2262
|
</div>
|
2203
2263
|
<div class="method">
|
2204
2264
|
<div class="title">
|
2205
|
-
<a name="
|
2265
|
+
<a name="M000464"></a><b>lines</b>()
|
2206
2266
|
</div>
|
2207
2267
|
<div class="description">
|
2208
2268
|
<p>
|
@@ -2213,8 +2273,8 @@ Returns an array of characters.
|
|
2213
2273
|
</pre>
|
2214
2274
|
</div>
|
2215
2275
|
<div class="sourcecode">
|
2216
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2217
|
-
<div id="
|
2276
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000464_source')" id="l_M000464_source">show source</a> ]</p>
|
2277
|
+
<div id="M000464_source" class="dyn-source">
|
2218
2278
|
<pre>
|
2219
2279
|
<span class="ruby-comment cmt"># File lib/core/facets/string/lines.rb, line 9</span>
|
2220
2280
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lines</span>
|
@@ -2226,11 +2286,11 @@ Returns an array of characters.
|
|
2226
2286
|
</div>
|
2227
2287
|
<div class="method">
|
2228
2288
|
<div class="title">
|
2229
|
-
<a name="
|
2289
|
+
<a name="M000534"></a><b>margin</b>(n=0)
|
2230
2290
|
</div>
|
2231
2291
|
<div class="description">
|
2232
2292
|
<p>
|
2233
|
-
Provides a <a href="String.html#
|
2293
|
+
Provides a <a href="String.html#M000477">margin</a> controlled string.
|
2234
2294
|
</p>
|
2235
2295
|
<pre>
|
2236
2296
|
x = %Q{
|
@@ -2245,8 +2305,8 @@ Provides a <a href="String.html#M000503">margin</a> controlled string.
|
|
2245
2305
|
</pre>
|
2246
2306
|
</div>
|
2247
2307
|
<div class="sourcecode">
|
2248
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2249
|
-
<div id="
|
2308
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000534_source')" id="l_M000534_source">show source</a> ]</p>
|
2309
|
+
<div id="M000534_source" class="dyn-source">
|
2250
2310
|
<pre>
|
2251
2311
|
<span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 89</span>
|
2252
2312
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">margin</span>(<span class="ruby-identifier">n</span>=<span class="ruby-value">0</span>)
|
@@ -2267,11 +2327,11 @@ Provides a <a href="String.html#M000503">margin</a> controlled string.
|
|
2267
2327
|
</div>
|
2268
2328
|
<div class="method">
|
2269
2329
|
<div class="title">
|
2270
|
-
<a name="
|
2330
|
+
<a name="M000477"></a><b>margin</b>(n=0)
|
2271
2331
|
</div>
|
2272
2332
|
<div class="description">
|
2273
2333
|
<p>
|
2274
|
-
Provides a <a href="String.html#
|
2334
|
+
Provides a <a href="String.html#M000477">margin</a> controlled string.
|
2275
2335
|
</p>
|
2276
2336
|
<pre>
|
2277
2337
|
x = %Q{
|
@@ -2286,8 +2346,8 @@ Provides a <a href="String.html#M000503">margin</a> controlled string.
|
|
2286
2346
|
</pre>
|
2287
2347
|
</div>
|
2288
2348
|
<div class="sourcecode">
|
2289
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2290
|
-
<div id="
|
2349
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000477_source')" id="l_M000477_source">show source</a> ]</p>
|
2350
|
+
<div id="M000477_source" class="dyn-source">
|
2291
2351
|
<pre>
|
2292
2352
|
<span class="ruby-comment cmt"># File lib/core/facets/string/tab.rb, line 89</span>
|
2293
2353
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">margin</span>(<span class="ruby-identifier">n</span>=<span class="ruby-value">0</span>)
|
@@ -2308,30 +2368,23 @@ Provides a <a href="String.html#M000503">margin</a> controlled string.
|
|
2308
2368
|
</div>
|
2309
2369
|
<div class="method">
|
2310
2370
|
<div class="title">
|
2311
|
-
<a name="
|
2371
|
+
<a name="M000535"></a><b>methodize</b>()
|
2312
2372
|
</div>
|
2313
2373
|
<div class="description">
|
2314
2374
|
<p>
|
2315
|
-
|
2316
|
-
then matched string ($&).
|
2375
|
+
Translate a (class or module) name to a suitable method name.
|
2317
2376
|
</p>
|
2318
2377
|
<pre>
|
2319
|
-
|
2378
|
+
My::CoolClass.name.methodize => "my__cool_class"
|
2320
2379
|
</pre>
|
2321
2380
|
</div>
|
2322
2381
|
<div class="sourcecode">
|
2323
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2324
|
-
<div id="
|
2382
|
+
<p class="source-link">[ <a href=&q |