mattock 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- data/doc/Specifications +0 -37
- data/lib/mattock/cascading-definition.rb +36 -0
- data/lib/mattock/configurable.rb +46 -5
- data/lib/mattock/tasklib.rb +47 -1
- data/lib/mattock/yard_extensions.rb +10 -0
- metadata +3 -213
- data/doc/FileSandbox.html +0 -537
- data/doc/FileSandbox/HaveContents.html +0 -279
- data/doc/FileSandbox/Sandbox.html +0 -525
- data/doc/FileSandbox/SandboxFile.html +0 -622
- data/doc/Mattock.html +0 -137
- data/doc/Mattock/CascadingDefinition.html +0 -459
- data/doc/Mattock/CommandChain.html +0 -456
- data/doc/Mattock/CommandLine.html +0 -1312
- data/doc/Mattock/CommandLineExampleGroup.html +0 -282
- data/doc/Mattock/CommandLineExampleGroup/Matchers.html +0 -109
- data/doc/Mattock/CommandRunResult.html +0 -643
- data/doc/Mattock/CommandTask.html +0 -464
- data/doc/Mattock/Configurable.html +0 -609
- data/doc/Mattock/Configurable/ClassMethods.html +0 -754
- data/doc/Mattock/Configurable/Struct.html +0 -148
- data/doc/Mattock/FileCreationTask.html +0 -177
- data/doc/Mattock/FileTask.html +0 -177
- data/doc/Mattock/MockCommandResult.html +0 -445
- data/doc/Mattock/MultiTask.html +0 -177
- data/doc/Mattock/PipelineChain.html +0 -221
- data/doc/Mattock/PrereqChain.html +0 -221
- data/doc/Mattock/RakeExampleGroup.html +0 -292
- data/doc/Mattock/RakeExampleGroup/Matchers.html +0 -109
- data/doc/Mattock/RakeExampleGroup/TaskManager.html +0 -131
- data/doc/Mattock/RemoteCommandTask.html +0 -423
- data/doc/Mattock/ShellEscaped.html +0 -315
- data/doc/Mattock/Task.html +0 -181
- data/doc/Mattock/TaskLib.html +0 -755
- data/doc/Mattock/TaskMixin.html +0 -668
- data/doc/Mattock/TaskMixin/ClassMethods.html +0 -166
- data/doc/Mattock/TemplateHost.html +0 -320
- data/doc/Mattock/ValiseManager.html +0 -257
- data/doc/Mattock/WrappingChain.html +0 -221
- data/doc/Mattock/YARDExtensions.html +0 -110
- data/doc/Mattock/YARDExtensions/DefineHandler.html +0 -253
- data/doc/Mattock/YARDExtensions/NilFieldsHandler.html +0 -258
- data/doc/Mattock/YARDExtensions/RequiredFieldsHandler.html +0 -205
- data/doc/Mattock/YARDExtensions/SettingHandler.html +0 -529
- data/doc/Mattock/YARDExtensions/SettingsHandler.html +0 -207
- data/doc/RSpecTest.html +0 -233
- data/doc/Ungemmer.html +0 -282
- data/doc/_index.html +0 -435
- data/doc/class_list.html +0 -47
- data/doc/coverage/assets/0.5.3/app.js +0 -88
- data/doc/coverage/assets/0.5.3/fancybox/blank.gif +0 -0
- data/doc/coverage/assets/0.5.3/fancybox/fancy_close.png +0 -0
- data/doc/coverage/assets/0.5.3/fancybox/fancy_loading.png +0 -0
- data/doc/coverage/assets/0.5.3/fancybox/fancy_nav_left.png +0 -0
- data/doc/coverage/assets/0.5.3/fancybox/fancy_nav_right.png +0 -0
- data/doc/coverage/assets/0.5.3/fancybox/fancy_shadow_e.png +0 -0
- data/doc/coverage/assets/0.5.3/fancybox/fancy_shadow_n.png +0 -0
- data/doc/coverage/assets/0.5.3/fancybox/fancy_shadow_ne.png +0 -0
- data/doc/coverage/assets/0.5.3/fancybox/fancy_shadow_nw.png +0 -0
- data/doc/coverage/assets/0.5.3/fancybox/fancy_shadow_s.png +0 -0
- data/doc/coverage/assets/0.5.3/fancybox/fancy_shadow_se.png +0 -0
- data/doc/coverage/assets/0.5.3/fancybox/fancy_shadow_sw.png +0 -0
- data/doc/coverage/assets/0.5.3/fancybox/fancy_shadow_w.png +0 -0
- data/doc/coverage/assets/0.5.3/fancybox/fancy_title_left.png +0 -0
- data/doc/coverage/assets/0.5.3/fancybox/fancy_title_main.png +0 -0
- data/doc/coverage/assets/0.5.3/fancybox/fancy_title_over.png +0 -0
- data/doc/coverage/assets/0.5.3/fancybox/fancy_title_right.png +0 -0
- data/doc/coverage/assets/0.5.3/fancybox/fancybox-x.png +0 -0
- data/doc/coverage/assets/0.5.3/fancybox/fancybox-y.png +0 -0
- data/doc/coverage/assets/0.5.3/fancybox/fancybox.png +0 -0
- data/doc/coverage/assets/0.5.3/fancybox/jquery.fancybox-1.3.1.css +0 -363
- data/doc/coverage/assets/0.5.3/fancybox/jquery.fancybox-1.3.1.pack.js +0 -44
- data/doc/coverage/assets/0.5.3/favicon_green.png +0 -0
- data/doc/coverage/assets/0.5.3/favicon_red.png +0 -0
- data/doc/coverage/assets/0.5.3/favicon_yellow.png +0 -0
- data/doc/coverage/assets/0.5.3/highlight.css +0 -129
- data/doc/coverage/assets/0.5.3/highlight.pack.js +0 -1
- data/doc/coverage/assets/0.5.3/jquery-1.6.2.min.js +0 -18
- data/doc/coverage/assets/0.5.3/jquery.dataTables.min.js +0 -152
- data/doc/coverage/assets/0.5.3/jquery.timeago.js +0 -141
- data/doc/coverage/assets/0.5.3/jquery.url.js +0 -174
- data/doc/coverage/assets/0.5.3/loading.gif +0 -0
- data/doc/coverage/assets/0.5.3/magnify.png +0 -0
- data/doc/coverage/assets/0.5.3/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/doc/coverage/assets/0.5.3/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/doc/coverage/assets/0.5.3/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/doc/coverage/assets/0.5.3/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/doc/coverage/assets/0.5.3/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/doc/coverage/assets/0.5.3/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/doc/coverage/assets/0.5.3/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/doc/coverage/assets/0.5.3/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/doc/coverage/assets/0.5.3/smoothness/images/ui-icons_222222_256x240.png +0 -0
- data/doc/coverage/assets/0.5.3/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
- data/doc/coverage/assets/0.5.3/smoothness/images/ui-icons_454545_256x240.png +0 -0
- data/doc/coverage/assets/0.5.3/smoothness/images/ui-icons_888888_256x240.png +0 -0
- data/doc/coverage/assets/0.5.3/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/doc/coverage/assets/0.5.3/smoothness/jquery-ui-1.8.4.custom.css +0 -295
- data/doc/coverage/assets/0.5.3/stylesheet.css +0 -383
- data/doc/coverage/index.html +0 -5169
- data/doc/css/common.css +0 -1
- data/doc/css/full_list.css +0 -55
- data/doc/css/style.css +0 -322
- data/doc/file.README.html +0 -107
- data/doc/file_list.html +0 -49
- data/doc/frames.html +0 -13
- data/doc/index.html +0 -107
- data/doc/js/app.js +0 -205
- data/doc/js/full_list.js +0 -173
- data/doc/js/jquery.js +0 -16
- data/doc/method_list.html +0 -950
- data/doc/top-level-namespace.html +0 -107
@@ -1,166 +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: Mattock::TaskMixin::ClassMethods
|
8
|
-
|
9
|
-
— Documentation by YARD 0.7.5
|
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 (C)</a> »
|
37
|
-
<span class='title'><span class='object_link'><a href="../../Mattock.html" title="Mattock (module)">Mattock</a></span></span> » <span class='title'><span class='object_link'><a href="../TaskMixin.html" title="Mattock::TaskMixin (module)">TaskMixin</a></span></span>
|
38
|
-
»
|
39
|
-
<span class="title">ClassMethods</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: Mattock::TaskMixin::ClassMethods
|
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/mattock/task.rb</dd>
|
76
|
-
|
77
|
-
</dl>
|
78
|
-
<div class="clear"></div>
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
<h2>
|
91
|
-
Instance Method Summary
|
92
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
93
|
-
</h2>
|
94
|
-
|
95
|
-
<ul class="summary">
|
96
|
-
|
97
|
-
<li class="public ">
|
98
|
-
<span class="summary_signature">
|
99
|
-
|
100
|
-
<a href="#default_taskname-instance_method" title="#default_taskname (instance method)">- (Object) <strong>default_taskname</strong>(name) </a>
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
</span>
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
114
|
-
|
115
|
-
</li>
|
116
|
-
|
117
|
-
|
118
|
-
</ul>
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
<div id="instance_method_details" class="method_details_list">
|
124
|
-
<h2>Instance Method Details</h2>
|
125
|
-
|
126
|
-
|
127
|
-
<div class="method_details first">
|
128
|
-
<p class="signature first" id="default_taskname-instance_method">
|
129
|
-
|
130
|
-
- (<tt>Object</tt>) <strong>default_taskname</strong>(name)
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
</p><table class="source_code">
|
135
|
-
<tr>
|
136
|
-
<td>
|
137
|
-
<pre class="lines">
|
138
|
-
|
139
|
-
|
140
|
-
17
|
141
|
-
18
|
142
|
-
19</pre>
|
143
|
-
</td>
|
144
|
-
<td>
|
145
|
-
<pre class="code"><span class="info file"># File 'lib/mattock/task.rb', line 17</span>
|
146
|
-
|
147
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_default_taskname'>default_taskname</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
|
148
|
-
<span class='id identifier rubyid_setting'>setting</span><span class='lparen'>(</span><span class='symbol'>:task_name</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
|
149
|
-
<span class='kw'>end</span></pre>
|
150
|
-
</td>
|
151
|
-
</tr>
|
152
|
-
</table>
|
153
|
-
</div>
|
154
|
-
|
155
|
-
</div>
|
156
|
-
|
157
|
-
</div>
|
158
|
-
|
159
|
-
<div id="footer">
|
160
|
-
Generated on Tue Mar 6 02:47:28 2012 by
|
161
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
162
|
-
0.7.5 (ruby-1.9.2).
|
163
|
-
</div>
|
164
|
-
|
165
|
-
</body>
|
166
|
-
</html>
|
@@ -1,320 +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: Mattock::TemplateHost
|
8
|
-
|
9
|
-
— Documentation by YARD 0.7.5
|
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 (T)</a> »
|
37
|
-
<span class='title'><span class='object_link'><a href="../Mattock.html" title="Mattock (module)">Mattock</a></span></span>
|
38
|
-
»
|
39
|
-
<span class="title">TemplateHost</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: Mattock::TemplateHost
|
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/mattock/template-host.rb</dd>
|
76
|
-
|
77
|
-
</dl>
|
78
|
-
<div class="clear"></div>
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
87
|
-
<ul class="summary">
|
88
|
-
|
89
|
-
<li class="public ">
|
90
|
-
<span class="summary_signature">
|
91
|
-
|
92
|
-
<a href="#valise-instance_method" title="#valise (instance method)">- (Object) <strong>valise</strong> </a>
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
</span>
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
<span class="summary_desc"><div class='inline'>
|
109
|
-
<p>Returns the value of attribute valise.</p>
|
110
|
-
</div></span>
|
111
|
-
|
112
|
-
</li>
|
113
|
-
|
114
|
-
|
115
|
-
</ul>
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
<h2>
|
122
|
-
Class Method Summary
|
123
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
124
|
-
</h2>
|
125
|
-
|
126
|
-
<ul class="summary">
|
127
|
-
|
128
|
-
<li class="public ">
|
129
|
-
<span class="summary_signature">
|
130
|
-
|
131
|
-
<a href="#template_cache-class_method" title="template_cache (class method)">+ (Object) <strong>template_cache</strong> </a>
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
</span>
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
145
|
-
|
146
|
-
</li>
|
147
|
-
|
148
|
-
|
149
|
-
</ul>
|
150
|
-
|
151
|
-
<h2>
|
152
|
-
Instance Method Summary
|
153
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
154
|
-
</h2>
|
155
|
-
|
156
|
-
<ul class="summary">
|
157
|
-
|
158
|
-
<li class="public ">
|
159
|
-
<span class="summary_signature">
|
160
|
-
|
161
|
-
<a href="#render-instance_method" title="#render (instance method)">- (Object) <strong>render</strong>(path, locals = nil) </a>
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
</span>
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
175
|
-
|
176
|
-
</li>
|
177
|
-
|
178
|
-
|
179
|
-
</ul>
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
<div id="instance_attr_details" class="attr_details">
|
184
|
-
<h2>Instance Attribute Details</h2>
|
185
|
-
|
186
|
-
|
187
|
-
<span id="valise=-instance_method"></span>
|
188
|
-
<span id="valise-instance_method"></span>
|
189
|
-
<div class="method_details first">
|
190
|
-
<p class="signature first" id="valise-instance_method">
|
191
|
-
|
192
|
-
- (<tt>Object</tt>) <strong>valise</strong>
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
</p><div class="docstring">
|
197
|
-
<div class="discussion">
|
198
|
-
|
199
|
-
<p>Returns the value of attribute valise</p>
|
200
|
-
|
201
|
-
|
202
|
-
</div>
|
203
|
-
</div>
|
204
|
-
<div class="tags">
|
205
|
-
|
206
|
-
|
207
|
-
</div><table class="source_code">
|
208
|
-
<tr>
|
209
|
-
<td>
|
210
|
-
<pre class="lines">
|
211
|
-
|
212
|
-
|
213
|
-
42
|
214
|
-
43
|
215
|
-
44</pre>
|
216
|
-
</td>
|
217
|
-
<td>
|
218
|
-
<pre class="code"><span class="info file"># File 'lib/mattock/template-host.rb', line 42</span>
|
219
|
-
|
220
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_valise'>valise</span>
|
221
|
-
<span class='ivar'>@valise</span>
|
222
|
-
<span class='kw'>end</span></pre>
|
223
|
-
</td>
|
224
|
-
</tr>
|
225
|
-
</table>
|
226
|
-
</div>
|
227
|
-
|
228
|
-
</div>
|
229
|
-
|
230
|
-
|
231
|
-
<div id="class_method_details" class="method_details_list">
|
232
|
-
<h2>Class Method Details</h2>
|
233
|
-
|
234
|
-
|
235
|
-
<div class="method_details first">
|
236
|
-
<p class="signature first" id="template_cache-class_method">
|
237
|
-
|
238
|
-
+ (<tt>Object</tt>) <strong>template_cache</strong>
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
</p><table class="source_code">
|
243
|
-
<tr>
|
244
|
-
<td>
|
245
|
-
<pre class="lines">
|
246
|
-
|
247
|
-
|
248
|
-
38
|
249
|
-
39
|
250
|
-
40</pre>
|
251
|
-
</td>
|
252
|
-
<td>
|
253
|
-
<pre class="code"><span class="info file"># File 'lib/mattock/template-host.rb', line 38</span>
|
254
|
-
|
255
|
-
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_template_cache'>template_cache</span>
|
256
|
-
<span class='ivar'>@template_cache</span> <span class='op'>||=</span> <span class='const'>Tilt</span><span class='op'>::</span><span class='const'>Cache</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
257
|
-
<span class='kw'>end</span></pre>
|
258
|
-
</td>
|
259
|
-
</tr>
|
260
|
-
</table>
|
261
|
-
</div>
|
262
|
-
|
263
|
-
</div>
|
264
|
-
|
265
|
-
<div id="instance_method_details" class="method_details_list">
|
266
|
-
<h2>Instance Method Details</h2>
|
267
|
-
|
268
|
-
|
269
|
-
<div class="method_details first">
|
270
|
-
<p class="signature first" id="render-instance_method">
|
271
|
-
|
272
|
-
- (<tt>Object</tt>) <strong>render</strong>(path, locals = nil)
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
</p><table class="source_code">
|
277
|
-
<tr>
|
278
|
-
<td>
|
279
|
-
<pre class="lines">
|
280
|
-
|
281
|
-
|
282
|
-
44
|
283
|
-
45
|
284
|
-
46
|
285
|
-
47
|
286
|
-
48
|
287
|
-
49
|
288
|
-
50
|
289
|
-
51
|
290
|
-
52</pre>
|
291
|
-
</td>
|
292
|
-
<td>
|
293
|
-
<pre class="code"><span class="info file"># File 'lib/mattock/template-host.rb', line 44</span>
|
294
|
-
|
295
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_render'>render</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_locals'>locals</span><span class='op'>=</span><span class='kw'>nil</span><span class='rparen'>)</span>
|
296
|
-
<span class='id identifier rubyid_template'>template</span> <span class='op'>=</span> <span class='const'>TemplateHost</span><span class='op'>::</span><span class='id identifier rubyid_template_cache'>template_cache</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span> <span class='kw'>do</span>
|
297
|
-
<span class='const'>Tilt</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_tmpl'>tmpl</span><span class='op'>|</span>
|
298
|
-
<span class='id identifier rubyid_valise'>valise</span><span class='period'>.</span><span class='id identifier rubyid_find'>find</span><span class='lparen'>(</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>templates</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span> <span class='op'>+</span> <span class='id identifier rubyid_valise'>valise</span><span class='period'>.</span><span class='id identifier rubyid_unpath'>unpath</span><span class='lparen'>(</span><span class='id identifier rubyid_tmpl'>tmpl</span><span class='period'>.</span><span class='id identifier rubyid_file'>file</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_contents'>contents</span>
|
299
|
-
<span class='kw'>end</span>
|
300
|
-
<span class='kw'>end</span>
|
301
|
-
|
302
|
-
<span class='id identifier rubyid_template'>template</span><span class='period'>.</span><span class='id identifier rubyid_render'>render</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='id identifier rubyid_locals'>locals</span><span class='rparen'>)</span>
|
303
|
-
<span class='kw'>end</span></pre>
|
304
|
-
</td>
|
305
|
-
</tr>
|
306
|
-
</table>
|
307
|
-
</div>
|
308
|
-
|
309
|
-
</div>
|
310
|
-
|
311
|
-
</div>
|
312
|
-
|
313
|
-
<div id="footer">
|
314
|
-
Generated on Tue Mar 6 02:47:29 2012 by
|
315
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
316
|
-
0.7.5 (ruby-1.9.2).
|
317
|
-
</div>
|
318
|
-
|
319
|
-
</body>
|
320
|
-
</html>
|