draper 0.17.0 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.markdown +6 -0
- data/Readme.markdown +22 -45
- data/draper.gemspec +2 -1
- data/lib/draper.rb +1 -1
- data/lib/draper/base.rb +4 -4
- data/lib/draper/decorated_enumerable_proxy.rb +34 -1
- data/lib/draper/model_support.rb +11 -3
- data/lib/draper/railtie.rb +2 -2
- data/lib/draper/system.rb +10 -2
- data/lib/draper/test/minitest_integration.rb +5 -24
- data/lib/draper/test/rspec_integration.rb +0 -6
- data/lib/draper/version.rb +1 -1
- data/lib/draper/view_context.rb +28 -3
- data/lib/generators/rspec/decorator_generator.rb +1 -1
- data/lib/generators/test_unit/decorator_generator.rb +1 -1
- data/lib/generators/test_unit/templates/decorator_test.rb +0 -3
- data/spec/draper/base_spec.rb +12 -2
- data/spec/draper/decorated_enumerable_proxy_spec.rb +45 -0
- data/spec/generators/decorator/decorator_generator_spec.rb +21 -1
- data/spec/minitest-rails/spec_type_spec.rb +63 -0
- data/spec/spec_helper.rb +23 -5
- data/spec/support/samples/enumerable_proxy.rb +3 -0
- data/spec/support/samples/products_decorator.rb +10 -0
- metadata +32 -40
- data/doc/ApplicationDecorator.html +0 -147
- data/doc/Draper.html +0 -123
- data/doc/Draper/AllHelpers.html +0 -256
- data/doc/Draper/Base.html +0 -1222
- data/doc/Draper/DecoratorGenerator.html +0 -216
- data/doc/Draper/LazyHelpers.html +0 -174
- data/doc/Draper/ModelSupport.html +0 -164
- data/doc/Draper/System.html +0 -179
- data/doc/_index.html +0 -172
- data/doc/class_list.html +0 -47
- data/doc/css/common.css +0 -1
- data/doc/css/full_list.css +0 -53
- data/doc/css/style.css +0 -320
- data/doc/file_list.html +0 -46
- data/doc/frames.html +0 -13
- data/doc/index.html +0 -172
- data/doc/js/app.js +0 -205
- data/doc/js/full_list.js +0 -150
- data/doc/js/jquery.js +0 -16
- data/doc/method_list.html +0 -174
- data/doc/top-level-namespace.html +0 -103
- data/lib/draper/test/view_context.rb +0 -12
- data/spec/draper/helper_support_spec.rb +0 -18
- data/spec/draper/view_context_spec.rb +0 -30
- data/spec/support/samples/active_model.rb +0 -9
- data/spec/support/samples/application_controller.rb +0 -42
- data/spec/support/samples/application_helper.rb +0 -8
@@ -1,216 +0,0 @@
|
|
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 http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
-
<title>
|
7
|
-
Class: Draper::DecoratorGenerator
|
8
|
-
|
9
|
-
— Documentation by YARD 0.7.2
|
10
|
-
|
11
|
-
</title>
|
12
|
-
|
13
|
-
<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
-
|
15
|
-
<link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
16
|
-
|
17
|
-
<script type="text/javascript" charset="utf-8">
|
18
|
-
relpath = '..';
|
19
|
-
if (relpath != '') relpath += '/';
|
20
|
-
</script>
|
21
|
-
|
22
|
-
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
23
|
-
|
24
|
-
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
25
|
-
|
26
|
-
|
27
|
-
</head>
|
28
|
-
<body>
|
29
|
-
<script type="text/javascript" charset="utf-8">
|
30
|
-
if (window.top.frames.main) document.body.className = 'frames';
|
31
|
-
</script>
|
32
|
-
|
33
|
-
<div id="header">
|
34
|
-
<div id="menu">
|
35
|
-
|
36
|
-
<a href="../_index.html">Index (D)</a> »
|
37
|
-
<span class='title'><span class='object_link'><a href="../Draper.html" title="Draper (module)">Draper</a></span></span>
|
38
|
-
»
|
39
|
-
<span class="title">DecoratorGenerator</span>
|
40
|
-
|
41
|
-
|
42
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
43
|
-
</div>
|
44
|
-
|
45
|
-
<div id="search">
|
46
|
-
|
47
|
-
<a id="class_list_link" href="#">Class List</a>
|
48
|
-
|
49
|
-
<a id="method_list_link" href="#">Method List</a>
|
50
|
-
|
51
|
-
<a id="file_list_link" href="#">File List</a>
|
52
|
-
|
53
|
-
</div>
|
54
|
-
<div class="clear"></div>
|
55
|
-
</div>
|
56
|
-
|
57
|
-
<iframe id="search_frame"></iframe>
|
58
|
-
|
59
|
-
<div id="content"><h1>Class: Draper::DecoratorGenerator
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
</h1>
|
64
|
-
|
65
|
-
<dl class="box">
|
66
|
-
|
67
|
-
<dt class="r1">Inherits:</dt>
|
68
|
-
<dd class="r1">
|
69
|
-
<span class="inheritName">Rails::Generators::NamedBase</span>
|
70
|
-
|
71
|
-
<ul class="fullTree">
|
72
|
-
<li>Object</li>
|
73
|
-
|
74
|
-
<li class="next">Rails::Generators::NamedBase</li>
|
75
|
-
|
76
|
-
<li class="next">Draper::DecoratorGenerator</li>
|
77
|
-
|
78
|
-
</ul>
|
79
|
-
<a href="#" class="inheritanceTree">show all</a>
|
80
|
-
|
81
|
-
</dd>
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
<dt class="r2 last">Defined in:</dt>
|
92
|
-
<dd class="r2 last">lib/generators/draper/decorator/decorator_generator.rb</dd>
|
93
|
-
|
94
|
-
</dl>
|
95
|
-
<div class="clear"></div>
|
96
|
-
|
97
|
-
|
98
|
-
<h2>Constant Summary</h2>
|
99
|
-
|
100
|
-
<dl class="constants">
|
101
|
-
|
102
|
-
<dt id="DECORATORS_ROOT-constant" class="">DECORATORS_ROOT =
|
103
|
-
|
104
|
-
</dt>
|
105
|
-
<dd><pre class="code"><span class='string val'>'app/decorators/'</span>
|
106
|
-
</pre></dd>
|
107
|
-
|
108
|
-
<dt id="APPLICATION_DECORATOR-constant" class="">APPLICATION_DECORATOR =
|
109
|
-
|
110
|
-
</dt>
|
111
|
-
<dd><pre class="code"><span class='string val'>'application_decorator.rb'</span>
|
112
|
-
</pre></dd>
|
113
|
-
|
114
|
-
<dt id="APPLICATION_DECORATOR_PATH-constant" class="">APPLICATION_DECORATOR_PATH =
|
115
|
-
|
116
|
-
</dt>
|
117
|
-
<dd><pre class="code"><span class='DECORATORS_ROOT constant id'>DECORATORS_ROOT</span> <span class='plus op'>+</span> <span class='APPLICATION_DECORATOR constant id'>APPLICATION_DECORATOR</span>
|
118
|
-
</pre></dd>
|
119
|
-
|
120
|
-
</dl>
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
<h2>
|
131
|
-
Instance Method Summary
|
132
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
133
|
-
</h2>
|
134
|
-
|
135
|
-
<ul class="summary">
|
136
|
-
|
137
|
-
<li class="public ">
|
138
|
-
<span class="summary_signature">
|
139
|
-
|
140
|
-
<a href="#build_model_and_application_decorators-instance_method" title="#build_model_and_application_decorators (instance method)">- (Object) <strong>build_model_and_application_decorators</strong> </a>
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
</span>
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
154
|
-
|
155
|
-
</li>
|
156
|
-
|
157
|
-
|
158
|
-
</ul>
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
<div id="instance_method_details" class="method_details_list">
|
165
|
-
<h2>Instance Method Details</h2>
|
166
|
-
|
167
|
-
|
168
|
-
<div class="method_details first">
|
169
|
-
<p class="signature first" id="build_model_and_application_decorators-instance_method">
|
170
|
-
|
171
|
-
- (<tt>Object</tt>) <strong>build_model_and_application_decorators</strong>
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
</p><table class="source_code">
|
176
|
-
<tr>
|
177
|
-
<td>
|
178
|
-
<pre class="lines">
|
179
|
-
|
180
|
-
|
181
|
-
9
|
182
|
-
10
|
183
|
-
11
|
184
|
-
12
|
185
|
-
13
|
186
|
-
14
|
187
|
-
15</pre>
|
188
|
-
</td>
|
189
|
-
<td>
|
190
|
-
<pre class="code"><span class="info file"># File 'lib/generators/draper/decorator/decorator_generator.rb', line 9</span>
|
191
|
-
|
192
|
-
<span class='def def kw'>def</span> <span class='build_model_and_application_decorators identifier id'>build_model_and_application_decorators</span>
|
193
|
-
<span class='empty_directory identifier id'>empty_directory</span> <span class='string val'>"app/decorators"</span>
|
194
|
-
<span class='unless unless kw'>unless</span> <span class='File constant id'>File</span><span class='dot token'>.</span><span class='exists? fid id'>exists?</span><span class='lparen token'>(</span><span class='APPLICATION_DECORATOR_PATH constant id'>APPLICATION_DECORATOR_PATH</span><span class='rparen token'>)</span>
|
195
|
-
<span class='template identifier id'>template</span> <span class='APPLICATION_DECORATOR constant id'>APPLICATION_DECORATOR</span><span class='comma token'>,</span> <span class='APPLICATION_DECORATOR_PATH constant id'>APPLICATION_DECORATOR_PATH</span>
|
196
|
-
<span class='end end kw'>end</span>
|
197
|
-
<span class='template identifier id'>template</span> <span class='string val'>'decorator.rb'</span><span class='comma token'>,</span> <span class='dstring node'>"#{DECORATORS_ROOT}#{singular_name}_decorator.rb"</span>
|
198
|
-
<span class='end end kw'>end</span>
|
199
|
-
</pre>
|
200
|
-
</td>
|
201
|
-
</tr>
|
202
|
-
</table>
|
203
|
-
</div>
|
204
|
-
|
205
|
-
</div>
|
206
|
-
|
207
|
-
</div>
|
208
|
-
|
209
|
-
<div id="footer">
|
210
|
-
Generated on Wed Aug 31 23:53:09 2011 by
|
211
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
212
|
-
0.7.2 (ruby-1.8.7).
|
213
|
-
</div>
|
214
|
-
|
215
|
-
</body>
|
216
|
-
</html>
|
data/doc/Draper/LazyHelpers.html
DELETED
@@ -1,174 +0,0 @@
|
|
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 http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
-
<title>
|
7
|
-
Module: Draper::LazyHelpers
|
8
|
-
|
9
|
-
— Documentation by YARD 0.7.2
|
10
|
-
|
11
|
-
</title>
|
12
|
-
|
13
|
-
<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
-
|
15
|
-
<link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
16
|
-
|
17
|
-
<script type="text/javascript" charset="utf-8">
|
18
|
-
relpath = '..';
|
19
|
-
if (relpath != '') relpath += '/';
|
20
|
-
</script>
|
21
|
-
|
22
|
-
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
23
|
-
|
24
|
-
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
25
|
-
|
26
|
-
|
27
|
-
</head>
|
28
|
-
<body>
|
29
|
-
<script type="text/javascript" charset="utf-8">
|
30
|
-
if (window.top.frames.main) document.body.className = 'frames';
|
31
|
-
</script>
|
32
|
-
|
33
|
-
<div id="header">
|
34
|
-
<div id="menu">
|
35
|
-
|
36
|
-
<a href="../_index.html">Index (L)</a> »
|
37
|
-
<span class='title'><span class='object_link'><a href="../Draper.html" title="Draper (module)">Draper</a></span></span>
|
38
|
-
»
|
39
|
-
<span class="title">LazyHelpers</span>
|
40
|
-
|
41
|
-
|
42
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
43
|
-
</div>
|
44
|
-
|
45
|
-
<div id="search">
|
46
|
-
|
47
|
-
<a id="class_list_link" href="#">Class List</a>
|
48
|
-
|
49
|
-
<a id="method_list_link" href="#">Method List</a>
|
50
|
-
|
51
|
-
<a id="file_list_link" href="#">File List</a>
|
52
|
-
|
53
|
-
</div>
|
54
|
-
<div class="clear"></div>
|
55
|
-
</div>
|
56
|
-
|
57
|
-
<iframe id="search_frame"></iframe>
|
58
|
-
|
59
|
-
<div id="content"><h1>Module: Draper::LazyHelpers
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
</h1>
|
64
|
-
|
65
|
-
<dl class="box">
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
<dt class="r1 last">Defined in:</dt>
|
75
|
-
<dd class="r1 last">lib/draper/lazy_helpers.rb</dd>
|
76
|
-
|
77
|
-
</dl>
|
78
|
-
<div class="clear"></div>
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
<h2>
|
87
|
-
Instance Method Summary
|
88
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
89
|
-
</h2>
|
90
|
-
|
91
|
-
<ul class="summary">
|
92
|
-
|
93
|
-
<li class="public ">
|
94
|
-
<span class="summary_signature">
|
95
|
-
|
96
|
-
<a href="#method_missing-instance_method" title="#method_missing (instance method)">- (Object) <strong>method_missing</strong>(method_name, *args, &block) </a>
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
</span>
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
<span class="summary_desc"><div class='inline'>
|
110
|
-
</div></span>
|
111
|
-
|
112
|
-
</li>
|
113
|
-
|
114
|
-
|
115
|
-
</ul>
|
116
|
-
|
117
|
-
|
118
|
-
<div id="method_missing_details" class="method_details_list">
|
119
|
-
<h2>Dynamic Method Handling</h2>
|
120
|
-
<p class="notice this">
|
121
|
-
This class handles dynamic methods through the <tt>method_missing</tt> method
|
122
|
-
|
123
|
-
</p>
|
124
|
-
|
125
|
-
<div class="method_details first">
|
126
|
-
<p class="signature first" id="method_missing-instance_method">
|
127
|
-
|
128
|
-
- (<tt>Object</tt>) <strong>method_missing</strong>(method_name, *args, &block)
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
</p><table class="source_code">
|
133
|
-
<tr>
|
134
|
-
<td>
|
135
|
-
<pre class="lines">
|
136
|
-
|
137
|
-
|
138
|
-
3
|
139
|
-
4
|
140
|
-
5
|
141
|
-
6
|
142
|
-
7
|
143
|
-
8
|
144
|
-
9</pre>
|
145
|
-
</td>
|
146
|
-
<td>
|
147
|
-
<pre class="code"><span class="info file"># File 'lib/draper/lazy_helpers.rb', line 3</span>
|
148
|
-
|
149
|
-
<span class='def def kw'>def</span> <span class='method_missing identifier id'>method_missing</span><span class='lparen token'>(</span><span class='method_name identifier id'>method_name</span><span class='comma token'>,</span> <span class='mult op'>*</span><span class='args identifier id'>args</span><span class='comma token'>,</span> <span class='bitand op'>&</span><span class='block identifier id'>block</span><span class='rparen token'>)</span>
|
150
|
-
<span class='begin begin kw'>begin</span>
|
151
|
-
<span class='helpers identifier id'>helpers</span><span class='dot token'>.</span><span class='send identifier id'>send</span> <span class='method_name identifier id'>method_name</span><span class='comma token'>,</span> <span class='mult op'>*</span><span class='args identifier id'>args</span><span class='comma token'>,</span> <span class='bitand op'>&</span><span class='block identifier id'>block</span>
|
152
|
-
<span class='rescue rescue kw'>rescue</span> <span class='NoMethodError constant id'>NoMethodError</span>
|
153
|
-
<span class='super super kw'>super</span>
|
154
|
-
<span class='end end kw'>end</span>
|
155
|
-
<span class='end end kw'>end</span>
|
156
|
-
</pre>
|
157
|
-
</td>
|
158
|
-
</tr>
|
159
|
-
</table>
|
160
|
-
</div>
|
161
|
-
|
162
|
-
</div>
|
163
|
-
|
164
|
-
|
165
|
-
</div>
|
166
|
-
|
167
|
-
<div id="footer">
|
168
|
-
Generated on Thu Sep 1 01:13:36 2011 by
|
169
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
170
|
-
0.7.2 (ruby-1.8.7).
|
171
|
-
</div>
|
172
|
-
|
173
|
-
</body>
|
174
|
-
</html>
|
@@ -1,164 +0,0 @@
|
|
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 http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
-
<title>
|
7
|
-
Module: Draper::ModelSupport
|
8
|
-
|
9
|
-
— Documentation by YARD 0.7.2
|
10
|
-
|
11
|
-
</title>
|
12
|
-
|
13
|
-
<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
-
|
15
|
-
<link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
16
|
-
|
17
|
-
<script type="text/javascript" charset="utf-8">
|
18
|
-
relpath = '..';
|
19
|
-
if (relpath != '') relpath += '/';
|
20
|
-
</script>
|
21
|
-
|
22
|
-
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
23
|
-
|
24
|
-
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
25
|
-
|
26
|
-
|
27
|
-
</head>
|
28
|
-
<body>
|
29
|
-
<script type="text/javascript" charset="utf-8">
|
30
|
-
if (window.top.frames.main) document.body.className = 'frames';
|
31
|
-
</script>
|
32
|
-
|
33
|
-
<div id="header">
|
34
|
-
<div id="menu">
|
35
|
-
|
36
|
-
<a href="../_index.html">Index (M)</a> »
|
37
|
-
<span class='title'><span class='object_link'><a href="../Draper.html" title="Draper (module)">Draper</a></span></span>
|
38
|
-
»
|
39
|
-
<span class="title">ModelSupport</span>
|
40
|
-
|
41
|
-
|
42
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
43
|
-
</div>
|
44
|
-
|
45
|
-
<div id="search">
|
46
|
-
|
47
|
-
<a id="class_list_link" href="#">Class List</a>
|
48
|
-
|
49
|
-
<a id="method_list_link" href="#">Method List</a>
|
50
|
-
|
51
|
-
<a id="file_list_link" href="#">File List</a>
|
52
|
-
|
53
|
-
</div>
|
54
|
-
<div class="clear"></div>
|
55
|
-
</div>
|
56
|
-
|
57
|
-
<iframe id="search_frame"></iframe>
|
58
|
-
|
59
|
-
<div id="content"><h1>Module: Draper::ModelSupport
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
</h1>
|
64
|
-
|
65
|
-
<dl class="box">
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
<dt class="r1 last">Defined in:</dt>
|
75
|
-
<dd class="r1 last">lib/draper/model_support.rb</dd>
|
76
|
-
|
77
|
-
</dl>
|
78
|
-
<div class="clear"></div>
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
<h2>
|
87
|
-
Instance Method Summary
|
88
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
89
|
-
</h2>
|
90
|
-
|
91
|
-
<ul class="summary">
|
92
|
-
|
93
|
-
<li class="public ">
|
94
|
-
<span class="summary_signature">
|
95
|
-
|
96
|
-
<a href="#decorator-instance_method" title="#decorator (instance method)">- (Object) <strong>decorator</strong> </a>
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
</span>
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
<span class="summary_desc"><div class='inline'>
|
110
|
-
</div></span>
|
111
|
-
|
112
|
-
</li>
|
113
|
-
|
114
|
-
|
115
|
-
</ul>
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
<div id="instance_method_details" class="method_details_list">
|
121
|
-
<h2>Instance Method Details</h2>
|
122
|
-
|
123
|
-
|
124
|
-
<div class="method_details first">
|
125
|
-
<p class="signature first" id="decorator-instance_method">
|
126
|
-
|
127
|
-
- (<tt>Object</tt>) <strong>decorator</strong>
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
</p><table class="source_code">
|
132
|
-
<tr>
|
133
|
-
<td>
|
134
|
-
<pre class="lines">
|
135
|
-
|
136
|
-
|
137
|
-
2
|
138
|
-
3
|
139
|
-
4</pre>
|
140
|
-
</td>
|
141
|
-
<td>
|
142
|
-
<pre class="code"><span class="info file"># File 'lib/draper/model_support.rb', line 2</span>
|
143
|
-
|
144
|
-
<span class='def def kw'>def</span> <span class='decorator identifier id'>decorator</span>
|
145
|
-
<span class='@decorator ivar id'>@decorator</span> <span class='opasgn op'>||=</span> <span class='dstring node'>"#{self.class.name}Decorator"</span><span class='dot token'>.</span><span class='constantize identifier id'>constantize</span><span class='dot token'>.</span><span class='decorate identifier id'>decorate</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='rparen token'>)</span>
|
146
|
-
<span class='end end kw'>end</span>
|
147
|
-
</pre>
|
148
|
-
</td>
|
149
|
-
</tr>
|
150
|
-
</table>
|
151
|
-
</div>
|
152
|
-
|
153
|
-
</div>
|
154
|
-
|
155
|
-
</div>
|
156
|
-
|
157
|
-
<div id="footer">
|
158
|
-
Generated on Thu Sep 1 01:13:37 2011 by
|
159
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
160
|
-
0.7.2 (ruby-1.8.7).
|
161
|
-
</div>
|
162
|
-
|
163
|
-
</body>
|
164
|
-
</html>
|