whyvalidationssuckin96 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. data/README.md +6 -2
  2. data/VERSION +1 -1
  3. data/doc/ActiveRecord/RecordInvalid.html +12 -12
  4. data/doc/ActiveRecord.html +3 -3
  5. data/doc/FalseClass.html +2 -2
  6. data/doc/NilClass.html +2 -2
  7. data/doc/Numeric.html +2 -2
  8. data/doc/Object.html +2 -2
  9. data/doc/String.html +2 -2
  10. data/doc/TrueClass.html +2 -2
  11. data/doc/WhyValidationsSuckIn96/ActiveRecord/AssociationValidation/ClassMethods.html +221 -0
  12. data/doc/WhyValidationsSuckIn96/ActiveRecord/AssociationValidation.html +166 -0
  13. data/doc/WhyValidationsSuckIn96/ActiveRecord/ClassMethods.html +166 -0
  14. data/doc/WhyValidationsSuckIn96/ActiveRecord/InstanceMethods.html +9 -9
  15. data/doc/WhyValidationsSuckIn96/ActiveRecord.html +90 -7
  16. data/doc/WhyValidationsSuckIn96/AttributeBasedValidation.html +2 -2
  17. data/doc/WhyValidationsSuckIn96/SkippableValidation.html +2 -2
  18. data/doc/WhyValidationsSuckIn96/ValidatesAcceptance.html +4 -4
  19. data/doc/WhyValidationsSuckIn96/ValidatesAssociated.html +2 -2
  20. data/doc/WhyValidationsSuckIn96/ValidatesConfirmation.html +2 -2
  21. data/doc/WhyValidationsSuckIn96/ValidatesExclusion.html +2 -2
  22. data/doc/WhyValidationsSuckIn96/ValidatesFormat.html +2 -2
  23. data/doc/WhyValidationsSuckIn96/ValidatesInclusion.html +2 -2
  24. data/doc/WhyValidationsSuckIn96/ValidatesLength.html +2 -2
  25. data/doc/WhyValidationsSuckIn96/ValidatesNumericality.html +2 -2
  26. data/doc/WhyValidationsSuckIn96/ValidatesPresence.html +2 -2
  27. data/doc/WhyValidationsSuckIn96/ValidatesUniqueness.html +2 -2
  28. data/doc/WhyValidationsSuckIn96/ValidatesUrl.html +2 -2
  29. data/doc/WhyValidationsSuckIn96/Validation.html +2 -2
  30. data/doc/WhyValidationsSuckIn96/ValidationBuilder.html +2 -2
  31. data/doc/WhyValidationsSuckIn96/ValidationSupport/ClassMethods.html +2 -2
  32. data/doc/WhyValidationsSuckIn96/ValidationSupport/InstanceMethods.html +2 -2
  33. data/doc/WhyValidationsSuckIn96/ValidationSupport.html +2 -2
  34. data/doc/WhyValidationsSuckIn96.html +3 -3
  35. data/doc/_index.html +30 -9
  36. data/doc/class_list.html +59 -29
  37. data/doc/file.README.html +9 -5
  38. data/doc/index.html +9 -5
  39. data/doc/method_list.html +104 -54
  40. data/doc/top-level-namespace.html +2 -2
  41. data/lib/whyvalidationssuckin96/macros/validates_length.rb +1 -0
  42. data/test/macros/validates_length_test.rb +5 -0
  43. data/whyvalidationssuckin96.gemspec +5 -2
  44. metadata +5 -2
data/README.md CHANGED
@@ -43,7 +43,7 @@ Define your validations or call pre-existing validation macros inside a validati
43
43
  end
44
44
 
45
45
  validates_presence_of :title, :artist
46
- validates_numericality_of :year
46
+ validates_numericality_of :year, :only_integer => true
47
47
  end
48
48
  end
49
49
 
@@ -59,7 +59,11 @@ Check instances of your class for validity and inspect the failed validations:
59
59
  Easily inspect and test for the presence of validations on your class:
60
60
 
