mack-facets 0.6.0.1 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. data/README +4 -3
  2. data/lib/{english_extensions → mack-facets/english_extensions}/inflect.rb +0 -0
  3. data/lib/{english_extensions → mack-facets/english_extensions}/numerals.rb +0 -0
  4. data/lib/{extensions → mack-facets/extensions}/array.rb +0 -0
  5. data/lib/{extensions → mack-facets/extensions}/class.rb +0 -0
  6. data/lib/{extensions → mack-facets/extensions}/hash.rb +0 -0
  7. data/lib/{extensions → mack-facets/extensions}/kernel.rb +0 -0
  8. data/lib/{extensions → mack-facets/extensions}/math.rb +0 -0
  9. data/lib/{extensions → mack-facets/extensions}/module.rb +0 -0
  10. data/lib/mack-facets/extensions/nil_class.rb +7 -0
  11. data/lib/{extensions → mack-facets/extensions}/object.rb +0 -0
  12. data/lib/{extensions → mack-facets/extensions}/string.rb +0 -0
  13. data/lib/{extensions → mack-facets/extensions}/symbol.rb +0 -0
  14. data/lib/{utils → mack-facets/utils}/inflections.rb +0 -0
  15. data/lib/{utils → mack-facets/utils}/inflector.rb +0 -0
  16. data/lib/{utils → mack-facets/utils}/options_merger.rb +0 -0
  17. data/lib/mack-facets/utils/registry_list.rb +83 -0
  18. data/lib/mack-facets/utils/registry_map.rb +94 -0
  19. data/lib/mack-facets.rb +11 -8
  20. metadata +29 -48
  21. data/doc/classes/Array.html +0 -408
  22. data/doc/classes/Class.html +0 -233
  23. data/doc/classes/Hash.html +0 -233
  24. data/doc/classes/Kernel.html +0 -184
  25. data/doc/classes/Mack/Utils/Inflector.html +0 -382
  26. data/doc/classes/Math.html +0 -188
  27. data/doc/classes/Module.html +0 -203
  28. data/doc/classes/Object.html +0 -558
  29. data/doc/classes/String.html +0 -451
  30. data/doc/classes/Symbol.html +0 -148
  31. data/doc/created.rid +0 -1
  32. data/doc/files/README.html +0 -111
  33. data/doc/files/lib/english_extensions/inflect_rb.html +0 -101
  34. data/doc/files/lib/english_extensions/numerals_rb.html +0 -101
  35. data/doc/files/lib/extensions/array_rb.html +0 -101
  36. data/doc/files/lib/extensions/class_rb.html +0 -101
  37. data/doc/files/lib/extensions/hash_rb.html +0 -108
  38. data/doc/files/lib/extensions/kernel_rb.html +0 -109
  39. data/doc/files/lib/extensions/math_rb.html +0 -101
  40. data/doc/files/lib/extensions/module_rb.html +0 -101
  41. data/doc/files/lib/extensions/object_rb.html +0 -101
  42. data/doc/files/lib/extensions/string_rb.html +0 -101
  43. data/doc/files/lib/extensions/symbol_rb.html +0 -101
  44. data/doc/files/lib/mack-facets_rb.html +0 -120
  45. data/doc/files/lib/utils/inflections_rb.html +0 -101
  46. data/doc/files/lib/utils/inflector_rb.html +0 -108
  47. data/doc/files/lib/utils/options_merger_rb.html +0 -101
  48. data/doc/fr_class_index.html +0 -36
  49. data/doc/fr_file_index.html +0 -42
  50. data/doc/fr_method_index.html +0 -75
  51. data/doc/index.html +0 -24
  52. data/doc/rdoc-style.css +0 -208
