formattedstring 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. data/Rakefile +1 -1
  2. data/doc/classes/Enumerable.html +10 -10
  3. data/doc/classes/Enumerable.src/M000026.html +6 -19
  4. data/doc/classes/Enumerable.src/M000027.html +34 -0
  5. data/doc/classes/FormattedString/Formats/Xml.html +16 -1
  6. data/doc/classes/FormattedString/Formats/Xml.src/M000004.html +3 -34
  7. data/doc/classes/FormattedString/Formats/Xml.src/M000005.html +49 -0
  8. data/doc/classes/Inflector/Inflections.html +40 -40
  9. data/doc/classes/Inflector/Inflections.src/M000020.html +4 -4
  10. data/doc/classes/Inflector/Inflections.src/M000021.html +4 -4
  11. data/doc/classes/Inflector/Inflections.src/M000022.html +4 -12
  12. data/doc/classes/Inflector/Inflections.src/M000023.html +12 -4
  13. data/doc/classes/Inflector/Inflections.src/M000024.html +4 -9
  14. data/doc/classes/Inflector/Inflections.src/M000025.html +23 -0
  15. data/doc/classes/Inflector.html +82 -82
  16. data/doc/classes/Inflector.src/M000006.html +6 -9
  17. data/doc/classes/Inflector.src/M000007.html +5 -5
  18. data/doc/classes/Inflector.src/M000008.html +9 -6
  19. data/doc/classes/Inflector.src/M000009.html +8 -4
  20. data/doc/classes/Inflector.src/M000010.html +4 -8
  21. data/doc/classes/Inflector.src/M000011.html +8 -4
  22. data/doc/classes/Inflector.src/M000012.html +4 -4
  23. data/doc/classes/Inflector.src/M000013.html +4 -4
  24. data/doc/classes/Inflector.src/M000014.html +4 -4
  25. data/doc/classes/Inflector.src/M000015.html +4 -5
  26. data/doc/classes/Inflector.src/M000016.html +5 -4
  27. data/doc/classes/Inflector.src/M000017.html +4 -8
  28. data/doc/classes/Inflector.src/M000018.html +7 -12
  29. data/doc/classes/Inflector.src/M000019.html +27 -0
  30. data/doc/created.rid +1 -1
  31. data/doc/files/lib/formatted_string/formats/xml_rb.html +1 -1
  32. data/doc/fr_method_index.html +24 -23
  33. data/lib/formatted_string/formats/xml.rb +4 -0
  34. metadata +6 -5
  35. data/doc/classes/Enumerable.src/M000025.html +0 -21
  36. data/doc/classes/Inflector/Inflections.src/M000019.html +0 -18
  37. data/doc/classes/Inflector.src/M000005.html +0 -22
@@ -5,14 +5,14 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>singular (Inflector::Inflections)</title>
8
+ <title>plural (Inflector::Inflections)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/inflector.rb, line 39</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">singular</span>(<span class="ruby-identifier">rule</span>, <span class="ruby-identifier">replacement</span>)
15
- <span class="ruby-ivar">@singulars</span>.<span class="ruby-identifier">insert</span>(<span class="ruby-value">0</span>, [<span class="ruby-identifier">rule</span>, <span class="ruby-identifier">replacement</span>])
13
+ <pre><span class="ruby-comment cmt"># File lib/inflector.rb, line 33</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">plural</span>(<span class="ruby-identifier">rule</span>, <span class="ruby-identifier">replacement</span>)
15
+ <span class="ruby-ivar">@plurals</span>.<span class="ruby-identifier">insert</span>(<span class="ruby-value">0</span>, [<span class="ruby-identifier">rule</span>, <span class="ruby-identifier">replacement</span>])
16
16
  <span class="ruby-keyword kw">end</span></pre>
17
17
  </body>
18
18
  </html>