61
61
  Song.validation_collection.detect do |(klass, opts)|
62
- klass.is_a?(WhyValidationsSuckIn96::ValidatesPresence)
62
+ klass == WhyValidationsSuckIn96::ValidatesPresence
63
+ end
64
+
65
+ Song.validation_collection.detect do |(klass, opts)|
66
+ klass == WhyValidationsSuckIn96::ValidatesNumericality && opts[:only_integer]
63
67
  end
64
68
 
65
69
  Create your own reusable and testable validations:
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.0
1
+ 1.2.1
@@ -68,7 +68,7 @@
68
68
 
69
69
 
70
70
  <dt class="r2 last">Defined in:</dt>
71
- <dd class="r2 last">lib/whyvalidationssuckin96/rails/active_record.rb</dd>
71
+ <dd class="r2 last">lib/whyvalidationssuckin96/rails/active_record/base_validation_overrides.rb</dd>
72
72
 
73
73
  </dl>
74
74
  <div class="clear"></div>
@@ -177,13 +177,13 @@ A new instance of RecordInvalid
177
177
  <pre class="lines">
178
178
 
179
179
 
180
- 87
181
- 88
182
- 89
183
- 90</pre>
180
+ 118
181
+ 119
182
+ 120
183
+ 121</pre>
184
184
  </td>
185
185
  <td>
186
- <pre class="code"><span class="info file"># File 'lib/whyvalidationssuckin96/rails/active_record.rb', line 87</span>
186
+ <pre class="code"><span class="info file"># File 'lib/whyvalidationssuckin96/rails/active_record/base_validation_overrides.rb', line 118</span>
187
187
 
188
188
  <span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='record identifier id'>record</span><span class='rparen token'>)</span>
189
189
  <span class='@record ivar id'>@record</span> <span class='assign token'>=</span> <span class='record identifier id'>record</span>
@@ -227,12 +227,12 @@ Returns the value of attribute record
227
227
  <pre class="lines">
228
228
 
229
229
 
230
- 86
231
- 87
232
- 88</pre>
230
+ 117
231
+ 118
232
+ 119</pre>
233
233
  </td>
234
234
  <td>
235
- <pre class="code"><span class="info file"># File 'lib/whyvalidationssuckin96/rails/active_record.rb', line 86</span>
235
+ <pre class="code"><span class="info file"># File 'lib/whyvalidationssuckin96/rails/active_record/base_validation_overrides.rb', line 117</span>
236
236
 
237
237
  <span class='def def kw'>def</span> <span class='record identifier id'>record</span>
238
238
  <span class='@record ivar id'>@record</span>
@@ -249,9 +249,9 @@ Returns the value of attribute record
249
249
  </div>
250
250
 
251
251
  <div id="footer">
252
- Generated on Mon Dec 21 16:56:21 2009 by
252
+ Generated on Mon Dec 21 23:30:37 2009 by
253
253
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
254
- 0.5.0 (ruby-1.8.7).
254
+ 0.5.2 (ruby-1.8.7).
255
255
  </div>
256
256
 
257
257
  </body>
@@ -51,7 +51,7 @@
51
51
 
52
52
 
53
53
  <dt class="r1 last">Defined in:</dt>
54
- <dd class="r1 last">lib/whyvalidationssuckin96/rails/active_record.rb</dd>
54
+ <dd class="r1 last">lib/whyvalidationssuckin96/rails/active_record/base_validation_overrides.rb</dd>
55
55
 
56
56
  </dl>
57
57
  <div class="clear"></div>
@@ -84,9 +84,9 @@ ActiveRecord
84
84
  </div>
85
85
 
86
86
  <div id="footer">
87
- Generated on Mon Dec 21 16:56:20 2009 by
87
+ Generated on Mon Dec 21 23:30:38 2009 by
88
88
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
89
- 0.5.0 (ruby-1.8.7).
89
+ 0.5.2 (ruby-1.8.7).
90
90
  </div>
91
91
 
92
92
  </body>
