mack-facets 0.7.1 → 0.7.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. metadata +2 -47
  2. data/doc/classes/Array.html +0 -408
  3. data/doc/classes/Class.html +0 -233
  4. data/doc/classes/Hash.html +0 -233
  5. data/doc/classes/Kernel.html +0 -212
  6. data/doc/classes/Mack/Facets/DateTime.html +0 -168
  7. data/doc/classes/Mack/Facets.html +0 -111
  8. data/doc/classes/Mack/Utils/BlankSlate.html +0 -113
  9. data/doc/classes/Mack/Utils/Inflector.html +0 -382
  10. data/doc/classes/Mack/Utils/RegistryList.html +0 -469
  11. data/doc/classes/Mack/Utils/RegistryMap.html +0 -479
  12. data/doc/classes/Math.html +0 -188
  13. data/doc/classes/Module.html +0 -203
  14. data/doc/classes/NilClass.html +0 -148
  15. data/doc/classes/Object.html +0 -558
  16. data/doc/classes/String.html +0 -464
  17. data/doc/classes/Symbol.html +0 -148
  18. data/doc/classes/Time.html +0 -204
  19. data/doc/created.rid +0 -1
  20. data/doc/files/README.html +0 -112
  21. data/doc/files/lib/mack-facets/english_extensions/inflect_rb.html +0 -101
  22. data/doc/files/lib/mack-facets/english_extensions/numerals_rb.html +0 -101
  23. data/doc/files/lib/mack-facets/extensions/array_rb.html +0 -101
  24. data/doc/files/lib/mack-facets/extensions/class_rb.html +0 -101
  25. data/doc/files/lib/mack-facets/extensions/date_time_rb.html +0 -129
  26. data/doc/files/lib/mack-facets/extensions/hash_rb.html +0 -108
  27. data/doc/files/lib/mack-facets/extensions/kernel_rb.html +0 -109
  28. data/doc/files/lib/mack-facets/extensions/math_rb.html +0 -101
  29. data/doc/files/lib/mack-facets/extensions/module_rb.html +0 -101
  30. data/doc/files/lib/mack-facets/extensions/nil_class_rb.html +0 -101
  31. data/doc/files/lib/mack-facets/extensions/object_rb.html +0 -101
  32. data/doc/files/lib/mack-facets/extensions/string_rb.html +0 -101
  33. data/doc/files/lib/mack-facets/extensions/symbol_rb.html +0 -101
  34. data/doc/files/lib/mack-facets/extensions/time_rb.html +0 -108
  35. data/doc/files/lib/mack-facets/utils/blank_slate_rb.html +0 -101
  36. data/doc/files/lib/mack-facets/utils/inflections_rb.html +0 -101
  37. data/doc/files/lib/mack-facets/utils/inflector_rb.html +0 -108
  38. data/doc/files/lib/mack-facets/utils/options_merger_rb.html +0 -101
  39. data/doc/files/lib/mack-facets/utils/registry_list_rb.html +0 -108
  40. data/doc/files/lib/mack-facets/utils/registry_map_rb.html +0 -108
  41. data/doc/files/lib/mack-facets_rb.html +0 -124
  42. data/doc/fr_class_index.html +0 -43
  43. data/doc/fr_file_index.html +0 -48
  44. data/doc/fr_method_index.html +0 -104
  45. data/doc/index.html +0 -24
  46. data/doc/rdoc-style.css +0 -208