@@ -5,22 +5,14 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>irregular (Inflector::Inflections)</title>
8
+ <title>singular (Inflector::Inflections)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/inflector.rb, line 49</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">irregular</span>(<span class="ruby-identifier">singular</span>, <span class="ruby-identifier">plural</span>)
15
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">singular</span>[<span class="ruby-value">0</span>,<span class="ruby-value">1</span>].<span class="ruby-identifier">upcase</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">plural</span>[<span class="ruby-value">0</span>,<span class="ruby-value">1</span>].<span class="ruby-identifier">upcase</span>
16
- <span class="ruby-identifier">plural</span>(<span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">&quot;(#{singular[0,1]})#{singular[1..-1]}$&quot;</span>, <span class="ruby-value str">&quot;i&quot;</span>), <span class="ruby-value str">'\1'</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">plural</span>[<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>])
17
- <span class="ruby-identifier">singular</span>(<span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">&quot;(#{plural[0,1]})#{plural[1..-1]}$&quot;</span>, <span class="ruby-value str">&quot;i&quot;</span>), <span class="ruby-value str">'\1'</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">singular</span>[<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>])
18
- <span class="ruby-keyword kw">else</span>
19
- <span class="ruby-identifier">plural</span>(<span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">&quot;#{singular[0,1].upcase}(?i)#{singular[1..-1]}$&quot;</span>), <span class="ruby-identifier">plural</span>[<span class="ruby-value">0</span>,<span class="ruby-value">1</span>].<span class="ruby-identifier">upcase</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">plural</span>[<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>])
20
- <span class="ruby-identifier">plural</span>(<span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">&quot;#{singular[0,1].downcase}(?i)#{singular[1..-1]}$&quot;</span>), <span class="ruby-identifier">plural</span>[<span class="ruby-value">0</span>,<span class="ruby-value">1</span>].<span class="ruby-identifier">downcase</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">plural</span>[<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>])
21
- <span class="ruby-identifier">singular</span>(<span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">&quot;#{plural[0,1].upcase}(?i)#{plural[1..-1]}$&quot;</span>), <span class="ruby-identifier">singular</span>[<span class="ruby-value">0</span>,<span class="ruby-value">1</span>].<span class="ruby-identifier">upcase</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">singular</span>[<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>])
22
- <span class="ruby-identifier">singular</span>(<span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">&quot;#{plural[0,1].downcase}(?i)#{plural[1..-1]}$&quot;</span>), <span class="ruby-identifier">singular</span>[<span class="ruby-value">0</span>,<span class="ruby-value">1</span>].<span class="ruby-identifier">downcase</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">singular</span>[<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>])
23
- <span class="ruby-keyword kw">end</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/inflector.rb, line 39</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">singular</span>(<span class="ruby-identifier">rule</span>, <span class="ruby-identifier">replacement</span>)
15
+ <span class="ruby-ivar">@singulars</span>.<span class="ruby-identifier">insert</span>(<span class="ruby-value">0</span>, [<span class="ruby-identifier">rule</span>, <span class="ruby-identifier">replacement</span>])
24
16
  <span class="ruby-keyword kw">end</span></pre>
25
17
  </body>
26
18
  </html>
