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