mack-facets 0.7.0.1 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- data/doc/classes/Array.html +60 -60
- data/doc/classes/Class.html +18 -18
- data/doc/classes/Hash.html +18 -18
- data/doc/classes/Kernel.html +40 -12
- data/doc/classes/Mack/Facets/DateTime.html +168 -0
- data/doc/classes/Mack/Facets.html +111 -0
- data/doc/classes/Mack/Utils/BlankSlate.html +113 -0
- data/doc/classes/Mack/Utils/Inflector.html +47 -47
- data/doc/classes/Mack/Utils/RegistryList.html +74 -74
- data/doc/classes/Mack/Utils/RegistryMap.html +71 -71
- data/doc/classes/Math.html +18 -18
- data/doc/classes/Module.html +12 -12
- data/doc/classes/NilClass.html +6 -6
- data/doc/classes/Object.html +68 -68
- data/doc/classes/String.html +185 -172
- data/doc/classes/Symbol.html +6 -6
- data/doc/classes/Time.html +204 -0
- data/doc/created.rid +1 -1
- data/doc/files/README.html +1 -1
- data/doc/files/lib/mack-facets/english_extensions/inflect_rb.html +1 -1
- data/doc/files/lib/mack-facets/english_extensions/numerals_rb.html +1 -1
- data/doc/files/lib/mack-facets/extensions/array_rb.html +1 -1
- data/doc/files/lib/mack-facets/extensions/class_rb.html +1 -1
- data/doc/files/lib/mack-facets/extensions/date_time_rb.html +129 -0
- data/doc/files/lib/mack-facets/extensions/hash_rb.html +1 -1
- data/doc/files/lib/mack-facets/extensions/kernel_rb.html +1 -1
- data/doc/files/lib/mack-facets/extensions/math_rb.html +1 -1
- data/doc/files/lib/mack-facets/extensions/module_rb.html +1 -1
- data/doc/files/lib/mack-facets/extensions/nil_class_rb.html +1 -1
- data/doc/files/lib/mack-facets/extensions/object_rb.html +1 -1
- data/doc/files/lib/mack-facets/extensions/string_rb.html +1 -1
- data/doc/files/lib/mack-facets/extensions/symbol_rb.html +1 -1
- data/doc/files/lib/mack-facets/extensions/time_rb.html +108 -0
- data/doc/files/lib/mack-facets/utils/blank_slate_rb.html +101 -0
- data/doc/files/lib/mack-facets/utils/inflections_rb.html +1 -1
- data/doc/files/lib/mack-facets/utils/inflector_rb.html +1 -1
- data/doc/files/lib/mack-facets/utils/options_merger_rb.html +1 -1
- data/doc/files/lib/mack-facets/utils/registry_list_rb.html +1 -1
- data/doc/files/lib/mack-facets/utils/registry_map_rb.html +1 -1
- data/doc/files/lib/mack-facets_rb.html +3 -3
- data/doc/fr_class_index.html +2 -0
- data/doc/fr_file_index.html +1 -0
- data/doc/fr_method_index.html +75 -71
- data/lib/mack-facets/extensions/date_time.rb +36 -0
- data/lib/mack-facets/extensions/kernel.rb +5 -0
- data/lib/mack-facets/extensions/string.rb +2 -0
- data/lib/mack-facets/extensions/time.rb +5 -0
- data/lib/mack-facets.rb +3 -4
- metadata +12 -4
@@ -0,0 +1,168 @@
|
|
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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>Module: Mack::Facets::DateTime</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="classHeader">
|
50
|
+
<table class="header-table">
|
51
|
+
<tr class="top-aligned-row">
|
52
|
+
<td><strong>Module</strong></td>
|
53
|
+
<td class="class-name-in-header">Mack::Facets::DateTime</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../../../files/lib/mack-facets/extensions/date_time_rb.html">
|
59
|
+
lib/mack-facets/extensions/date_time.rb
|
60
|
+
</a>
|
61
|
+
<br />
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
|
65
|
+
</table>
|
66
|
+
</div>
|
67
|
+
<!-- banner header -->
|
68
|
+
|
69
|
+
<div id="bodyContent">
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
<div id="contextContent">
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
</div>
|
78
|
+
|
79
|
+
<div id="method-list">
|
80
|
+
<h3 class="section-bar">Methods</h3>
|
81
|
+
|
82
|
+
<div class="name-list">
|
83
|
+
<a href="#M000071">add_seconds</a>
|
84
|
+
<a href="#M000072">minus_seconds</a>
|
85
|
+
</div>
|
86
|
+
</div>
|
87
|
+
|
88
|
+
</div>
|
89
|
+
|
90
|
+
|
91
|
+
<!-- if includes -->
|
92
|
+
|
93
|
+
<div id="section">
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
<!-- if method_list -->
|
103
|
+
<div id="methods">
|
104
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
105
|
+
|
106
|
+
<div id="method-M000071" class="method-detail">
|
107
|
+
<a name="M000071"></a>
|
108
|
+
|
109
|
+
<div class="method-heading">
|
110
|
+
<a href="#M000071" class="method-signature">
|
111
|
+
<span class="method-name">add_seconds</span><span class="method-args">(secs)</span>
|
112
|
+
</a>
|
113
|
+
</div>
|
114
|
+
|
115
|
+
<div class="method-description">
|
116
|
+
<p><a class="source-toggle" href="#"
|
117
|
+
onclick="toggleCode('M000071-source');return false;">[Source]</a></p>
|
118
|
+
<div class="method-source-code" id="M000071-source">
|
119
|
+
<pre>
|
120
|
+
<span class="ruby-comment cmt"># File lib/mack-facets/extensions/date_time.rb, line 24</span>
|
121
|
+
24: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_seconds</span>(<span class="ruby-identifier">secs</span>)
|
122
|
+
25: <span class="ruby-keyword kw">self</span> <span class="ruby-operator">+</span> (<span class="ruby-identifier">secs</span>.<span class="ruby-identifier">to_f</span> <span class="ruby-operator">/</span> <span class="ruby-value">1</span>.<span class="ruby-identifier">day</span>)
|
123
|
+
26: <span class="ruby-keyword kw">end</span>
|
124
|
+
</pre>
|
125
|
+
</div>
|
126
|
+
</div>
|
127
|
+
</div>
|
128
|
+
|
129
|
+
<div id="method-M000072" class="method-detail">
|
130
|
+
<a name="M000072"></a>
|
131
|
+
|
132
|
+
<div class="method-heading">
|
133
|
+
<a href="#M000072" class="method-signature">
|
134
|
+
<span class="method-name">minus_seconds</span><span class="method-args">(secs)</span>
|
135
|
+
</a>
|
136
|
+
</div>
|
137
|
+
|
138
|
+
<div class="method-description">
|
139
|
+
<p>
|
140
|
+
Subtracts seconds and returns a new <a href="DateTime.html">DateTime</a>
|
141
|
+
object
|
142
|
+
</p>
|
143
|
+
<p><a class="source-toggle" href="#"
|
144
|
+
onclick="toggleCode('M000072-source');return false;">[Source]</a></p>
|
145
|
+
<div class="method-source-code" id="M000072-source">
|
146
|
+
<pre>
|
147
|
+
<span class="ruby-comment cmt"># File lib/mack-facets/extensions/date_time.rb, line 29</span>
|
148
|
+
29: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">minus_seconds</span>(<span class="ruby-identifier">secs</span>)
|
149
|
+
30: <span class="ruby-keyword kw">self</span> <span class="ruby-operator">-</span> (<span class="ruby-identifier">secs</span>.<span class="ruby-identifier">to_f</span> <span class="ruby-operator">/</span> <span class="ruby-value">1</span>.<span class="ruby-identifier">day</span>)
|
150
|
+
31: <span class="ruby-keyword kw">end</span>
|
151
|
+
</pre>
|
152
|
+
</div>
|
153
|
+
</div>
|
154
|
+
</div>
|
155
|
+
|
156
|
+
|
157
|
+
</div>
|
158
|
+
|
159
|
+
|
160
|
+
</div>
|
161
|
+
|
162
|
+
|
163
|
+
<div id="validator-badges">
|
164
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
165
|
+
</div>
|
166
|
+
|
167
|
+
</body>
|
168
|
+
</html>
|
@@ -0,0 +1,111 @@
|
|
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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>Module: Mack::Facets</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="classHeader">
|
50
|
+
<table class="header-table">
|
51
|
+
<tr class="top-aligned-row">
|
52
|
+
<td><strong>Module</strong></td>
|
53
|
+
<td class="class-name-in-header">Mack::Facets</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../../files/lib/mack-facets/extensions/date_time_rb.html">
|
59
|
+
lib/mack-facets/extensions/date_time.rb
|
60
|
+
</a>
|
61
|
+
<br />
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
|
65
|
+
</table>
|
66
|
+
</div>
|
67
|
+
<!-- banner header -->
|
68
|
+
|
69
|
+
<div id="bodyContent">
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
<div id="contextContent">
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
</div>
|
78
|
+
|
79
|
+
|
80
|
+
</div>
|
81
|
+
|
82
|
+
|
83
|
+
<!-- if includes -->
|
84
|
+
|
85
|
+
<div id="section">
|
86
|
+
|
87
|
+
<div id="class-list">
|
88
|
+
<h3 class="section-bar">Classes and Modules</h3>
|
89
|
+
|
90
|
+
Module <a href="Facets/DateTime.html" class="link">Mack::Facets::DateTime</a><br />
|
91
|
+
|
92
|
+
</div>
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
<!-- if method_list -->
|
101
|
+
|
102
|
+
|
103
|
+
</div>
|
104
|
+
|
105
|
+
|
106
|
+
<div id="validator-badges">
|
107
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
108
|
+
</div>
|
109
|
+
|
110
|
+
</body>
|
111
|
+
</html>
|
@@ -0,0 +1,113 @@
|
|
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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>Class: Mack::Utils::BlankSlate</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="classHeader">
|
50
|
+
<table class="header-table">
|
51
|
+
<tr class="top-aligned-row">
|
52
|
+
<td><strong>Class</strong></td>
|
53
|
+
<td class="class-name-in-header">Mack::Utils::BlankSlate</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../../../files/lib/mack-facets/utils/blank_slate_rb.html">
|
59
|
+
lib/mack-facets/utils/blank_slate.rb
|
60
|
+
</a>
|
61
|
+
<br />
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
|
65
|
+
<tr class="top-aligned-row">
|
66
|
+
<td><strong>Parent:</strong></td>
|
67
|
+
<td>
|
68
|
+
<a href="../../Object.html">
|
69
|
+
Object
|
70
|
+
</a>
|
71
|
+
</td>
|
72
|
+
</tr>
|
73
|
+
</table>
|
74
|
+
</div>
|
75
|
+
<!-- banner header -->
|
76
|
+
|
77
|
+
<div id="bodyContent">
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
<div id="contextContent">
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
</div>
|
86
|
+
|
87
|
+
|
88
|
+
</div>
|
89
|
+
|
90
|
+
|
91
|
+
<!-- if includes -->
|
92
|
+
|
93
|
+
<div id="section">
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
<!-- if method_list -->
|
103
|
+
|
104
|
+
|
105
|
+
</div>
|
106
|
+
|
107
|
+
|
108
|
+
<div id="validator-badges">
|
109
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
110
|
+
</div>
|
111
|
+
|
112
|
+
</body>
|
113
|
+
</html>
|
@@ -83,16 +83,16 @@
|
|
83
83
|
<div id="description">
|
84
84
|
<p>
|
85
85
|
This class is used to deal with inflection strings. This means taken a
|
86
|
-
string and make it <a href="Inflector.html#
|
87
|
-
href="Inflector.html#
|
86
|
+
string and make it <a href="Inflector.html#M000054">plural</a>, or <a
|
87
|
+
href="Inflector.html#M000055">singular</a>, etc… Inflection rules can
|
88
88
|
be added very easy, and are checked from the bottom up. This means that the
|
89
89
|
last rule is the first rule to be matched. The exception to this, kind of,
|
90
|
-
is ‘<a href="Inflector.html#
|
90
|
+
is ‘<a href="Inflector.html#M000056">irregular</a>’ and
|
91
91
|
‘uncountable’ rules. The ‘uncountable’ rules are
|
92
92
|
always checked first, then the ‘<a
|
93
|
-
href="Inflector.html#
|
94
|
-
either the ‘<a href="Inflector.html#
|
95
|
-
‘<a href="Inflector.html#
|
93
|
+
href="Inflector.html#M000056">irregular</a>’ rules, and finally
|
94
|
+
either the ‘<a href="Inflector.html#M000055">singular</a>’ or
|
95
|
+
‘<a href="Inflector.html#M000054">plural</a>’ rules, depending
|
96
96
|
on what you‘re trying to do. Within each of these sets of rules, the
|
97
97
|
last rule in is the first rule matched.
|
98
98
|
</p>
|
@@ -123,12 +123,12 @@ Example:
|
|
123
123
|
<h3 class="section-bar">Methods</h3>
|
124
124
|
|
125
125
|
<div class="name-list">
|
126
|
-
<a href="#
|
127
|
-
<a href="#
|
128
|
-
<a href="#
|
129
|
-
<a href="#
|
130
|
-
<a href="#
|
131
|
-
<a href="#
|
126
|
+
<a href="#M000059">inflections</a>
|
127
|
+
<a href="#M000056">irregular</a>
|
128
|
+
<a href="#M000054">plural</a>
|
129
|
+
<a href="#M000058">pluralize</a>
|
130
|
+
<a href="#M000055">singular</a>
|
131
|
+
<a href="#M000057">singularize</a>
|
132
132
|
</div>
|
133
133
|
</div>
|
134
134
|
|
@@ -157,11 +157,11 @@ Example:
|
|
157
157
|
<div id="methods">
|
158
158
|
<h3 class="section-bar">Public Class methods</h3>
|
159
159
|
|
160
|
-
<div id="method-
|
161
|
-
<a name="
|
160
|
+
<div id="method-M000059" class="method-detail">
|
161
|
+
<a name="M000059"></a>
|
162
162
|
|
163
163
|
<div class="method-heading">
|
164
|
-
<a href="#
|
164
|
+
<a href="#M000059" class="method-signature">
|
165
165
|
<span class="method-name">inflections</span><span class="method-args">() {|Mack::Utils::Inflector.instance| ...}</span>
|
166
166
|
</a>
|
167
167
|
</div>
|
@@ -171,8 +171,8 @@ Example:
|
|
171
171
|
Yields up Mack::Utils::Inflector.instance
|
172
172
|
</p>
|
173
173
|
<p><a class="source-toggle" href="#"
|
174
|
-
onclick="toggleCode('
|
175
|
-
<div class="method-source-code" id="
|
174
|
+
onclick="toggleCode('M000059-source');return false;">[Source]</a></p>
|
175
|
+
<div class="method-source-code" id="M000059-source">
|
176
176
|
<pre>
|
177
177
|
<span class="ruby-comment cmt"># File lib/mack-facets/utils/inflector.rb, line 87</span>
|
178
178
|
87: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inflections</span>
|
@@ -189,18 +189,18 @@ Yields up Mack::Utils::Inflector.instance
|
|
189
189
|
|
190
190
|
<h3 class="section-bar">Public Instance methods</h3>
|
191
191
|
|
192
|
-
<div id="method-
|
193
|
-
<a name="
|
192
|
+
<div id="method-M000056" class="method-detail">
|
193
|
+
<a name="M000056"></a>
|
194
194
|
|
195
195
|
<div class="method-heading">
|
196
|
-
<a href="#
|
196
|
+
<a href="#M000056" class="method-signature">
|
197
197
|
<span class="method-name">irregular</span><span class="method-args">(rule, replacement)</span>
|
198
198
|
</a>
|
199
199
|
</div>
|
200
200
|
|
201
201
|
<div class="method-description">
|
202
202
|
<p>
|
203
|
-
Adds a <a href="Inflector.html#
|
203
|
+
Adds a <a href="Inflector.html#M000056">irregular</a> rule to the system.
|
204
204
|
</p>
|
205
205
|
<p>
|
206
206
|
Example:
|
@@ -212,8 +212,8 @@ Example:
|
|
212
212
|
end
|
213
213
|
</pre>
|
214
214
|
<p><a class="source-toggle" href="#"
|
215
|
-
onclick="toggleCode('
|
216
|
-
<div class="method-source-code" id="
|
215
|
+
onclick="toggleCode('M000056-source');return false;">[Source]</a></p>
|
216
|
+
<div class="method-source-code" id="M000056-source">
|
217
217
|
<pre>
|
218
218
|
<span class="ruby-comment cmt"># File lib/mack-facets/utils/inflector.rb, line 58</span>
|
219
219
|
58: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">irregular</span>(<span class="ruby-identifier">rule</span>, <span class="ruby-identifier">replacement</span>)
|
@@ -225,18 +225,18 @@ Example:
|
|
225
225
|
</div>
|
226
226
|
</div>
|
227
227
|
|
228
|
-
<div id="method-
|
229
|
-
<a name="
|
228
|
+
<div id="method-M000054" class="method-detail">
|
229
|
+
<a name="M000054"></a>
|
230
230
|
|
231
231
|
<div class="method-heading">
|
232
|
-
<a href="#
|
232
|
+
<a href="#M000054" class="method-signature">
|
233
233
|
<span class="method-name">plural</span><span class="method-args">(rule, replacement)</span>
|
234
234
|
</a>
|
235
235
|
</div>
|
236
236
|
|
237
237
|
<div class="method-description">
|
238
238
|
<p>
|
239
|
-
Adds a <a href="Inflector.html#
|
239
|
+
Adds a <a href="Inflector.html#M000054">plural</a> rule to the system.
|
240
240
|
</p>
|
241
241
|
<p>
|
242
242
|
Example:
|
@@ -249,8 +249,8 @@ Example:
|
|
249
249
|
end
|
250
250
|
</pre>
|
251
251
|
<p><a class="source-toggle" href="#"
|
252
|
-
onclick="toggleCode('
|
253
|
-
<div class="method-source-code" id="
|
252
|
+
onclick="toggleCode('M000054-source');return false;">[Source]</a></p>
|
253
|
+
<div class="method-source-code" id="M000054-source">
|
254
254
|
<pre>
|
255
255
|
<span class="ruby-comment cmt"># File lib/mack-facets/utils/inflector.rb, line 35</span>
|
256
256
|
35: <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>)
|
@@ -261,18 +261,18 @@ Example:
|
|
261
261
|
</div>
|
262
262
|
</div>
|
263
263
|
|
264
|
-
<div id="method-
|
265
|
-
<a name="
|
264
|
+
<div id="method-M000058" class="method-detail">
|
265
|
+
<a name="M000058"></a>
|
266
266
|
|
267
267
|
<div class="method-heading">
|
268
|
-
<a href="#
|
268
|
+
<a href="#M000058" class="method-signature">
|
269
269
|
<span class="method-name">pluralize</span><span class="method-args">(word)</span>
|
270
270
|
</a>
|
271
271
|
</div>
|
272
272
|
|
273
273
|
<div class="method-description">
|
274
274
|
<p>
|
275
|
-
Returns the <a href="Inflector.html#
|
275
|
+
Returns the <a href="Inflector.html#M000055">singular</a> version of the
|
276
276
|
word, if possible.
|
277
277
|
</p>
|
278
278
|
<p>
|
@@ -284,8 +284,8 @@ Examples:
|
|
284
284
|
Mack::Utils::Inflector.instance.pluralize("boat") # => "boats"
|
285
285
|
</pre>
|
286
286
|
<p><a class="source-toggle" href="#"
|
287
|
-
onclick="toggleCode('
|
288
|
-
<div class="method-source-code" id="
|
287
|
+
onclick="toggleCode('M000058-source');return false;">[Source]</a></p>
|
288
|
+
<div class="method-source-code" id="M000058-source">
|
289
289
|
<pre>
|
290
290
|
<span class="ruby-comment cmt"># File lib/mack-facets/utils/inflector.rb, line 79</span>
|
291
291
|
79: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pluralize</span>(<span class="ruby-identifier">word</span>)
|
@@ -296,18 +296,18 @@ Examples:
|
|
296
296
|
</div>
|
297
297
|
</div>
|
298
298
|
|
299
|
-
<div id="method-
|
300
|
-
<a name="
|
299
|
+
<div id="method-M000055" class="method-detail">
|
300
|
+
<a name="M000055"></a>
|
301
301
|
|
302
302
|
<div class="method-heading">
|
303
|
-
<a href="#
|
303
|
+
<a href="#M000055" class="method-signature">
|
304
304
|
<span class="method-name">singular</span><span class="method-args">(rule, replacement)</span>
|
305
305
|
</a>
|
306
306
|
</div>
|
307
307
|
|
308
308
|
<div class="method-description">
|
309
309
|
<p>
|
310
|
-
Adds a <a href="Inflector.html#
|
310
|
+
Adds a <a href="Inflector.html#M000055">singular</a> rule to the system.
|
311
311
|
</p>
|
312
312
|
<p>
|
313
313
|
Example:
|
@@ -320,8 +320,8 @@ Example:
|
|
320
320
|
end
|
321
321
|
</pre>
|
322
322
|
<p><a class="source-toggle" href="#"
|
323
|
-
onclick="toggleCode('
|
324
|
-
<div class="method-source-code" id="
|
323
|
+
onclick="toggleCode('M000055-source');return false;">[Source]</a></p>
|
324
|
+
<div class="method-source-code" id="M000055-source">
|
325
325
|
<pre>
|
326
326
|
<span class="ruby-comment cmt"># File lib/mack-facets/utils/inflector.rb, line 47</span>
|
327
327
|
47: <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>)
|
@@ -332,18 +332,18 @@ Example:
|
|
332
332
|
</div>
|
333
333
|
</div>
|
334
334
|
|
335
|
-
<div id="method-
|
336
|
-
<a name="
|
335
|
+
<div id="method-M000057" class="method-detail">
|
336
|
+
<a name="M000057"></a>
|
337
337
|
|
338
338
|
<div class="method-heading">
|
339
|
-
<a href="#
|
339
|
+
<a href="#M000057" class="method-signature">
|
340
340
|
<span class="method-name">singularize</span><span class="method-args">(word)</span>
|
341
341
|
</a>
|
342
342
|
</div>
|
343
343
|
|
344
344
|
<div class="method-description">
|
345
345
|
<p>
|
346
|
-
Returns the <a href="Inflector.html#
|
346
|
+
Returns the <a href="Inflector.html#M000055">singular</a> version of the
|
347
347
|
word, if possible.
|
348
348
|
</p>
|
349
349
|
<p>
|
@@ -355,8 +355,8 @@ Examples:
|
|
355
355
|
Mack::Utils::Inflector.instance.singularize("boats") # => "boat"
|
356
356
|
</pre>
|
357
357
|
<p><a class="source-toggle" href="#"
|
358
|
-
onclick="toggleCode('
|
359
|
-
<div class="method-source-code" id="
|
358
|
+
onclick="toggleCode('M000057-source');return false;">[Source]</a></p>
|
359
|
+
<div class="method-source-code" id="M000057-source">
|
360
360
|
<pre>
|
361
361
|
<span class="ruby-comment cmt"># File lib/mack-facets/utils/inflector.rb, line 69</span>
|
362
362
|
69: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">singularize</span>(<span class="ruby-identifier">word</span>)
|