@@ -5,14 +5,22 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>uncountable (Inflector::Inflections)</title>
8
+ <title>irregular (Inflector::Inflections)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/inflector.rb, line 67</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">uncountable</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">words</span>)
15
- (<span class="ruby-ivar">@uncountables</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">words</span>).<span class="ruby-identifier">flatten!</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/inflector.rb, line 49</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">irregular</span>(<span class="ruby-identifier">singular</span>, <span class="ruby-identifier">plural</span>)
15
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">singular</span>[<span class="ruby-value">0</span>,<span class="ruby-value">1</span>].<span class="ruby-identifier">upcase</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">plural</span>[<span class="ruby-value">0</span>,<span class="ruby-value">1</span>].<span class="ruby-identifier">upcase</span>
16
+ <span class="ruby-identifier">plural</span>(<span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">&quot;(#{singular[0,1]})#{singular[1..-1]}$&quot;</span>, <span class="ruby-value str">&quot;i&quot;</span>), <span class="ruby-value str">'\1'</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">plural</span>[<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>])
17
+ <span class="ruby-identifier">singular</span>(<span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">&quot;(#{plural[0,1]})#{plural[1..-1]}$&quot;</span>, <span class="ruby-value str">&quot;i&quot;</span>), <span class="ruby-value str">'\1'</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">singular</span>[<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>])
18
+ <span class="ruby-keyword kw">else</span>
19
+ <span class="ruby-identifier">plural</span>(<span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">&quot;#{singular[0,1].upcase}(?i)#{singular[1..-1]}$&quot;</span>), <span class="ruby-identifier">plural</span>[<span class="ruby-value">0</span>,<span class="ruby-value">1</span>].<span class="ruby-identifier">upcase</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">plural</span>[<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>])
20
+ <span class="ruby-identifier">plural</span>(<span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">&quot;#{singular[0,1].downcase}(?i)#{singular[1..-1]}$&quot;</span>), <span class="ruby-identifier">plural</span>[<span class="ruby-value">0</span>,<span class="ruby-value">1</span>].<span class="ruby-identifier">downcase</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">plural</span>[<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>])
21
+ <span class="ruby-identifier">singular</span>(<span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">&quot;#{plural[0,1].upcase}(?i)#{plural[1..-1]}$&quot;</span>), <span class="ruby-identifier">singular</span>[<span class="ruby-value">0</span>,<span class="ruby-value">1</span>].<span class="ruby-identifier">upcase</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">singular</span>[<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>])
22
+ <span class="ruby-identifier">singular</span>(<span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">&quot;#{plural[0,1].downcase}(?i)#{plural[1..-1]}$&quot;</span>), <span class="ruby-identifier">singular</span>[<span class="ruby-value">0</span>,<span class="ruby-value">1</span>].<span class="ruby-identifier">downcase</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">singular</span>[<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>])
23
+ <span class="ruby-keyword kw">end</span>
16
24
  <span class="ruby-keyword kw">end</span></pre>
17
25
  </body>
18
26
  </html>
@@ -5,19 +5,14 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>clear (Inflector::Inflections)</title>
8
+ <title>uncountable (Inflector::Inflections)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/inflector.rb, line 77</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clear</span>(<span class="ruby-identifier">scope</span> = <span class="ruby-identifier">:all</span>)
15
- <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">scope</span>
16
- <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:all</span>
17
- <span class="ruby-ivar">@plurals</span>, <span class="ruby-ivar">@singulars</span>, <span class="ruby-ivar">@uncountables</span> = [], [], []
18
- <span class="ruby-keyword kw">else</span>
19
- <span class="ruby-identifier">instance_variable_set</span> <span class="ruby-node">&quot;@#{scope}&quot;</span>, []
20
- <span class="ruby-keyword kw">end</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/inflector.rb, line 67</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">uncountable</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">words</span>)
15
+ (<span class="ruby-ivar">@uncountables</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">words</span>).<span class="ruby-identifier">flatten!</span>
21
16
  <span class="ruby-keyword kw">end</span></pre>
22
17
  </body>
23
18
  </html>
@@ -0,0 +1,23 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>clear (Inflector::Inflections)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/inflector.rb, line 77</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clear</span>(<span class="ruby-identifier">scope</span> = <span class="ruby-identifier">:all</span>)
15
+ <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">scope</span>
16
+ <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:all</span>
17
+ <span class="ruby-ivar">@plurals</span>, <span class="ruby-ivar">@singulars</span>, <span class="ruby-ivar">@uncountables</span> = [], [], []
18
+ <span class="ruby-keyword kw">else</span>
19
+ <span class="ruby-identifier">instance_variable_set</span> <span class="ruby-node">&quot;@#{scope}&quot;</span>, []
20
+ <span class="ruby-keyword kw">end</span>
21
+ <span class="ruby-keyword kw">end</span></pre>
22
+ </body>
23
+ </html>
@@ -77,7 +77,7 @@
77
77
  The <a href="Inflector.html">Inflector</a> transforms words from singular
78
78
  to plural, class names to table names, modularized class names to ones
79
79
  without, and class names to foreign keys. The default <a
80
- href="Inflector.html#M000005">inflections</a> for pluralization,
80
+ href="Inflector.html#M000006">inflections</a> for pluralization,
81
81
  singularization, and uncountable words are kept in inflections.rb.
82
82
  </p>
83
83
 
@@ -90,20 +90,20 @@ singularization, and uncountable words are kept in inflections.rb.
90
90
  <h3 class="section-bar">Methods</h3>
91
91
 
92
92
  <div class="name-list">
93
- <a href="#M000008">camelize</a>&nbsp;&nbsp;
94
- <a href="#M000015">classify</a>&nbsp;&nbsp;
95
- <a href="#M000017">constantize</a>&nbsp;&nbsp;
96
- <a href="#M000011">dasherize</a>&nbsp;&nbsp;
97
- <a href="#M000013">demodulize</a>&nbsp;&nbsp;
98
- <a href="#M000016">foreign_key</a>&nbsp;&nbsp;
99
- <a href="#M000012">humanize</a>&nbsp;&nbsp;
100
- <a href="#M000005">inflections</a>&nbsp;&nbsp;
101
- <a href="#M000018">ordinalize</a>&nbsp;&nbsp;
102
- <a href="#M000006">pluralize</a>&nbsp;&nbsp;
103
- <a href="#M000007">singularize</a>&nbsp;&nbsp;
104
- <a href="#M000014">tableize</a>&nbsp;&nbsp;
105
- <a href="#M000009">titleize</a>&nbsp;&nbsp;
106
- <a href="#M000010">underscore</a>&nbsp;&nbsp;
93
+ <a href="#M000009">camelize</a>&nbsp;&nbsp;
94
+ <a href="#M000016">classify</a>&nbsp;&nbsp;
95
+ <a href="#M000018">constantize</a>&nbsp;&nbsp;
96
+ <a href="#M000012">dasherize</a>&nbsp;&nbsp;
97
+ <a href="#M000014">demodulize</a>&nbsp;&nbsp;
98
+ <a href="#M000017">foreign_key</a>&nbsp;&nbsp;
99
+ <a href="#M000013">humanize</a>&nbsp;&nbsp;
100
+ <a href="#M000006">inflections</a>&nbsp;&nbsp;
101
+ <a href="#M000019">ordinalize</a>&nbsp;&nbsp;
102
+ <a href="#M000007">pluralize</a>&nbsp;&nbsp;
103
+ <a href="#M000008">singularize</a>&nbsp;&nbsp;
104
+ <a href="#M000015">tableize</a>&nbsp;&nbsp;
105
+ <a href="#M000010">titleize</a>&nbsp;&nbsp;
106
+ <a href="#M000011">underscore</a>&nbsp;&nbsp;
107
107
  </div>
108
108
  </div>
109
109
 
@@ -131,25 +131,25 @@ singularization, and uncountable words are kept in inflections.rb.
131
131
  <div id="methods">
132
132
  <h3 class="section-bar">Public Instance methods</h3>
133
133
 
134
- <div id="method-M000008" class="method-detail">
135
- <a name="M000008"></a>
134
+ <div id="method-M000009" class="method-detail">
135
+ <a name="M000009"></a>
136
136
 
137
137
  <div class="method-heading">
138
- <a href="Inflector.src/M000008.html" target="Code" class="method-signature"
139
- onclick="popupCode('Inflector.src/M000008.html');return false;">
138
+ <a href="Inflector.src/M000009.html" target="Code" class="method-signature"
139
+ onclick="popupCode('Inflector.src/M000009.html');return false;">
140
140
  <span class="method-name">camelize</span><span class="method-args">(lower_case_and_underscored_word, first_letter_in_uppercase = true)</span>
141
141
  </a>
142
142
  </div>
143
143
 
144
144
  <div class="method-description">
145
145
  <p>
146
- By default, <a href="Inflector.html#M000008">camelize</a> converts strings
146
+ By default, <a href="Inflector.html#M000009">camelize</a> converts strings
147
147
  to UpperCamelCase. If the argument to <a
148
- href="Inflector.html#M000008">camelize</a> is set to &quot;:lower&quot;
149
- then <a href="Inflector.html#M000008">camelize</a> produces lowerCamelCase.
148
+ href="Inflector.html#M000009">camelize</a> is set to &quot;:lower&quot;
149
+ then <a href="Inflector.html#M000009">camelize</a> produces lowerCamelCase.
150
150
  </p>
151
151
  <p>
152
- <a href="Inflector.html#M000008">camelize</a> will also convert
152
+ <a href="Inflector.html#M000009">camelize</a> will also convert
153
153
  &#8217;/&#8217; to &#8217;::&#8217; which is useful for converting paths to
154
154
  namespaces
155
155
  </p>
@@ -165,12 +165,12 @@ Examples
165
165
  </div>
166
166
  </div>
167
167
 
168
- <div id="method-M000015" class="method-detail">
169
- <a name="M000015"></a>
168
+ <div id="method-M000016" class="method-detail">
169
+ <a name="M000016"></a>
170
170
 
171
171
  <div class="method-heading">
172
- <a href="Inflector.src/M000015.html" target="Code" class="method-signature"
173
- onclick="popupCode('Inflector.src/M000015.html');return false;">
172
+ <a href="Inflector.src/M000016.html" target="Code" class="method-signature"
173
+ onclick="popupCode('Inflector.src/M000016.html');return false;">
174
174
  <span class="method-name">classify</span><span class="method-args">(table_name)</span>
175
175
  </a>
176
176
  </div>
@@ -179,8 +179,8 @@ Examples
179
179
  <p>
180
180
  Create a class name from a table name like Rails does for table names to
181
181
  models. Note that this returns a string and not a Class. (To convert to an
182
- actual class follow <a href="Inflector.html#M000015">classify</a> with <a
183
- href="Inflector.html#M000017">constantize</a>.)
182
+ actual class follow <a href="Inflector.html#M000016">classify</a> with <a
183
+ href="Inflector.html#M000018">constantize</a>.)
184
184
  </p>
