rbatch 1.6.6 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.ja.md +11 -11
- data/README.md +12 -12
- data/Rakefile +2 -2
- data/doc/rdoc/CHANGELOG.html +144 -163
- data/doc/rdoc/LICENSE.html +79 -73
- data/doc/rdoc/RBatch/Cmd.html +293 -308
- data/doc/rdoc/RBatch/CmdException.html +141 -140
- data/doc/rdoc/RBatch/CmdResult.html +462 -469
- data/doc/rdoc/RBatch/Config.html +314 -329
- data/doc/rdoc/RBatch/Log.html +677 -709
- data/doc/rdoc/RBatch.html +425 -432
- data/doc/rdoc/created.rid +8 -8
- data/doc/rdoc/index.html +123 -117
- data/doc/rdoc/lib/rbatch/cmd_rb.html +42 -42
- data/doc/rdoc/lib/rbatch/config_rb.html +42 -42
- data/doc/rdoc/lib/rbatch/log_rb.html +44 -44
- data/doc/rdoc/lib/rbatch_rb.html +44 -44
- data/doc/rdoc/rdoc.css +365 -308
- data/lib/rbatch/log.rb +13 -3
- data/sample/bin/log_backup.rb +20 -0
- data/sample/conf/log_backup.yaml +4 -0
- data/sample/log/20130129_log_backup.log +95 -0
- data/test/cases/test_log.rb +0 -7
- metadata +6 -3
data/doc/rdoc/RBatch/Config.html
CHANGED
@@ -1,354 +1,339 @@
|
|
1
|
-
<?xml version="1.0" encoding="
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
-
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
4
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
5
|
<head>
|
6
|
-
|
6
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
7
7
|
|
8
|
-
|
8
|
+
<title>Class: RBatch::Config</title>
|
9
9
|
|
10
|
-
|
10
|
+
<link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
|
11
11
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
<script src="../js/quicksearch.js" type="text/javascript"
|
17
|
-
charset="utf-8"></script>
|
18
|
-
<script src="../js/darkfish.js" type="text/javascript"
|
19
|
-
charset="utf-8"></script>
|
12
|
+
<script src="../js/jquery.js" type="text/javascript" charset="utf-8"></script>
|
13
|
+
<script src="../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
|
14
|
+
<script src="../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
|
15
|
+
<script src="../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
|
20
16
|
|
21
17
|
</head>
|
22
|
-
<body class="class">
|
18
|
+
<body id="top" class="class">
|
23
19
|
|
24
|
-
|
25
|
-
|
26
|
-
|
20
|
+
<div id="metadata">
|
21
|
+
<div id="home-metadata">
|
22
|
+
<div id="home-section" class="section">
|
27
23
|
<h3 class="section-header">
|
28
24
|
<a href="../index.html">Home</a>
|
29
25
|
<a href="../index.html#classes">Classes</a>
|
30
26
|
<a href="../index.html#methods">Methods</a>
|
31
27
|
</h3>
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
Read config file and return hash opject.
|
155
|
-
</p>
|
156
|
-
<p>
|
157
|
-
Default config file path is “../conf/(Program Base name).yaml“
|
158
|
-
</p>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
<div id="file-metadata">
|
32
|
+
<div id="file-list-section" class="section">
|
33
|
+
<h3 class="section-header">In Files</h3>
|
34
|
+
<div class="section-body">
|
35
|
+
<ul>
|
36
|
+
|
37
|
+
<li><a href="../lib/rbatch/config_rb.html?TB_iframe=true&height=550&width=785"
|
38
|
+
class="thickbox" title="lib/rbatch/config.rb">lib/rbatch/config.rb</a></li>
|
39
|
+
|
40
|
+
</ul>
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
|
44
|
+
|
45
|
+
</div>
|
46
|
+
|
47
|
+
<div id="class-metadata">
|
48
|
+
|
49
|
+
<!-- Parent Class -->
|
50
|
+
<div id="parent-class-section" class="section">
|
51
|
+
<h3 class="section-header">Parent</h3>
|
52
|
+
|
53
|
+
<p class="link">Object</p>
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
<!-- Method Quickref -->
|
64
|
+
<div id="method-list-section" class="section">
|
65
|
+
<h3 class="section-header">Methods</h3>
|
66
|
+
<ul class="link-list">
|
67
|
+
|
68
|
+
<li><a href="#method-c-new">::new</a></li>
|
69
|
+
|
70
|
+
<li><a href="#method-i-5B-5D">#[]</a></li>
|
71
|
+
|
72
|
+
<li><a href="#method-i-path">#path</a></li>
|
73
|
+
|
74
|
+
<li><a href="#method-i-to_s">#to_s</a></li>
|
75
|
+
|
76
|
+
</ul>
|
77
|
+
</div>
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
</div>
|
82
|
+
|
83
|
+
<div id="project-metadata">
|
84
|
+
|
85
|
+
|
86
|
+
<div id="fileindex-section" class="section project-section">
|
87
|
+
<h3 class="section-header">Files</h3>
|
88
|
+
<ul>
|
89
|
+
|
90
|
+
<li class="file"><a href="../CHANGELOG.html">CHANGELOG</a></li>
|
91
|
+
|
92
|
+
<li class="file"><a href="../LICENSE.html">LICENSE</a></li>
|
93
|
+
|
94
|
+
</ul>
|
95
|
+
</div>
|
96
|
+
|
97
|
+
|
98
|
+
<div id="classindex-section" class="section project-section">
|
99
|
+
<h3 class="section-header">Class/Module Index
|
100
|
+
<span class="search-toggle"><img src="../images/find.png"
|
101
|
+
height="16" width="16" alt="[+]"
|
102
|
+
title="show/hide quicksearch" /></span></h3>
|
103
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
104
|
+
<fieldset>
|
105
|
+
<legend>Quicksearch</legend>
|
106
|
+
<input type="text" name="quicksearch" value=""
|
107
|
+
class="quicksearch-field" />
|
108
|
+
</fieldset>
|
109
|
+
</form>
|
110
|
+
|
111
|
+
<ul class="link-list">
|
112
|
+
|
113
|
+
<li><a href="../RBatch.html">RBatch</a></li>
|
114
|
+
|
115
|
+
<li><a href="../RBatch/Cmd.html">RBatch::Cmd</a></li>
|
116
|
+
|
117
|
+
<li><a href="../RBatch/CmdException.html">RBatch::CmdException</a></li>
|
118
|
+
|
119
|
+
<li><a href="../RBatch/CmdResult.html">RBatch::CmdResult</a></li>
|
120
|
+
|
121
|
+
<li><a href="../RBatch/Config.html">RBatch::Config</a></li>
|
122
|
+
|
123
|
+
<li><a href="../RBatch/Log.html">RBatch::Log</a></li>
|
124
|
+
|
125
|
+
<li><a href="../RBatch/RBatch.html">RBatch::RBatch</a></li>
|
126
|
+
|
127
|
+
<li><a href="../RBatch/RBatch/RBatch.html">RBatch::RBatch::RBatch</a></li>
|
128
|
+
|
129
|
+
<li><a href="../RBatch/RBatch/RBatch/Config.html">RBatch::RBatch::RBatch::Config</a></li>
|
130
|
+
|
131
|
+
<li><a href="../RBatch/RBatch/RBatch/Config/Exception.html">RBatch::RBatch::RBatch::Config::Exception</a></li>
|
132
|
+
|
133
|
+
</ul>
|
134
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
135
|
+
</div>
|
136
|
+
|
137
|
+
|
138
|
+
</div>
|
139
|
+
</div>
|
140
|
+
|
141
|
+
<div id="documentation">
|
142
|
+
<h1 class="class">RBatch::Config</h1>
|
143
|
+
|
144
|
+
<div id="description" class="description">
|
145
|
+
|
146
|
+
<p>Read config file and return hash opject.</p>
|
147
|
+
|
148
|
+
<p>Default config file path is “../conf/(Program Base name).yaml”</p>
|
149
|
+
|
159
150
|
<h4>Sample</h4>
|
160
|
-
<p>
|
161
|
-
config : ./conf/sample2.yaml
|
162
|
-
</p>
|
163
|
-
<pre>
|
164
|
-
key: value
|
165
|
-
array:
|
166
|
-
* item1
|
167
|
-
* item2
|
168
|
-
* item3
|
169
|
-
</pre>
|
170
|
-
<p>
|
171
|
-
script : ./bin/sample2.rb
|
172
|
-
</p>
|
173
|
-
<pre>
|
174
|
-
require 'rbatch'
|
175
|
-
p RBatch::Config.new
|
176
|
-
# or p RBatch::config
|
177
|
-
=> {"key" => "value", "array" => ["item1", "item2", "item3"]}</pre>
|
178
|
-
|
179
|
-
</div>
|
180
|
-
|
181
|
-
<!-- Constants -->
|
182
|
-
|
183
|
-
|
184
|
-
<!-- Attributes -->
|
185
|
-
|
186
|
-
|
187
|
-
<!-- Methods -->
|
188
|
-
|
189
|
-
<div id="public-class-method-details" class="method-section section">
|
190
|
-
<h3 class="section-header">Public Class Methods</h3>
|
191
|
-
|
192
|
-
|
193
|
-
<div id="new-method" class="method-detail ">
|
194
|
-
<a name="method-c-new"></a>
|
195
|
-
|
196
|
-
<div class="method-heading">
|
197
|
-
|
198
|
-
<span class="method-name">new</span><span
|
199
|
-
class="method-args">()</span>
|
200
|
-
<span class="method-click-advice">click to toggle source</span>
|
201
|
-
|
202
|
-
</div>
|
203
|
-
|
204
|
-
<div class="method-description">
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
<div class="method-source-code"
|
211
|
-
id="new-source">
|
212
|
-
<pre>
|
213
|
-
<span class="ruby-comment cmt"># File lib/rbatch/config.rb, line 29</span>
|
214
|
-
29: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
|
215
|
-
30: <span class="ruby-identifier">file</span> = <span class="ruby-constant">Pathname</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-constant">RBatch</span>.<span class="ruby-identifier">program_name</span>)).<span class="ruby-identifier">sub_ext</span>(<span class="ruby-value str">".yaml"</span>).<span class="ruby-identifier">to_s</span>
|
216
|
-
31: <span class="ruby-identifier">dir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-constant">RBatch</span>.<span class="ruby-identifier">program_name</span>),<span class="ruby-value str">".."</span>),<span class="ruby-value str">"conf"</span>)
|
217
|
-
32: <span class="ruby-ivar">@path</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">dir</span>,<span class="ruby-identifier">file</span>)
|
218
|
-
33: <span class="ruby-ivar">@config</span> = <span class="ruby-constant">YAML</span><span class="ruby-operator">::</span><span class="ruby-identifier">load_file</span>(<span class="ruby-ivar">@path</span>)
|
219
|
-
34: <span class="ruby-keyword kw">end</span></pre>
|
220
|
-
</div>
|
221
|
-
|
222
|
-
</div>
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
</div>
|
228
|
-
|
229
|
-
|
230
|
-
</div>
|
231
|
-
|
232
|
-
<div id="public-instance-method-details" class="method-section section">
|
233
|
-
<h3 class="section-header">Public Instance Methods</h3>
|
234
|
-
|
235
|
-
|
236
|
-
<div id="--method" class="method-detail ">
|
237
|
-
<a name="method-i-%5B%5D"></a>
|
238
|
-
|
239
|
-
<div class="method-heading">
|
240
|
-
|
241
|
-
<span class="method-name">[]</span><span
|
242
|
-
class="method-args">(key)</span>
|
243
|
-
<span class="method-click-advice">click to toggle source</span>
|
244
|
-
|
245
|
-
</div>
|
246
|
-
|
247
|
-
<div class="method-description">
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
<div class="method-source-code"
|
254
|
-
id="--source">
|
255
|
-
<pre>
|
256
|
-
<span class="ruby-comment cmt"># File lib/rbatch/config.rb, line 35</span>
|
257
|
-
35: <span class="ruby-keyword kw">def</span><span class="ruby-operator">[]</span>(<span class="ruby-identifier">key</span>)
|
258
|
-
36: <span class="ruby-identifier">raise</span> <span class="ruby-constant">RBatch</span><span class="ruby-operator">::</span><span class="ruby-constant">Config</span><span class="ruby-operator">::</span><span class="ruby-constant">Exception</span>, <span class="ruby-node">"Value of key=\"#{key}\" is nil"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@config</span>[<span class="ruby-identifier">key</span>].<span class="ruby-identifier">nil?</span>
|
259
|
-
37: <span class="ruby-ivar">@config</span>[<span class="ruby-identifier">key</span>]
|
260
|
-
38: <span class="ruby-keyword kw">end</span></pre>
|
261
|
-
</div>
|
262
|
-
|
263
|
-
</div>
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
</div>
|
269
|
-
|
270
|
-
|
271
|
-
<div id="path-method" class="method-detail ">
|
272
|
-
<a name="method-i-path"></a>
|
273
|
-
|
274
|
-
<div class="method-heading">
|
275
|
-
|
276
|
-
<span class="method-name">path</span><span
|
277
|
-
class="method-args">()</span>
|
278
|
-
<span class="method-click-advice">click to toggle source</span>
|
279
|
-
|
280
|
-
</div>
|
281
|
-
|
282
|
-
<div class="method-description">
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
<div class="method-source-code"
|
289
|
-
id="path-source">
|
290
|
-
<pre>
|
291
|
-
<span class="ruby-comment cmt"># File lib/rbatch/config.rb, line 39</span>
|
292
|
-
39: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">path</span> ; <span class="ruby-ivar">@path</span> ; <span class="ruby-keyword kw">end</span></pre>
|
293
|
-
</div>
|
294
|
-
|
295
|
-
</div>
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
</div>
|
301
|
-
|
302
|
-
|
303
|
-
<div id="to-s-method" class="method-detail ">
|
304
|
-
<a name="method-i-to_s"></a>
|
305
|
-
|
306
|
-
<div class="method-heading">
|
307
|
-
|
308
|
-
<span class="method-name">to_s</span><span
|
309
|
-
class="method-args">()</span>
|
310
|
-
<span class="method-click-advice">click to toggle source</span>
|
311
|
-
|
312
|
-
</div>
|
313
|
-
|
314
|
-
<div class="method-description">
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
<div class="method-source-code"
|
321
|
-
id="to-s-source">
|
322
|
-
<pre>
|
323
|
-
<span class="ruby-comment cmt"># File lib/rbatch/config.rb, line 40</span>
|
324
|
-
40: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span> ; <span class="ruby-ivar">@config</span>.<span class="ruby-identifier">to_s</span> ;<span class="ruby-keyword kw">end</span></pre>
|
325
|
-
</div>
|
326
|
-
|
327
|
-
</div>
|
328
151
|
|
329
|
-
|
152
|
+
<p>config : ./conf/sample2.yaml</p>
|
153
|
+
|
154
|
+
<pre>key: value
|
155
|
+
array:
|
156
|
+
- item1
|
157
|
+
- item2
|
158
|
+
- item3</pre>
|
159
|
+
|
160
|
+
<p>script : ./bin/sample2.rb</p>
|
330
161
|
|
331
|
-
|
332
|
-
|
162
|
+
<pre>require 'rbatch'
|
163
|
+
p RBatch::Config.new
|
164
|
+
# or p RBatch::config
|
165
|
+
=> {"key" => "value", "array" => ["item1", "item2", "item3"]}</pre>
|
333
166
|
|
334
|
-
|
335
|
-
</div>
|
336
|
-
|
167
|
+
</div><!-- description -->
|
337
168
|
|
338
|
-
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
<div id="5Buntitled-5D" class="documentation-section">
|
173
|
+
|
339
174
|
|
175
|
+
|
340
176
|
|
341
|
-
|
342
|
-
|
343
|
-
<p>Disabled; run with --debug to generate this.</p>
|
344
|
-
|
345
|
-
</div>
|
177
|
+
|
346
178
|
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
179
|
+
|
180
|
+
|
181
|
+
<!-- Methods -->
|
182
|
+
|
183
|
+
<div id="public-class-method-details" class="method-section section">
|
184
|
+
<h3 class="section-header">Public Class Methods</h3>
|
185
|
+
|
186
|
+
|
187
|
+
<div id="new-method" class="method-detail ">
|
188
|
+
<a name="method-c-new"></a>
|
189
|
+
|
190
|
+
|
191
|
+
<div class="method-heading">
|
192
|
+
<span class="method-name">new</span><span
|
193
|
+
class="method-args">()</span>
|
194
|
+
<span class="method-click-advice">click to toggle source</span>
|
195
|
+
</div>
|
196
|
+
|
197
|
+
|
198
|
+
<div class="method-description">
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
<div class="method-source-code" id="new-source">
|
205
|
+
<pre>
|
206
|
+
<span class="ruby-comment"># File lib/rbatch/config.rb, line 29</span>
|
207
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>
|
208
|
+
<span class="ruby-identifier">file</span> = <span class="ruby-constant">Pathname</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-constant">RBatch</span>.<span class="ruby-identifier">program_name</span>)).<span class="ruby-identifier">sub_ext</span>(<span class="ruby-string">".yaml"</span>).<span class="ruby-identifier">to_s</span>
|
209
|
+
<span class="ruby-identifier">dir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-constant">RBatch</span>.<span class="ruby-identifier">program_name</span>),<span class="ruby-string">".."</span>),<span class="ruby-string">"conf"</span>)
|
210
|
+
<span class="ruby-ivar">@path</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">dir</span>,<span class="ruby-identifier">file</span>)
|
211
|
+
<span class="ruby-ivar">@config</span> = <span class="ruby-constant">YAML</span><span class="ruby-operator">::</span><span class="ruby-identifier">load_file</span>(<span class="ruby-ivar">@path</span>)
|
212
|
+
<span class="ruby-keyword">end</span></pre>
|
213
|
+
</div><!-- new-source -->
|
214
|
+
|
215
|
+
</div>
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
</div><!-- new-method -->
|
221
|
+
|
222
|
+
|
223
|
+
</div><!-- public-class-method-details -->
|
224
|
+
|
225
|
+
<div id="public-instance-method-details" class="method-section section">
|
226
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
227
|
+
|
228
|
+
|
229
|
+
<div id="5B-5D-method" class="method-detail ">
|
230
|
+
<a name="method-i-5B-5D"></a>
|
231
|
+
|
232
|
+
|
233
|
+
<div class="method-heading">
|
234
|
+
<span class="method-name">[]</span><span
|
235
|
+
class="method-args">(key)</span>
|
236
|
+
<span class="method-click-advice">click to toggle source</span>
|
237
|
+
</div>
|
238
|
+
|
239
|
+
|
240
|
+
<div class="method-description">
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
|
246
|
+
<div class="method-source-code" id="5B-5D-source">
|
247
|
+
<pre>
|
248
|
+
<span class="ruby-comment"># File lib/rbatch/config.rb, line 35</span>
|
249
|
+
<span class="ruby-keyword">def</span><span class="ruby-operator">[]</span>(<span class="ruby-identifier">key</span>)
|
250
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">RBatch</span><span class="ruby-operator">::</span><span class="ruby-constant">Config</span><span class="ruby-operator">::</span><span class="ruby-constant">Exception</span>, <span class="ruby-node">"Value of key=\"#{key}\" is nil"</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@config</span>[<span class="ruby-identifier">key</span>].<span class="ruby-identifier">nil?</span>
|
251
|
+
<span class="ruby-ivar">@config</span>[<span class="ruby-identifier">key</span>]
|
252
|
+
<span class="ruby-keyword">end</span></pre>
|
253
|
+
</div><!-- 5B-5D-source -->
|
254
|
+
|
255
|
+
</div>
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
|
260
|
+
</div><!-- 5B-5D-method -->
|
261
|
+
|
262
|
+
|
263
|
+
<div id="path-method" class="method-detail ">
|
264
|
+
<a name="method-i-path"></a>
|
265
|
+
|
266
|
+
|
267
|
+
<div class="method-heading">
|
268
|
+
<span class="method-name">path</span><span
|
269
|
+
class="method-args">()</span>
|
270
|
+
<span class="method-click-advice">click to toggle source</span>
|
271
|
+
</div>
|
272
|
+
|
273
|
+
|
274
|
+
<div class="method-description">
|
275
|
+
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
|
280
|
+
<div class="method-source-code" id="path-source">
|
281
|
+
<pre>
|
282
|
+
<span class="ruby-comment"># File lib/rbatch/config.rb, line 39</span>
|
283
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">path</span> ; <span class="ruby-ivar">@path</span> ; <span class="ruby-keyword">end</span></pre>
|
284
|
+
</div><!-- path-source -->
|
285
|
+
|
286
|
+
</div>
|
287
|
+
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
</div><!-- path-method -->
|
292
|
+
|
293
|
+
|
294
|
+
<div id="to_s-method" class="method-detail ">
|
295
|
+
<a name="method-i-to_s"></a>
|
296
|
+
|
297
|
+
|
298
|
+
<div class="method-heading">
|
299
|
+
<span class="method-name">to_s</span><span
|
300
|
+
class="method-args">()</span>
|
301
|
+
<span class="method-click-advice">click to toggle source</span>
|
302
|
+
</div>
|
303
|
+
|
304
|
+
|
305
|
+
<div class="method-description">
|
306
|
+
|
307
|
+
|
308
|
+
|
309
|
+
|
310
|
+
|
311
|
+
<div class="method-source-code" id="to_s-source">
|
312
|
+
<pre>
|
313
|
+
<span class="ruby-comment"># File lib/rbatch/config.rb, line 40</span>
|
314
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span> ; <span class="ruby-ivar">@config</span>.<span class="ruby-identifier">to_s</span> ;<span class="ruby-keyword">end</span></pre>
|
315
|
+
</div><!-- to_s-source -->
|
316
|
+
|
317
|
+
</div>
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
</div><!-- to_s-method -->
|
323
|
+
|
324
|
+
|
325
|
+
</div><!-- public-instance-method-details -->
|
326
|
+
|
327
|
+
</div><!-- 5Buntitled-5D -->
|
328
|
+
|
329
|
+
|
330
|
+
</div><!-- documentation -->
|
331
|
+
|
332
|
+
<div id="validator-badges">
|
333
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
334
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
335
|
+
Rdoc Generator</a> 2</small>.</p>
|
336
|
+
</div>
|
352
337
|
|
353
338
|
</body>
|
354
339
|
</html>
|