data/doc/FalseClass.html CHANGED
@@ -78,9 +78,9 @@
78
78
  </div>
79
79
 
80
80
  <div id="footer">
81
- Generated on Mon Dec 21 16:56:21 2009 by
81
+ Generated on Mon Dec 21 23:30:37 2009 by
82
82
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
83
- 0.5.0 (ruby-1.8.7).
83
+ 0.5.2 (ruby-1.8.7).
84
84
  </div>
85
85
 
86
86
  </body>
data/doc/NilClass.html CHANGED
@@ -78,9 +78,9 @@
78
78
  </div>
79
79
 
80
80
  <div id="footer">
81
- Generated on Mon Dec 21 16:56:21 2009 by
81
+ Generated on Mon Dec 21 23:30:36 2009 by
82
82
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
83
- 0.5.0 (ruby-1.8.7).
83
+ 0.5.2 (ruby-1.8.7).
84
84
  </div>
85
85
 
86
86
  </body>
data/doc/Numeric.html CHANGED
@@ -78,9 +78,9 @@
78
78
  </div>
79
79
 
80
80
  <div id="footer">
81
- Generated on Mon Dec 21 16:56:21 2009 by
81
+ Generated on Mon Dec 21 23:30:37 2009 by
82
82
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
83
- 0.5.0 (ruby-1.8.7).
83
+ 0.5.2 (ruby-1.8.7).
84
84
  </div>
85
85
 
86
86
  </body>
data/doc/Object.html CHANGED
@@ -70,9 +70,9 @@
70
70
  </div>
71
71
 
72
72
  <div id="footer">
73
- Generated on Mon Dec 21 16:56:21 2009 by
73
+ Generated on Mon Dec 21 23:30:36 2009 by
74
74
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
75
- 0.5.0 (ruby-1.8.7).
75
+ 0.5.2 (ruby-1.8.7).
76
76
  </div>
77
77
 
78
78
  </body>
data/doc/String.html CHANGED
@@ -78,9 +78,9 @@
78
78
  </div>
79
79
 
80
80
  <div id="footer">
81
- Generated on Mon Dec 21 16:56:21 2009 by
81
+ Generated on Mon Dec 21 23:30:37 2009 by
82
82
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
83
- 0.5.0 (ruby-1.8.7).
83
+ 0.5.2 (ruby-1.8.7).
84
84
  </div>
85
85
 
86
86
  </body>
data/doc/TrueClass.html CHANGED
@@ -78,9 +78,9 @@
78
78
  </div>
79
79
 
80
80
  <div id="footer">
81
- Generated on Mon Dec 21 16:56:21 2009 by
81
+ Generated on Mon Dec 21 23:30:37 2009 by
82
82
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
83
- 0.5.0 (ruby-1.8.7).
83
+ 0.5.2 (ruby-1.8.7).
84
84
  </div>
85
85
 
86
86
  </body>