185
185
  <p>
186
186
  Examples
@@ -192,12 +192,12 @@ Examples
192
192
  </div>
193
193
  </div>
194
194
 
195
- <div id="method-M000017" class="method-detail">
196
- <a name="M000017"></a>
195
+ <div id="method-M000018" class="method-detail">
196
+ <a name="M000018"></a>
197
197
 
198
198
  <div class="method-heading">
199
- <a href="Inflector.src/M000017.html" target="Code" class="method-signature"
200
- onclick="popupCode('Inflector.src/M000017.html');return false;">
199
+ <a href="Inflector.src/M000018.html" target="Code" class="method-signature"
200
+ onclick="popupCode('Inflector.src/M000018.html');return false;">
201
201
  <span class="method-name">constantize</span><span class="method-args">(camel_cased_word)</span>
202
202
  </a>
203
203
  </div>
@@ -218,12 +218,12 @@ Examples
218
218
  </div>
219
219
  </div>
220
220
 
221
- <div id="method-M000011" class="method-detail">
222
- <a name="M000011"></a>
221
+ <div id="method-M000012" class="method-detail">
222
+ <a name="M000012"></a>
223
223
 
224
224
  <div class="method-heading">
225
- <a href="Inflector.src/M000011.html" target="Code" class="method-signature"
226
- onclick="popupCode('Inflector.src/M000011.html');return false;">
225
+ <a href="Inflector.src/M000012.html" target="Code" class="method-signature"
226
+ onclick="popupCode('Inflector.src/M000012.html');return false;">
227
227
  <span class="method-name">dasherize</span><span class="method-args">(underscored_word)</span>