@@ -1,203 +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: Module</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">Module</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../files/lib/extensions/module_rb.html">
59
- lib/extensions/module.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
- <div id="method-list">
88
- <h3 class="section-bar">Methods</h3>
89
-
90
- <div class="name-list">
91
- <a href="#M000014">convert_security_of_methods</a>&nbsp;&nbsp;
92
- <a href="#M000015">include_safely_into</a>&nbsp;&nbsp;
93
- </div>
94
- </div>
95
-
96
- </div>
97
-
98
-
99
- <!-- if includes -->
100
-
101
- <div id="section">
102
-
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
- <!-- if method_list -->
111
- <div id="methods">
112
- <h3 class="section-bar">Public Instance methods</h3>
113
-
114
- <div id="method-M000014" class="method-detail">
115
- <a name="M000014"></a>
116
-
117
- <div class="method-heading">
118
- <a href="#M000014" class="method-signature">
119
- <span class="method-name">convert_security_of_methods</span><span class="method-args">(old_level = :public, new_level = :protected)</span>
120
- </a>
121
- </div>
122
-
123
- <div class="method-description">
124
- <p>
125
- Bulk converts the security level of methods in this <a
126
- href="Module.html">Module</a> from one level to another.
127
- </p>
128
- <p><a class="source-toggle" href="#"
129
- onclick="toggleCode('M000014-source');return false;">[Source]</a></p>
130
- <div class="method-source-code" id="M000014-source">
131
- <pre>
132
- <span class="ruby-comment cmt"># File lib/extensions/module.rb, line 4</span>
133
- 4: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">convert_security_of_methods</span>(<span class="ruby-identifier">old_level</span> = <span class="ruby-identifier">:public</span>, <span class="ruby-identifier">new_level</span> = <span class="ruby-identifier">:protected</span>)
134
- 5: <span class="ruby-identifier">eval</span>(<span class="ruby-node">&quot;#{old_level}_instance_methods&quot;</span>).<span class="ruby-identifier">each</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">meth</span><span class="ruby-operator">|</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">new_level</span>, <span class="ruby-identifier">meth</span>) }
135
- 6: <span class="ruby-keyword kw">self</span>
136
- 7: <span class="ruby-keyword kw">end</span>
137
- </pre>
138
- </div>
139
- </div>
140
- </div>
141
-
142
- <div id="method-M000015" class="method-detail">
143
- <a name="M000015"></a>
144
-
145
- <div class="method-heading">
146
- <a href="#M000015" class="method-signature">
147
- <span class="method-name">include_safely_into</span><span class="method-args">(*args)</span>
148
- </a>
149
- </div>
150
-
151
- <div class="method-description">
152
- <p>
153
- Includes this module into a <a href="Class.html">Class</a>, and changes all
154
- public methods to protected.
155
- </p>
156
- <p>
157
- Examples:
158
- </p>
159
- <pre>
160
- module MyCoolUtils
161
- def some_meth
162
- &quot;hi&quot;
163
- end
164
- self.include_safely_into(FooController)
165
- end
166
- </pre>
167
- <p>
168
- or:
169
- </p>
170
- <pre>
171
- MyCoolUtils.include_safely_into(FooController, SomeOtherClass)
172
- </pre>
173
- <p><a class="source-toggle" href="#"
174
- onclick="toggleCode('M000015-source');return false;">[Source]</a></p>
175
- <div class="method-source-code" id="M000015-source">
176
- <pre>
177
- <span class="ruby-comment cmt"># File lib/extensions/module.rb, line 20</span>
178
- 20: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">include_safely_into</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
179
- 21: [<span class="ruby-identifier">args</span>].<span class="ruby-identifier">flatten</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span>
180
- 22: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">a</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">String</span>) <span class="ruby-operator">||</span> <span class="ruby-identifier">a</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Symbol</span>)
181
- 23: <span class="ruby-identifier">a</span> = <span class="ruby-identifier">a</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">constantize</span>
182
- 24: <span class="ruby-keyword kw">end</span>
183
- 25: <span class="ruby-identifier">a</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">:include</span>, <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">convert_security_of_methods</span>)
184
- 26: <span class="ruby-keyword kw">end</span>
185
- 27: <span class="ruby-keyword kw">end</span>
186
- </pre>
187
- </div>
188
- </div>
189
- </div>
190
-
191
-
192
- </div>
193
-
194
-
195
- </div>
196
-
197
-
198
- <div id="validator-badges">
199
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
200
- </div>
201
-
202
- </body>
203
- </html>