@@ -0,0 +1,221 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta name="Content-Type" content="text/html; charset=UTF-8" />
6
+ <title>Module: WhyValidationsSuckIn96::ActiveRecord::AssociationValidation::ClassMethods</title>
7
+ <link rel="stylesheet" href="../../../css/style.css" type="text/css" media="screen" charset="utf-8" />
8
+ <link rel="stylesheet" href="../../../css/common.css" type="text/css" media="screen" charset="utf-8" />
9
+
10
+ <script type="text/javascript" charset="utf-8">
11
+ relpath = '../../..';
12
+ if (relpath != '') relpath += '/';
13
+ </script>
14
+ <script type="text/javascript" charset="utf-8" src="../../../js/jquery.js"></script>
15
+ <script type="text/javascript" charset="utf-8" src="../../../js/app.js"></script>
16
+
17
+ </head>
18
+ <body>
19
+ <div id="header">
20
+ <div id="menu">
21
+
22
+ <a href="../../../_index.html">Index (C)</a> &raquo;
23
+ <a href="../../../WhyValidationsSuckIn96.html" title="WhyValidationsSuckIn96">WhyValidationsSuckIn96</a> &raquo; <a href="../../ActiveRecord.html" title="ActiveRecord">ActiveRecord</a> &raquo; <a href="../AssociationValidation.html" title="AssociationValidation">AssociationValidation</a>
24
+ &raquo;
25
+ <span class="title">ClassMethods</span>
26
+
27
+ </div>
28
+
29
+ <div id="search">
30
+ <a id="class_list_link" href="#">Namespace List</a>
31
+ <a id="method_list_link" href="#">Method List</a>
32
+ <a id ="file_list_link" href="#">File List</a>
33
+ </div>
34
+
35
+ <div class="clear"></div>
36
+ </div>
37
+
38
+ <iframe id="search_frame"></iframe>
39
+
40
+ <div id="content"><h1>Module: WhyValidationsSuckIn96::ActiveRecord::AssociationValidation::ClassMethods
41
+
42
+
43
+ </h1>
44
+
45
+ <dl class="box">
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+ <dt class="r1 last">Defined in:</dt>
54
+ <dd class="r1 last">lib/whyvalidationssuckin96/rails/active_record/association_validation.rb</dd>
55
+
56
+ </dl>
57
+ <div class="clear"></div>
58
+
59
+ <h2>Overview</h2><div class="docstring">
60
+ <div class="discussion">
61
+ <p>
62
+ ClassMethods
63
+ </p>
64
+
65
+
66
+ </div>
67
+ </div>
68
+ <div class="tags">
69
+
70
+ </div>
71
+
72
+
73
+ <h2>Class Method Summary</h2>
74
+
75
+ <ul class="summary">
76
+
77
+ <li class="public ">
78
+ <span class="summary_signature">
79
+
80
+ <a href="#extended-class_method" title="extended (class method)">+ (Object) <strong>extended</strong>(klass_or_mod) </a>
81
+
82
+
83
+
84
+ </span>
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+ <span class="summary_desc"></span>
93
+
94
+ </li>
95
+
96
+
97
+ </ul>
98
+
99
+ <h2>Instance Method Summary</h2>
100
+
101
+ <ul class="summary">
102
+
103
+ <li class="public ">
104
+ <span class="summary_signature">
105
+
106
+ <a href="#add_autosave_association_callbacks_with_validation_hooks-instance_method" title="#add_autosave_association_callbacks_with_validation_hooks (instance method)">- (Object) <strong>add_autosave_association_callbacks_with_validation_hooks</strong>(reflection) </a>
107
+
108
+
109
+
110
+ </span>
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+ <span class="summary_desc"></span>
119
+
120
+ </li>
121
+
122
+
123
+ </ul>
124
+
125
+
126
+ <div id="class_method_details" class="method_details_list">
127
+ <h2>Class Method Details</h2>
128
+
129
+
130
+ <div class="method_details first">
131
+ <p class="signature first" id="extended-class_method">
132
+
133
+ + (<tt><a href="../../../Object.html" title="Object">Object</a></tt>) <strong>extended</strong>(klass_or_mod)
134
+
135
+
136
+
137
+ </p><div class="docstring">
138
+ <div class="discussion">
139
+
140
+
141
+ </div>
142
+ </div>
143
+ <div class="tags">
144
+
145
+ </div><table class="source_code">
146
+ <tr>
147
+ <td>
148
+ <pre class="lines">
149
+
150
+
151
+ 14
152
+ 15
153
+ 16
154
+ 17
155
+ 18
156
+ 19</pre>
157
+ </td>
158
+ <td>
159
+ <pre class="code"><span class="info file"># File 'lib/whyvalidationssuckin96/rails/active_record/association_validation.rb', line 14</span>
160
+
161
+ <span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='extended identifier id'>extended</span><span class='lparen token'>(</span><span class='klass_or_mod identifier id'>klass_or_mod</span><span class='rparen token'>)</span>
162
+ <span class='lparen token'>(</span><span class='class class kw'>class</span> <span class='lshft op'>&lt;&lt;</span> <span class='klass_or_mod identifier id'>klass_or_mod</span><span class='semicolon token'>;</span> <span class='self self kw'>self</span><span class='semicolon token'>;</span> <span class='end end kw'>end</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='instance_eval identifier id'>instance_eval</span> <span class='do do kw'>do</span>
163
+ <span class='comment val'># FIXME - alias method chain my ass</span>
164
+ <span class='alias_method_chain identifier id'>alias_method_chain</span> <span class='symbol val'>:add_autosave_association_callbacks</span><span class='comma token'>,</span> <span class='symbol val'>:validation_hooks</span>
165
+ <span class='end end kw'>end</span>
166
+ <span class='end end kw'>end</span>
167
+ </pre>
168
+ </td>
169
+ </tr>
170
+ </table>
171
+ </div>
172
+
173
+ </div>
174
+
175
+ <div id="instance_method_details" class="method_details_list">
176
+ <h2>Instance Method Details</h2>
177
+
178
+
179
+ <div class="method_details first">
180
+ <p class="signature first" id="add_autosave_association_callbacks_with_validation_hooks-instance_method">
181
+
182
+ - (<tt><a href="../../../Object.html" title="Object">Object</a></tt>) <strong>add_autosave_association_callbacks_with_validation_hooks</strong>(reflection)
183
+
184
+
185
+
186
+ </p><table class="source_code">
187
+ <tr>
188
+ <td>
189
+ <pre class="lines">
190
+
191
+
192
+ 21
193
+ 22
194
+ 23
195
+ 24</pre>
196
+ </td>
197
+ <td>
198
+ <pre class="code"><span class="info file"># File 'lib/whyvalidationssuckin96/rails/active_record/association_validation.rb', line 21</span>
199
+
200
+ <span class='def def kw'>def</span> <span class='add_autosave_association_callbacks_with_validation_hooks identifier id'>add_autosave_association_callbacks_with_validation_hooks</span><span class='lparen token'>(</span><span class='reflection identifier id'>reflection</span><span class='rparen token'>)</span>
201
+ <span class='add_autosave_association_callbacks_without_validation_hooks identifier id'>add_autosave_association_callbacks_without_validation_hooks</span><span class='lparen token'>(</span><span class='reflection identifier id'>reflection</span><span class='rparen token'>)</span>
202
+ <span class='setup_validations_for_association_reflection identifier id'>setup_validations_for_association_reflection</span><span class='lparen token'>(</span><span class='reflection identifier id'>reflection</span><span class='rparen token'>)</span>
203
+ <span class='end end kw'>end</span>
204
+ </pre>
205
+ </td>
206
+ </tr>
207
+ </table>
208
+ </div>
209
+
210
+ </div>
211
+
212
+ </div>
213
+
214
+ <div id="footer">
215
+ Generated on Mon Dec 21 23:30:37 2009 by
216
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
217
+ 0.5.2 (ruby-1.8.7).
218
+ </div>
219
+
220
+ </body>
221
+ </html>
@@ -0,0 +1,166 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta name="Content-Type" content="text/html; charset=UTF-8" />
6
+ <title>Module: WhyValidationsSuckIn96::ActiveRecord::AssociationValidation</title>
7
+ <link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
8
+ <link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" />
9
+
10
+ <script type="text/javascript" charset="utf-8">
11
+ relpath = '../..';
12
+ if (relpath != '') relpath += '/';
13
+ </script>
14
+ <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
15
+ <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
16
+
17
+ </head>
18
+ <body>
19
+ <div id="header">
20
+ <div id="menu">
21
+
22
+ <a href="../../_index.html">Index (A)</a> &raquo;
23
+ <a href="../../WhyValidationsSuckIn96.html" title="WhyValidationsSuckIn96">WhyValidationsSuckIn96</a> &raquo; <a href="../ActiveRecord.html" title="ActiveRecord">ActiveRecord</a>
24
+ &raquo;
25
+ <span class="title">AssociationValidation</span>
26
+
27
+ </div>
28
+
29
+ <div id="search">
30
+ <a id="class_list_link" href="#">Namespace List</a>
31
+ <a id="method_list_link" href="#">Method List</a>
32
+ <a id ="file_list_link" href="#">File List</a>
33
+ </div>
34
+
35
+ <div class="clear"></div>
36
+ </div>
37
+
38
+ <iframe id="search_frame"></iframe>
39
+
40
+ <div id="content"><h1>Module: WhyValidationsSuckIn96::ActiveRecord::AssociationValidation
41
+
42
+
43
+ </h1>
44
+
45
+ <dl class="box">
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+ <dt class="r1 last">Defined in:</dt>
54
+ <dd class="r1 last">lib/whyvalidationssuckin96/rails/active_record/association_validation.rb</dd>
55
+
56
+ </dl>
57
+ <div class="clear"></div>
58
+
59
+ <h2>Overview</h2><div class="docstring">
60
+ <div class="discussion">
61
+ <p>
62
+ AssociationValidation
63
+ </p>
64
+
65
+
66
+ </div>
67
+ </div>
68
+ <div class="tags">
69
+
70
+ </div><h2>Defined Under Namespace</h2>
71
+ <p class="children">
72
+
73
+
74
+ <strong class="modules">Modules:</strong> <a href="AssociationValidation/ClassMethods.html" title="ClassMethods">ClassMethods</a>
75
+
76
+
77
+
78
+
79
+ </p>
80
+
81
+
82
+
83
+ <h2>Class Method Summary</h2>
84
+
85
+ <ul class="summary">
86
+
87
+ <li class="public ">
88
+ <span class="summary_signature">
89
+
90
+ <a href="#included-class_method" title="included (class method)">+ (Object) <strong>included</strong>(klass_or_mod) </a>
91
+
92
+
93
+
94
+ </span>
95
+
96
+
97
+
98
+
99
+
100
+
101
+
102
+ <span class="summary_desc"></span>
103
+
104
+ </li>
105
+
106
+
107
+ </ul>
108
+
109
+
110
+ <div id="class_method_details" class="method_details_list">
111
+ <h2>Class Method Details</h2>
112
+
113
+
114
+ <div class="method_details first">
115
+ <p class="signature first" id="included-class_method">
116
+
117
+ + (<tt><a href="../../Object.html" title="Object">Object</a></tt>) <strong>included</strong>(klass_or_mod)
118
+
119
+
120
+
121
+ </p><div class="docstring">
122
+ <div class="discussion">
123
+
124
+
125
+ </div>
126
+ </div>
127
+ <div class="tags">
128
+
129
+ </div><table class="source_code">
130
+ <tr>
131
+ <td>
132
+ <pre class="lines">
133
+
134
+
135
+ 7
136
+ 8
137
+ 9
138
+ 10
139
+ 11</pre>
140
+ </td>
141
+ <td>
142
+ <pre class="code"><span class="info file"># File 'lib/whyvalidationssuckin96/rails/active_record/association_validation.rb', line 7</span>
143
+
144
+ <span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='included identifier id'>included</span><span class='lparen token'>(</span><span class='klass_or_mod identifier id'>klass_or_mod</span><span class='rparen token'>)</span>
145
+ <span class='klass_or_mod identifier id'>klass_or_mod</span><span class='dot token'>.</span><span class='module_eval identifier id'>module_eval</span> <span class='do do kw'>do</span>
146
+ <span class='extend identifier id'>extend</span> <span class='ClassMethods constant id'>ClassMethods</span>
147
+ <span class='end end kw'>end</span>
148
+ <span class='end end kw'>end</span>
149
+ </pre>
150
+ </td>
151
+ </tr>
152
+ </table>
153
+ </div>
154
+
155
+ </div>
156
+
157
+ </div>
158
+
159
+ <div id="footer">
160
+ Generated on Mon Dec 21 23:30:37 2009 by
161
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
162
+ 0.5.2 (ruby-1.8.7).
163
+ </div>
164
+
165
+ </body>
166
+ </html>