228
228
  </a>
229
229
  </div>
@@ -241,12 +241,12 @@ Example
241
241
  </div>
242
242
  </div>
243
243
 
244
- <div id="method-M000013" class="method-detail">
245
- <a name="M000013"></a>
244
+ <div id="method-M000014" class="method-detail">
245
+ <a name="M000014"></a>
246
246
 
247
247
  <div class="method-heading">
248
- <a href="Inflector.src/M000013.html" target="Code" class="method-signature"
249
- onclick="popupCode('Inflector.src/M000013.html');return false;">
248
+ <a href="Inflector.src/M000014.html" target="Code" class="method-signature"
249
+ onclick="popupCode('Inflector.src/M000014.html');return false;">
250
250
  <span class="method-name">demodulize</span><span class="method-args">(class_name_in_module)</span>
251
251
  </a>
252
252
  </div>
@@ -265,12 +265,12 @@ Examples
265
265
  </div>
266
266
  </div>
267
267
 
268
- <div id="method-M000016" class="method-detail">
269
- <a name="M000016"></a>
268
+ <div id="method-M000017" class="method-detail">
269
+ <a name="M000017"></a>
270
270
 
271
271
  <div class="method-heading">
272
- <a href="Inflector.src/M000016.html" target="Code" class="method-signature"
273
- onclick="popupCode('Inflector.src/M000016.html');return false;">
272
+ <a href="Inflector.src/M000017.html" target="Code" class="method-signature"
273
+ onclick="popupCode('Inflector.src/M000017.html');return false;">
274
274
  <span class="method-name">foreign_key</span><span class="method-args">(class_name, separate_class_name_and_id_with_underscore = true)</span>