@@ -1,212 +0,0 @@
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: Kernel</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">Kernel</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/kernel_rb.html">
59
- lib/mack-facets/extensions/kernel.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="#M000073">pp_to_s</a>&nbsp;&nbsp;
84
- <a href="#M000074">retryable</a>&nbsp;&nbsp;
85
- <a href="#M000075">ruby?</a>&nbsp;&nbsp;
86
- </div>
87
- </div>
88
-
89
- </div>
90
-
91
-
92
- <!-- if includes -->
93
-
94
- <div id="section">
95
-
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
- <!-- if method_list -->
104
- <div id="methods">
105
- <h3 class="section-bar">Public Instance methods</h3>
106
-
107
- <div id="method-M000073" class="method-detail">
108
- <a name="M000073"></a>
109
-
110
- <div class="method-heading">
111
- <a href="#M000073" class="method-signature">
112
- <span class="method-name">pp_to_s</span><span class="method-args">(object)</span>
113
- </a>
114
- </div>
115
-
116
- <div class="method-description">
117
- <p><a class="source-toggle" href="#"
118
- onclick="toggleCode('M000073-source');return false;">[Source]</a></p>
119
- <div class="method-source-code" id="M000073-source">
120
- <pre>
121
- <span class="ruby-comment cmt"># File lib/mack-facets/extensions/kernel.rb, line 6</span>
122
- 6: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pp_to_s</span>(<span class="ruby-identifier">object</span>)
123
- 7: <span class="ruby-identifier">pp_out</span> = <span class="ruby-constant">StringIO</span>.<span class="ruby-identifier">new</span>
124
- 8: <span class="ruby-constant">PP</span>.<span class="ruby-identifier">pp</span>(<span class="ruby-identifier">object</span>,<span class="ruby-identifier">pp_out</span>)
125
- 9: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">pp_out</span>.<span class="ruby-identifier">string</span>
126
- 10: <span class="ruby-keyword kw">end</span>
127
- </pre>
128
- </div>
129
- </div>
130
- </div>
131
-
132
- <div id="method-M000074" class="method-detail">
133
- <a name="M000074"></a>
134
-
135
- <div class="method-heading">
136
- <a href="#M000074" class="method-signature">
137
- <span class="method-name">retryable</span><span class="method-args">(options = {}, &amp;block)</span>
138
- </a>
139
- </div>
140
-
141
- <div class="method-description">
142
- <p><a class="source-toggle" href="#"
143
- onclick="toggleCode('M000074-source');return false;">[Source]</a></p>
144
- <div class="method-source-code" id="M000074-source">
145
- <pre>
146
- <span class="ruby-comment cmt"># File lib/mack-facets/extensions/kernel.rb, line 12</span>
147
- 12: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">retryable</span>(<span class="ruby-identifier">options</span> = {}, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
148
- 13: <span class="ruby-identifier">opts</span> = { <span class="ruby-identifier">:tries</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">1</span>, <span class="ruby-identifier">:on</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-constant">Exception</span> }.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">options</span>)
149
- 14:
150
- 15: <span class="ruby-identifier">retries</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:tries</span>]
151
- 16: <span class="ruby-identifier">retry_exceptions</span> = [<span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:on</span>]].<span class="ruby-identifier">flatten</span>
152
- 17:
153
- 18: <span class="ruby-identifier">x</span> = <span class="ruby-node">%{
154
- 19: begin
155
- 20: return yield
156
- 21: rescue #{retry_exceptions.join(&quot;, &quot;)} =&gt; e
157
- 22: retries -= 1
158
- 23: if retries &gt; 0
159
- 24: retry
160
- 25: else
161
- 26: raise e
162
- 27: end
163
- 28: end
164
- 29: }</span>
165
- 30:
166
- 31: <span class="ruby-identifier">eval</span>(<span class="ruby-identifier">x</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
167
- 32: <span class="ruby-keyword kw">end</span>
168
- </pre>
169
- </div>
170
- </div>
171
- </div>
172
-
173
- <div id="method-M000075" class="method-detail">
174
- <a name="M000075"></a>
175
-
176
- <div class="method-heading">
177
- <a href="#M000075" class="method-signature">
178
- <span class="method-name">ruby?</span><span class="method-args">(v)</span>
179
- </a>
180
- </div>
181
-
182
- <div class="method-description">
183
- <p>
184
- Returns true/false if the current version of Ruby equals the specified
185
- version
186
- </p>
187
- <p><a class="source-toggle" href="#"
188
- onclick="toggleCode('M000075-source');return false;">[Source]</a></p>
189
- <div class="method-source-code" id="M000075-source">
190
- <pre>
191
- <span class="ruby-comment cmt"># File lib/mack-facets/extensions/kernel.rb, line 35</span>
192
- 35: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ruby?</span>(<span class="ruby-identifier">v</span>)
193
- 36: <span class="ruby-constant">RUBY_VERSION</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">v</span>
194
- 37: <span class="ruby-keyword kw">end</span>
195
- </pre>
196
- </div>
197
- </div>
198
- </div>
199
-
200
-
201
- </div>
202
-
203
-
204
- </div>
205
-
206
-
207
- <div id="validator-badges">
208
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
209
- </div>
210
-
211
- </body>
212
- </html>
@@ -1,168 +0,0 @@
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>&nbsp;&nbsp;
84
- <a href="#M000072">minus_seconds</a>&nbsp;&nbsp;
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>
@@ -1,111 +0,0 @@
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>
@@ -1,113 +0,0 @@
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>