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
@@ -87,9 +87,9 @@ Wee::Component.
|
|
87
87
|
|
88
88
|
<div class="sectiontitle">Methods</div>
|
89
89
|
<ul>
|
90
|
-
<li><a href="#
|
91
|
-
<li><a href="#
|
92
|
-
<li><a href="#
|
90
|
+
<li><a href="#M000060">new</a></li>
|
91
|
+
<li><a href="#M000062">restore_snapshot</a></li>
|
92
|
+
<li><a href="#M000061">take_snapshot</a></li>
|
93
93
|
</ul>
|
94
94
|
|
95
95
|
|
@@ -110,11 +110,11 @@ Wee::Component.
|
|
110
110
|
<div class="sectiontitle">Public Class methods</div>
|
111
111
|
<div class="method">
|
112
112
|
<div class="title">
|
113
|
-
<a name="
|
113
|
+
<a name="M000060"></a><b>new</b>(value=nil)
|
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('M000060_source')" id="l_M000060_source">show source</a> ]</p>
|
117
|
+
<div id="M000060_source" class="dyn-source">
|
118
118
|
<pre>
|
119
119
|
<span class="ruby-comment cmt"># File lib/more/facets/snapshot.rb, line 140</span>
|
120
120
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">value</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -127,11 +127,11 @@ Wee::Component.
|
|
127
127
|
<div class="sectiontitle">Public Instance methods</div>
|
128
128
|
<div class="method">
|
129
129
|
<div class="title">
|
130
|
-
<a name="
|
130
|
+
<a name="M000062"></a><b>restore_snapshot</b>(value)
|
131
131
|
</div>
|
132
132
|
<div class="sourcecode">
|
133
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
134
|
-
<div id="
|
133
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000062_source')" id="l_M000062_source">show source</a> ]</p>
|
134
|
+
<div id="M000062_source" class="dyn-source">
|
135
135
|
<pre>
|
136
136
|
<span class="ruby-comment cmt"># File lib/more/facets/snapshot.rb, line 148</span>
|
137
137
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">restore_snapshot</span>(<span class="ruby-identifier">value</span>)
|
@@ -143,11 +143,11 @@ Wee::Component.
|
|
143
143
|
</div>
|
144
144
|
<div class="method">
|
145
145
|
<div class="title">
|
146
|
-
<a name="
|
146
|
+
<a name="M000061"></a><b>take_snapshot</b>()
|
147
147
|
</div>
|
148
148
|
<div class="sourcecode">
|
149
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
150
|
-
<div id="
|
149
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000061_source')" id="l_M000061_source">show source</a> ]</p>
|
150
|
+
<div id="M000061_source" class="dyn-source">
|
151
151
|
<pre>
|
152
152
|
<span class="ruby-comment cmt"># File lib/more/facets/snapshot.rb, line 144</span>
|
153
153
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">take_snapshot</span>
|
@@ -85,10 +85,10 @@ Examples
|
|
85
85
|
String::Style.dasherize("super_man") #=> "super-man"
|
86
86
|
</pre>
|
87
87
|
<p>
|
88
|
-
TODO: With <a href="Style.html#
|
88
|
+
TODO: With <a href="Style.html#M000602">pathize</a>, is downcasing really
|
89
89
|
needed? After all paths can have <a
|
90
|
-
href="Style.html#
|
91
|
-
href="Style.html#
|
90
|
+
href="Style.html#M000599">capitalize</a> letters ;p TODO: With <a
|
91
|
+
href="Style.html#M000603">methodize</a>, is downcasing any but the first
|
92
92
|
letter really needed? Desipite Matz prefernce methods can have capitalized
|
93
93
|
letters.
|
94
94
|
</p>
|
@@ -98,28 +98,28 @@ letters.
|
|
98
98
|
|
99
99
|
<div class="sectiontitle">Methods</div>
|
100
100
|
<ul>
|
101
|
-
<li><a href="#
|
102
|
-
<li><a href="#
|
103
|
-
<li><a href="#
|
104
|
-
<li><a href="#
|
105
|
-
<li><a href="#
|
106
|
-
<li><a href="#
|
107
|
-
<li><a href="#
|
108
|
-
<li><a href="#
|
109
|
-
<li><a href="#
|
110
|
-
<li><a href="#
|
111
|
-
<li><a href="#
|
112
|
-
<li><a href="#
|
113
|
-
<li><a href="#
|
114
|
-
<li><a href="#
|
115
|
-
<li><a href="#
|
116
|
-
<li><a href="#
|
117
|
-
<li><a href="#
|
118
|
-
<li><a href="#
|
119
|
-
<li><a href="#
|
120
|
-
<li><a href="#
|
121
|
-
<li><a href="#
|
122
|
-
<li><a href="#
|
101
|
+
<li><a href="#M000607">camelize</a></li>
|
102
|
+
<li><a href="#M000599">capitalize</a></li>
|
103
|
+
<li><a href="#M000614">classify</a></li>
|
104
|
+
<li><a href="#M000610">dasherize</a></li>
|
105
|
+
<li><a href="#M000612">demodulize</a></li>
|
106
|
+
<li><a href="#M000595">downcase</a></li>
|
107
|
+
<li><a href="#M000615">foreign_key</a></li>
|
108
|
+
<li><a href="#M000611">humanize</a></li>
|
109
|
+
<li><a href="#M000605">lowercamel</a></li>
|
110
|
+
<li><a href="#M000596">lowercase</a></li>
|
111
|
+
<li><a href="#M000603">methodize</a></li>
|
112
|
+
<li><a href="#M000604">modulize</a></li>
|
113
|
+
<li><a href="#M000616">ordinalize</a></li>
|
114
|
+
<li><a href="#M000602">pathize</a></li>
|
115
|
+
<li><a href="#M000601">snakecase</a></li>
|
116
|
+
<li><a href="#M000613">tableize</a></li>
|
117
|
+
<li><a href="#M000600">titlecase</a></li>
|
118
|
+
<li><a href="#M000608">titleize</a></li>
|
119
|
+
<li><a href="#M000609">underscore</a></li>
|
120
|
+
<li><a href="#M000597">upcase</a></li>
|
121
|
+
<li><a href="#M000606">uppercamel</a></li>
|
122
|
+
<li><a href="#M000598">uppercase</a></li>
|
123
123
|
</ul>
|
124
124
|
|
125
125
|
<div class="sectiontitle">Included Modules</div>
|
@@ -134,17 +134,17 @@ letters.
|
|
134
134
|
<div class="sectiontitle">Public Class methods</div>
|
135
135
|
<div class="method">
|
136
136
|
<div class="title">
|
137
|
-
<a name="
|
137
|
+
<a name="M000607"></a><b>camelize</b>(snakecase_word, first_letter_in_uppercase = true)
|
138
138
|
</div>
|
139
139
|
<div class="description">
|
140
140
|
<p>
|
141
|
-
By default, <a href="Style.html#
|
141
|
+
By default, <a href="Style.html#M000607">camelize</a> converts strings to
|
142
142
|
UpperCamelCase. If the argument to <a
|
143
|
-
href="Style.html#
|
144
|
-
href="Style.html#
|
143
|
+
href="Style.html#M000607">camelize</a> is set to ":lower" then <a
|
144
|
+
href="Style.html#M000607">camelize</a> produces lowerCamelCase.
|
145
145
|
</p>
|
146
146
|
<p>
|
147
|
-
<a href="Style.html#
|
147
|
+
<a href="Style.html#M000607">camelize</a> will also convert ’/’
|
148
148
|
to ’::’ which is useful for converting paths to namespaces
|
149
149
|
</p>
|
150
150
|
<p>
|
@@ -158,8 +158,8 @@ Examples
|
|
158
158
|
</pre>
|
159
159
|
</div>
|
160
160
|
<div class="sourcecode">
|
161
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
162
|
-
<div id="
|
161
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000607_source')" id="l_M000607_source">show source</a> ]</p>
|
162
|
+
<div id="M000607_source" class="dyn-source">
|
163
163
|
<pre>
|
164
164
|
<span class="ruby-comment cmt"># File lib/more/facets/style.rb, line 180</span>
|
165
165
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">camelize</span>(<span class="ruby-identifier">snakecase_word</span>, <span class="ruby-identifier">first_letter_in_uppercase</span> = <span class="ruby-keyword kw">true</span>)
|
@@ -175,16 +175,16 @@ Examples
|
|
175
175
|
</div>
|
176
176
|
<div class="method">
|
177
177
|
<div class="title">
|
178
|
-
<a name="
|
178
|
+
<a name="M000599"></a><b>capitalize</b>(string)
|
179
179
|
</div>
|
180
180
|
<div class="description">
|
181
181
|
<p>
|
182
|
-
Standard <a href="Style.html#
|
182
|
+
Standard <a href="Style.html#M000599">capitalize</a> style.
|
183
183
|
</p>
|
184
184
|
</div>
|
185
185
|
<div class="sourcecode">
|
186
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
187
|
-
<div id="
|
186
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000599_source')" id="l_M000599_source">show source</a> ]</p>
|
187
|
+
<div id="M000599_source" class="dyn-source">
|
188
188
|
<pre>
|
189
189
|
<span class="ruby-comment cmt"># File lib/more/facets/style.rb, line 63</span>
|
190
190
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">capitalize</span>(<span class="ruby-identifier">string</span>)
|
@@ -196,13 +196,13 @@ Standard <a href="Style.html#M000589">capitalize</a> style.
|
|
196
196
|
</div>
|
197
197
|
<div class="method">
|
198
198
|
<div class="title">
|
199
|
-
<a name="
|
199
|
+
<a name="M000614"></a><b>classify</b>(table_name)
|
200
200
|
</div>
|
201
201
|
<div class="description">
|
202
202
|
<p>
|
203
203
|
Create a class name from a plural table name like Rails does for table
|
204
204
|
names to models. Note that this returns a string and not a Class. (To
|
205
|
-
convert to an actual class follow <a href="Style.html#
|
205
|
+
convert to an actual class follow <a href="Style.html#M000614">classify</a>
|
206
206
|
with constantize.)
|
207
207
|
</p>
|
208
208
|
<p>
|
@@ -220,8 +220,8 @@ Singular names are not handled correctly
|
|
220
220
|
</pre>
|
221
221
|
</div>
|
222
222
|
<div class="sourcecode">
|
223
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
224
|
-
<div id="
|
223
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000614_source')" id="l_M000614_source">show source</a> ]</p>
|
224
|
+
<div id="M000614_source" class="dyn-source">
|
225
225
|
<pre>
|
226
226
|
<span class="ruby-comment cmt"># File lib/more/facets/style.rb, line 269</span>
|
227
227
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">classify</span>(<span class="ruby-identifier">table_name</span>)
|
@@ -234,7 +234,7 @@ Singular names are not handled correctly
|
|
234
234
|
</div>
|
235
235
|
<div class="method">
|
236
236
|
<div class="title">
|
237
|
-
<a name="
|
237
|
+
<a name="M000610"></a><b>dasherize</b>(underscored_word)
|
238
238
|
</div>
|
239
239
|
<div class="description">
|
240
240
|
<p>
|
@@ -248,8 +248,8 @@ Example
|
|
248
248
|
</pre>
|
249
249
|
</div>
|
250
250
|
<div class="sourcecode">
|
251
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
252
|
-
<div id="
|
251
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000610_source')" id="l_M000610_source">show source</a> ]</p>
|
252
|
+
<div id="M000610_source" class="dyn-source">
|
253
253
|
<pre>
|
254
254
|
<span class="ruby-comment cmt"># File lib/more/facets/style.rb, line 225</span>
|
255
255
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dasherize</span>(<span class="ruby-identifier">underscored_word</span>)
|
@@ -261,7 +261,7 @@ Example
|
|
261
261
|
</div>
|
262
262
|
<div class="method">
|
263
263
|
<div class="title">
|
264
|
-
<a name="
|
264
|
+
<a name="M000612"></a><b>demodulize</b>(class_name_in_module)
|
265
265
|
</div>
|
266
266
|
<div class="description">
|
267
267
|
<p>
|
@@ -276,8 +276,8 @@ Examples
|
|
276
276
|
</pre>
|
277
277
|
</div>
|
278
278
|
<div class="sourcecode">
|
279
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
280
|
-
<div id="
|
279
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000612_source')" id="l_M000612_source">show source</a> ]</p>
|
280
|
+
<div id="M000612_source" class="dyn-source">
|
281
281
|
<pre>
|
282
282
|
<span class="ruby-comment cmt"># File lib/more/facets/style.rb, line 244</span>
|
283
283
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">demodulize</span>(<span class="ruby-identifier">class_name_in_module</span>)
|
@@ -289,16 +289,16 @@ Examples
|
|
289
289
|
</div>
|
290
290
|
<div class="method">
|
291
291
|
<div class="title">
|
292
|
-
<a name="
|
292
|
+
<a name="M000595"></a><b>downcase</b>(string)
|
293
293
|
</div>
|
294
294
|
<div class="description">
|
295
295
|
<p>
|
296
|
-
Standard <a href="Style.html#
|
296
|
+
Standard <a href="Style.html#M000595">downcase</a> style.
|
297
297
|
</p>
|
298
298
|
</div>
|
299
299
|
<div class="sourcecode">
|
300
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
301
|
-
<div id="
|
300
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000595_source')" id="l_M000595_source">show source</a> ]</p>
|
301
|
+
<div id="M000595_source" class="dyn-source">
|
302
302
|
<pre>
|
303
303
|
<span class="ruby-comment cmt"># File lib/more/facets/style.rb, line 39</span>
|
304
304
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">downcase</span>(<span class="ruby-identifier">string</span>)
|
@@ -310,7 +310,7 @@ Standard <a href="Style.html#M000585">downcase</a> style.
|
|
310
310
|
</div>
|
311
311
|
<div class="method">
|
312
312
|
<div class="title">
|
313
|
-
<a name="
|
313
|
+
<a name="M000615"></a><b>foreign_key</b>(class_name, separate_class_name_and_id_with_underscore = true)
|
314
314
|
</div>
|
315
315
|
<div class="description">
|
316
316
|
<p>
|
@@ -328,8 +328,8 @@ Examples
|
|
328
328
|
</pre>
|
329
329
|
</div>
|
330
330
|
<div class="sourcecode">
|
331
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
332
|
-
<div id="
|
331
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000615_source')" id="l_M000615_source">show source</a> ]</p>
|
332
|
+
<div id="M000615_source" class="dyn-source">
|
333
333
|
<pre>
|
334
334
|
<span class="ruby-comment cmt"># File lib/more/facets/style.rb, line 282</span>
|
335
335
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">foreign_key</span>(<span class="ruby-identifier">class_name</span>, <span class="ruby-identifier">separate_class_name_and_id_with_underscore</span> = <span class="ruby-keyword kw">true</span>)
|
@@ -341,12 +341,12 @@ Examples
|
|
341
341
|
</div>
|
342
342
|
<div class="method">
|
343
343
|
<div class="title">
|
344
|
-
<a name="
|
344
|
+
<a name="M000611"></a><b>humanize</b>(lower_case_and_underscored_word)
|
345
345
|
</div>
|
346
346
|
<div class="description">
|
347
347
|
<p>
|
348
348
|
Capitalizes the first word and turns underscores into spaces and strips
|
349
|
-
_id. Like <a href="Style.html#
|
349
|
+
_id. Like <a href="Style.html#M000608">titleize</a>, this is meant for
|
350
350
|
creating pretty output.
|
351
351
|
</p>
|
352
352
|
<p>
|
@@ -358,8 +358,8 @@ Examples
|
|
358
358
|
</pre>
|
359
359
|
</div>
|
360
360
|
<div class="sourcecode">
|
361
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
362
|
-
<div id="
|
361
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000611_source')" id="l_M000611_source">show source</a> ]</p>
|
362
|
+
<div id="M000611_source" class="dyn-source">
|
363
363
|
<pre>
|
364
364
|
<span class="ruby-comment cmt"># File lib/more/facets/style.rb, line 235</span>
|
365
365
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">humanize</span>(<span class="ruby-identifier">lower_case_and_underscored_word</span>)
|
@@ -371,11 +371,11 @@ Examples
|
|
371
371
|
</div>
|
372
372
|
<div class="method">
|
373
373
|
<div class="title">
|
374
|
-
<a name="
|
374
|
+
<a name="M000605"></a><b>lowercamel</b>(snakecase_word)
|
375
375
|
</div>
|
376
376
|
<div class="sourcecode">
|
377
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
378
|
-
<div id="
|
377
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000605_source')" id="l_M000605_source">show source</a> ]</p>
|
378
|
+
<div id="M000605_source" class="dyn-source">
|
379
379
|
<pre>
|
380
380
|
<span class="ruby-comment cmt"># File lib/more/facets/style.rb, line 154</span>
|
381
381
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">lowercamel</span>(<span class="ruby-identifier">snakecase_word</span>)
|
@@ -387,16 +387,16 @@ Examples
|
|
387
387
|
</div>
|
388
388
|
<div class="method">
|
389
389
|
<div class="title">
|
390
|
-
<a name="
|
390
|
+
<a name="M000596"></a><b>lowercase</b>(string)
|
391
391
|
</div>
|
392
392
|
<div class="description">
|
393
393
|
<p>
|
394
|
-
Same as <a href="Style.html#
|
394
|
+
Same as <a href="Style.html#M000595">downcase</a> style.
|
395
395
|
</p>
|
396
396
|
</div>
|
397
397
|
<div class="sourcecode">
|
398
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
399
|
-
<div id="
|
398
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000596_source')" id="l_M000596_source">show source</a> ]</p>
|
399
|
+
<div id="M000596_source" class="dyn-source">
|
400
400
|
<pre>
|
401
401
|
<span class="ruby-comment cmt"># File lib/more/facets/style.rb, line 45</span>
|
402
402
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">lowercase</span>(<span class="ruby-identifier">string</span>)
|
@@ -408,7 +408,7 @@ Same as <a href="Style.html#M000585">downcase</a> style.
|
|
408
408
|
</div>
|
409
409
|
<div class="method">
|
410
410
|
<div class="title">
|
411
|
-
<a name="
|
411
|
+
<a name="M000603"></a><b>methodize</b>(module_name)
|
412
412
|
</div>
|
413
413
|
<div class="description">
|
414
414
|
<p>
|
@@ -424,13 +424,13 @@ Examples
|
|
424
424
|
Style.methodize("MyModule::MyClass") #=> "my_module__my_class"
|
425
425
|
</pre>
|
426
426
|
<p>
|
427
|
-
See also <a href="Style.html#
|
428
|
-
href="Style.html#
|
427
|
+
See also <a href="Style.html#M000604">modulize</a>, <a
|
428
|
+
href="Style.html#M000602">pathize</a>
|
429
429
|
</p>
|
430
430
|
</div>
|
431
431
|
<div class="sourcecode">
|
432
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
433
|
-
<div id="
|
432
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000603_source')" id="l_M000603_source">show source</a> ]</p>
|
433
|
+
<div id="M000603_source" class="dyn-source">
|
434
434
|
<pre>
|
435
435
|
<span class="ruby-comment cmt"># File lib/more/facets/style.rb, line 126</span>
|
436
436
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">methodize</span>(<span class="ruby-identifier">module_name</span>)
|
@@ -448,7 +448,7 @@ href="Style.html#M000592">pathize</a>
|
|
448
448
|
</div>
|
449
449
|
<div class="method">
|
450
450
|
<div class="title">
|
451
|
-
<a name="
|
451
|
+
<a name="M000604"></a><b>modulize</b>(pathized_or_methodized_string)
|
452
452
|
</div>
|
453
453
|
<div class="description">
|
454
454
|
<p>
|
@@ -464,13 +464,13 @@ Examples
|
|
464
464
|
Style.modulize("my_module__my_path") #=> "MyModule::MyPath"
|
465
465
|
</pre>
|
466
466
|
<p>
|
467
|
-
See also <a href="Style.html#
|
468
|
-
href="Style.html#
|
467
|
+
See also <a href="Style.html#M000603">methodize</a>, <a
|
468
|
+
href="Style.html#M000602">pathize</a>
|
469
469
|
</p>
|
470
470
|
</div>
|
471
471
|
<div class="sourcecode">
|
472
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
473
|
-
<div id="
|
472
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000604_source')" id="l_M000604_source">show source</a> ]</p>
|
473
|
+
<div id="M000604_source" class="dyn-source">
|
474
474
|
<pre>
|
475
475
|
<span class="ruby-comment cmt"># File lib/more/facets/style.rb, line 146</span>
|
476
476
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">modulize</span>(<span class="ruby-identifier">pathized_or_methodized_string</span>)
|
@@ -486,7 +486,7 @@ href="Style.html#M000592">pathize</a>
|
|
486
486
|
</div>
|
487
487
|
<div class="method">
|
488
488
|
<div class="title">
|
489
|
-
<a name="
|
489
|
+
<a name="M000616"></a><b>ordinalize</b>(number_string)
|
490
490
|
</div>
|
491
491
|
<div class="description">
|
492
492
|
<p>
|
@@ -504,8 +504,8 @@ Examples
|
|
504
504
|
</pre>
|
505
505
|
</div>
|
506
506
|
<div class="sourcecode">
|
507
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
508
|
-
<div id="
|
507
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000616_source')" id="l_M000616_source">show source</a> ]</p>
|
508
|
+
<div id="M000616_source" class="dyn-source">
|
509
509
|
<pre>
|
510
510
|
<span class="ruby-comment cmt"># File lib/more/facets/style.rb, line 294</span>
|
511
511
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">ordinalize</span>(<span class="ruby-identifier">number_string</span>)
|
@@ -532,7 +532,7 @@ Examples
|
|
532
532
|
</div>
|
533
533
|
<div class="method">
|
534
534
|
<div class="title">
|
535
|
-
<a name="
|
535
|
+
<a name="M000602"></a><b>pathize</b>(module_name)
|
536
536
|
</div>
|
537
537
|
<div class="description">
|
538
538
|
<p>
|
@@ -554,13 +554,13 @@ TODO:
|
|
554
554
|
* Make sure it is revertible
|
555
555
|
</pre>
|
556
556
|
<p>
|
557
|
-
See also <a href="Style.html#
|
558
|
-
href="Style.html#
|
557
|
+
See also <a href="Style.html#M000604">modulize</a>, <a
|
558
|
+
href="Style.html#M000603">methodize</a>
|
559
559
|
</p>
|
560
560
|
</div>
|
561
561
|
<div class="sourcecode">
|
562
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
563
|
-
<div id="
|
562
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000602_source')" id="l_M000602_source">show source</a> ]</p>
|
563
|
+
<div id="M000602_source" class="dyn-source">
|
564
564
|
<pre>
|
565
565
|
<span class="ruby-comment cmt"># File lib/more/facets/style.rb, line 106</span>
|
566
566
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">pathize</span>(<span class="ruby-identifier">module_name</span>)
|
@@ -578,11 +578,11 @@ href="Style.html#M000593">methodize</a>
|
|
578
578
|
</div>
|
579
579
|
<div class="method">
|
580
580
|
<div class="title">
|
581
|
-
<a name="
|
581
|
+
<a name="M000601"></a><b>snakecase</b>(camel_cased_word)
|
582
582
|
</div>
|
583
583
|
<div class="description">
|
584
584
|
<p>
|
585
|
-
The reverse of <tt><a href="Style.html#
|
585
|
+
The reverse of <tt><a href="Style.html#M000607">camelize</a></tt>. Makes an
|
586
586
|
underscored form from the expression in the string.
|
587
587
|
</p>
|
588
588
|
<p>
|
@@ -597,8 +597,8 @@ Examples
|
|
597
597
|
</pre>
|
598
598
|
</div>
|
599
599
|
<div class="sourcecode">
|
600
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
601
|
-
<div id="
|
600
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000601_source')" id="l_M000601_source">show source</a> ]</p>
|
601
|
+
<div id="M000601_source" class="dyn-source">
|
602
602
|
<pre>
|
603
603
|
<span class="ruby-comment cmt"># File lib/more/facets/style.rb, line 84</span>
|
604
604
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">snakecase</span>(<span class="ruby-identifier">camel_cased_word</span>)
|
@@ -614,7 +614,7 @@ Examples
|
|
614
614
|
</div>
|
615
615
|
<div class="method">
|
616
616
|
<div class="title">
|
617
|
-
<a name="
|
617
|
+
<a name="M000613"></a><b>tableize</b>(class_name)
|
618
618
|
</div>
|
619
619
|
<div class="description">
|
620
620
|
<p>
|
@@ -631,8 +631,8 @@ Examples
|
|
631
631
|
</pre>
|
632
632
|
</div>
|
633
633
|
<div class="sourcecode">
|
634
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
635
|
-
<div id="
|
634
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000613_source')" id="l_M000613_source">show source</a> ]</p>
|
635
|
+
<div id="M000613_source" class="dyn-source">
|
636
636
|
<pre>
|
637
637
|
<span class="ruby-comment cmt"># File lib/more/facets/style.rb, line 255</span>
|
638
638
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">tableize</span>(<span class="ruby-identifier">class_name</span>)
|
@@ -644,7 +644,7 @@ Examples
|
|
644
644
|
</div>
|
645
645
|
<div class="method">
|
646
646
|
<div class="title">
|
647
|
-
<a name="
|
647
|
+
<a name="M000600"></a><b>titlecase</b>(phrase)
|
648
648
|
</div>
|
649
649
|
<div class="description">
|
650
650
|
<p>
|
@@ -656,8 +656,8 @@ Titlecase
|
|
656
656
|
</pre>
|
657
657
|
</div>
|
658
658
|
<div class="sourcecode">
|
659
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
660
|
-
<div id="
|
659
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000600_source')" id="l_M000600_source">show source</a> ]</p>
|
660
|
+
<div id="M000600_source" class="dyn-source">
|
661
661
|
<pre>
|
662
662
|
<span class="ruby-comment cmt"># File lib/more/facets/style.rb, line 72</span>
|
663
663
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">titlecase</span>(<span class="ruby-identifier">phrase</span>)
|
@@ -669,7 +669,7 @@ Titlecase
|
|
669
669
|
</div>
|
670
670
|
<div class="method">
|
671
671
|
<div class="title">
|
672
|
-
<a name="
|
672
|
+
<a name="M000608"></a><b>titleize</b>(word)
|
673
673
|
</div>
|
674
674
|
<div class="description">
|
675
675
|
<p>
|
@@ -678,8 +678,8 @@ create a nicer looking title. Titleize is meant for creating pretty output.
|
|
678
678
|
<a href="../It.html">It</a> is not used in the Rails internals.
|
679
679
|
</p>
|
680
680
|
<p>
|
681
|
-
<a href="Style.html#
|
682
|
-
href="Style.html#
|
681
|
+
<a href="Style.html#M000608">titleize</a> is also aliased as as <a
|
682
|
+
href="Style.html#M000600">titlecase</a>
|
683
683
|
</p>
|
684
684
|
<p>
|
685
685
|
Examples
|
@@ -690,8 +690,8 @@ Examples
|
|
690
690
|
</pre>
|
691
691
|
</div>
|
692
692
|
<div class="sourcecode">
|
693
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
694
|
-
<div id="
|
693
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000608_source')" id="l_M000608_source">show source</a> ]</p>
|
694
|
+
<div id="M000608_source" class="dyn-source">
|
695
695
|
<pre>
|
696
696
|
<span class="ruby-comment cmt"># File lib/more/facets/style.rb, line 202</span>
|
697
697
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">titleize</span>(<span class="ruby-identifier">word</span>)
|
@@ -703,12 +703,12 @@ Examples
|
|
703
703
|
</div>
|
704
704
|
<div class="method">
|
705
705
|
<div class="title">
|
706
|
-
<a name="
|
706
|
+
<a name="M000609"></a><b>underscore</b>(camel_cased_word)
|
707
707
|
</div>
|
708
708
|
<div class="description">
|
709
709
|
<p>
|
710
|
-
The reverse of <tt><a href="Style.html#
|
711
|
-
underscored, <a href="Style.html#
|
710
|
+
The reverse of <tt><a href="Style.html#M000607">camelize</a></tt>. Makes an
|
711
|
+
underscored, <a href="Style.html#M000596">lowercase</a> form from the
|
712
712
|
expression in the string.
|
713
713
|
</p>
|
714
714
|
<p>
|
@@ -723,8 +723,8 @@ Examples
|
|
723
723
|
</pre>
|
724
724
|
</div>
|
725
725
|
<div class="sourcecode">
|
726
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
727
|
-
<div id="
|
726
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000609_source')" id="l_M000609_source">show source</a> ]</p>
|
727
|
+
<div id="M000609_source" class="dyn-source">
|
728
728
|
<pre>
|
729
729
|
<span class="ruby-comment cmt"># File lib/more/facets/style.rb, line 213</span>
|
730
730
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">underscore</span>(<span class="ruby-identifier">camel_cased_word</span>)
|
@@ -740,16 +740,16 @@ Examples
|
|
740
740
|
</div>
|
741
741
|
<div class="method">
|
742
742
|
<div class="title">
|
743
|
-
<a name="
|
743
|
+
<a name="M000597"></a><b>upcase</b>(string)
|
744
744
|
</div>
|
745
745
|
<div class="description">
|
746
746
|
<p>
|
747
|
-
Standard <a href="Style.html#
|
747
|
+
Standard <a href="Style.html#M000597">upcase</a> style.
|
748
748
|
</p>
|
749
749
|
</div>
|
750
750
|
<div class="sourcecode">
|
751
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
752
|
-
<div id="
|
751
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000597_source')" id="l_M000597_source">show source</a> ]</p>
|
752
|
+
<div id="M000597_source" class="dyn-source">
|
753
753
|
<pre>
|
754
754
|
<span class="ruby-comment cmt"># File lib/more/facets/style.rb, line 51</span>
|
755
755
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">upcase</span>(<span class="ruby-identifier">string</span>)
|
@@ -761,11 +761,11 @@ Standard <a href="Style.html#M000587">upcase</a> style.
|
|
761
761
|
</div>
|
762
762
|
<div class="method">
|
763
763
|
<div class="title">
|
764
|
-
<a name="
|
764
|
+
<a name="M000606"></a><b>uppercamel</b>(snakecase_word)
|
765
765
|
</div>
|
766
766
|
<div class="sourcecode">
|
767
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
768
|
-
<div id="
|
767
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000606_source')" id="l_M000606_source">show source</a> ]</p>
|
768
|
+
<div id="M000606_source" class="dyn-source">
|
769
769
|
<pre>
|
770
770
|
<span class="ruby-comment cmt"># File lib/more/facets/style.rb, line 158</span>
|
771
771
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">uppercamel</span>(<span class="ruby-identifier">snakecase_word</span>)
|
@@ -777,16 +777,16 @@ Standard <a href="Style.html#M000587">upcase</a> style.
|
|
777
777
|
</div>
|
778
778
|
<div class="method">
|
779
779
|
<div class="title">
|
780
|
-
<a name="
|
780
|
+
<a name="M000598"></a><b>uppercase</b>(string)
|
781
781
|
</div>
|
782
782
|
<div class="description">
|
783
783
|
<p>
|
784
|
-
Same as <a href="Style.html#
|
784
|
+
Same as <a href="Style.html#M000597">upcase</a> style.
|
785
785
|
</p>
|
786
786
|
</div>
|
787
787
|
<div class="sourcecode">
|
788
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
789
|
-
<div id="
|
788
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000598_source')" id="l_M000598_source">show source</a> ]</p>
|
789
|
+
<div id="M000598_source" class="dyn-source">
|
790
790
|
<pre>
|
791
791
|
<span class="ruby-comment cmt"># File lib/more/facets/style.rb, line 57</span>
|
792
792
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">uppercase</span>(<span class="ruby-identifier">string</span>)
|