275
275
  </a>
276
276
  </div>
@@ -292,12 +292,12 @@ Examples
292
292
  </div>
293
293
  </div>
294
294
 
295
- <div id="method-M000012" class="method-detail">
296
- <a name="M000012"></a>
295
+ <div id="method-M000013" class="method-detail">
296
+ <a name="M000013"></a>
297
297
 
298
298
  <div class="method-heading">
299
- <a href="Inflector.src/M000012.html" target="Code" class="method-signature"
300
- onclick="popupCode('Inflector.src/M000012.html');return false;">
299
+ <a href="Inflector.src/M000013.html" target="Code" class="method-signature"
300
+ onclick="popupCode('Inflector.src/M000013.html');return false;">
301
301
  <span class="method-name">humanize</span><span class="method-args">(lower_case_and_underscored_word)</span>
302
302
  </a>
303
303
  </div>
@@ -305,7 +305,7 @@ Examples
305
305
  <div class="method-description">
306
306
  <p>
307
307
  Capitalizes the first word and turns underscores into spaces and strips
308
- _id. Like <a href="Inflector.html#M000009">titleize</a>, this is meant for
308
+ _id. Like <a href="Inflector.html#M000010">titleize</a>, this is meant for
309
309
  creating pretty output.
310
310
  </p>
311
311
  <p>
@@ -318,12 +318,12 @@ Examples
318
318
  </div>
319
319
  </div>
320
320
 
321
- <div id="method-M000005" class="method-detail">
322
- <a name="M000005"></a>
321
+ <div id="method-M000006" class="method-detail">
322
+ <a name="M000006"></a>
323
323
 
324
324
  <div class="method-heading">
325
- <a href="Inflector.src/M000005.html" target="Code" class="method-signature"
326
- onclick="popupCode('Inflector.src/M000005.html');return false;">
325
+ <a href="Inflector.src/M000006.html" target="Code" class="method-signature"
326
+ onclick="popupCode('Inflector.src/M000006.html');return false;">
327
327
  <span class="method-name">inflections</span><span class="method-args">() {|Inflections.instance| ...}</span>
328
328
  </a>
329
329
  </div>
@@ -332,12 +332,12 @@ Examples
332
332
  </div>
333
333
  </div>
334
334
 
335
- <div id="method-M000018" class="method-detail">
336
- <a name="M000018"></a>
335
+ <div id="method-M000019" class="method-detail">
336
+ <a name="M000019"></a>
337
337
 
338
338
  <div class="method-heading">
339
- <a href="Inflector.src/M000018.html" target="Code" class="method-signature"
340
- onclick="popupCode('Inflector.src/M000018.html');return false;">
339
+ <a href="Inflector.src/M000019.html" target="Code" class="method-signature"
340
+ onclick="popupCode('Inflector.src/M000019.html');return false;">
341
341
  <span class="method-name">ordinalize</span><span class="method-args">(number)</span>
342
342
  </a>
343
343
  </div>
@@ -359,12 +359,12 @@ Examples
359
359
  </div>
360
360
  </div>
361
361
 
362
- <div id="method-M000006" class="method-detail">
363
- <a name="M000006"></a>
362
+ <div id="method-M000007" class="method-detail">
363
+ <a name="M000007"></a>
364
364
 
365
365
  <div class="method-heading">
366
- <a href="Inflector.src/M000006.html" target="Code" class="method-signature"
367
- onclick="popupCode('Inflector.src/M000006.html');return false;">
366
+ <a href="Inflector.src/M000007.html" target="Code" class="method-signature"
367
+ onclick="popupCode('Inflector.src/M000007.html');return false;">
368
368
  <span class="method-name">pluralize</span><span class="method-args">(word)</span>
369
369
  </a>
370
370
  </div>
@@ -387,19 +387,19 @@ Examples
387
387
  </div>
388
388
  </div>
389
389
 
390
- <div id="method-M000007" class="method-detail">
391
- <a name="M000007"></a>
390
+ <div id="method-M000008" class="method-detail">
391
+ <a name="M000008"></a>
392
392
 
393
393
  <div class="method-heading">
394
- <a href="Inflector.src/M000007.html" target="Code" class="method-signature"
395
- onclick="popupCode('Inflector.src/M000007.html');return false;">
394
+ <a href="Inflector.src/M000008.html" target="Code" class="method-signature"
395
+ onclick="popupCode('Inflector.src/M000008.html');return false;">
396
396
  <span class="method-name">singularize</span><span class="method-args">(word)</span>
397
397
  </a>
398
398
  </div>
399
399
 
400
400
  <div class="method-description">
401
401
  <p>
402
- The reverse of <a href="Inflector.html#M000006">pluralize</a>, returns the
402
+ The reverse of <a href="Inflector.html#M000007">pluralize</a>, returns the
403
403
  singular form of a word in a string.
404
404
  </p>
405
405
  <p>
@@ -416,12 +416,12 @@ Examples
416
416
  </div>
417
417
  </div>
418
418
 
419
- <div id="method-M000014" class="method-detail">
420
- <a name="M000014"></a>
419
+ <div id="method-M000015" class="method-detail">
420
+ <a name="M000015"></a>
421
421
 
422
422
  <div class="method-heading">
423
- <a href="Inflector.src/M000014.html" target="Code" class="method-signature"
424
- onclick="popupCode('Inflector.src/M000014.html');return false;">
423
+ <a href="Inflector.src/M000015.html" target="Code" class="method-signature"
424
+ onclick="popupCode('Inflector.src/M000015.html');return false;">
425
425
  <span class="method-name">tableize</span><span class="method-args">(class_name)</span>
426
426
  </a>
427
427
  </div>
@@ -429,7 +429,7 @@ Examples
429
429
  <div class="method-description">
430
430
  <p>
431
431
  Create the name of a table like Rails does for models to table names. This
432
- method uses the <a href="Inflector.html#M000006">pluralize</a> method on
432
+ method uses the <a href="Inflector.html#M000007">pluralize</a> method on
433
433
  the last word in the string.
434
434
  </p>
435
435
  <p>
@@ -443,12 +443,12 @@ Examples
443
443
  </div>
444
444
  </div>
445
445
 
446
- <div id="method-M000009" class="method-detail">
447
- <a name="M000009"></a>
446
+ <div id="method-M000010" class="method-detail">
447
+ <a name="M000010"></a>
448
448
 
449
449
  <div class="method-heading">
450
- <a href="Inflector.src/M000009.html" target="Code" class="method-signature"
451
- onclick="popupCode('Inflector.src/M000009.html');return false;">
450
+ <a href="Inflector.src/M000010.html" target="Code" class="method-signature"
451
+ onclick="popupCode('Inflector.src/M000010.html');return false;">
452
452
  <span class="method-name">titleize</span><span class="method-args">(word)</span>
453
453
  </a>
454
454
  </div>
@@ -460,7 +460,7 @@ create a nicer looking title. Titleize is meant for creating pretty output.
460
460
  It is not used in the Rails internals.
461
461
  </p>
462
462
  <p>
463
- <a href="Inflector.html#M000009">titleize</a> is also aliased as as
463
+ <a href="Inflector.html#M000010">titleize</a> is also aliased as as
464
464
  titlecase
465
465
  </p>
466
466
  <p>
@@ -473,19 +473,19 @@ Examples
473
473
  </div>
474
474
  </div>
475
475
 
476
- <div id="method-M000010" class="method-detail">
477
- <a name="M000010"></a>
476
+ <div id="method-M000011" class="method-detail">
477
+ <a name="M000011"></a>
478
478
 
479
479
  <div class="method-heading">
480
- <a href="Inflector.src/M000010.html" target="Code" class="method-signature"
481
- onclick="popupCode('Inflector.src/M000010.html');return false;">
480
+ <a href="Inflector.src/M000011.html" target="Code" class="method-signature"
481
+ onclick="popupCode('Inflector.src/M000011.html');return false;">
482
482
  <span class="method-name">underscore</span><span class="method-args">(camel_cased_word)</span>
483
483
  </a>
484
484
  </div>
485
485
 
486
486
  <div class="method-description">
487
487
  <p>
488
- The reverse of <tt><a href="Inflector.html#M000008">camelize</a></tt>.
488
+ The reverse of <tt><a href="Inflector.html#M000009">camelize</a></tt>.
489
489
  Makes an underscored form from the expression in the string.
490
490
  </p>
491
491
  <p>