rconfig 0.4.2 → 0.4.3
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/ChangeLog +7 -0
- data/Gemfile +1 -0
- data/Gemfile.lock +2 -0
- data/Rakefile +11 -8
- data/doc/Array.html +184 -0
- data/doc/Hash.html +360 -0
- data/doc/NilClass.html +233 -0
- data/doc/RConfig.html +328 -0
- data/doc/RConfig/Callbacks.html +295 -0
- data/doc/RConfig/Cascade.html +316 -0
- data/doc/RConfig/Config.html +441 -0
- data/doc/RConfig/ConfigError.html +187 -0
- data/doc/RConfig/Constants.html +271 -0
- data/doc/RConfig/CoreMethods.html +814 -0
- data/doc/RConfig/DisabledLogger.html +424 -0
- data/doc/RConfig/Exceptions.html +266 -0
- data/doc/RConfig/Generators.html +186 -0
- data/doc/RConfig/Generators/InstallGenerator.html +233 -0
- data/doc/RConfig/InvalidLoadPathError.html +187 -0
- data/doc/RConfig/LoadPaths.html +375 -0
- data/doc/RConfig/Logger.html +184 -0
- data/doc/RConfig/PropertiesFile.html +399 -0
- data/doc/RConfig/Reload.html +481 -0
- data/doc/RConfig/Settings.html +188 -0
- data/doc/RConfig/Utils.html +841 -0
- data/doc/README_rdoc.html +331 -0
- data/doc/String.html +184 -0
- data/doc/created.rid +21 -1
- data/doc/index.html +423 -20
- data/doc/lib/generators/rconfig/install_generator_rb.html +52 -0
- data/doc/lib/generators/rconfig/templates/rconfig_rb.html +56 -0
- data/doc/lib/rconfig/callbacks_rb.html +52 -0
- data/doc/lib/rconfig/cascade_rb.html +52 -0
- data/doc/lib/rconfig/config_rb.html +61 -0
- data/doc/lib/rconfig/constants_rb.html +52 -0
- data/doc/lib/rconfig/core_ext/array_rb.html +52 -0
- data/doc/lib/rconfig/core_ext/hash_rb.html +61 -0
- data/doc/lib/rconfig/core_ext/nil_rb.html +52 -0
- data/doc/lib/rconfig/core_ext/string_rb.html +52 -0
- data/doc/lib/rconfig/core_methods_rb.html +55 -0
- data/doc/lib/rconfig/exceptions_rb.html +58 -0
- data/doc/lib/rconfig/load_paths_rb.html +52 -0
- data/doc/lib/rconfig/logger_rb.html +52 -0
- data/doc/lib/rconfig/properties_file_rb.html +93 -0
- data/doc/lib/rconfig/reload_rb.html +52 -0
- data/doc/lib/rconfig/settings_rb.html +52 -0
- data/doc/lib/rconfig/utils_rb.html +52 -0
- data/doc/lib/rconfig_rb.html +151 -0
- data/doc/rdoc.css +706 -0
- data/lib/rconfig.rb +1 -1
- data/lib/rconfig/load_paths.rb +2 -2
- data/lib/tasks/rdoc.rake +3 -4
- data/rconfig.gemspec +4 -2
- data/spec/config/erb_contents.yml +3 -0
- data/spec/config/props_config.conf +18 -0
- data/spec/config/spec.yml +17 -0
- data/spec/config/xml_config.xml +22 -0
- data/spec/config2/.gitkeep +0 -0
- data/spec/rconfig/load_paths_spec.rb +37 -0
- data/spec/rconfig/reload_spec.rb +37 -0
- data/spec/rconfig_spec.rb +61 -3
- data/spec/spec_helper.rb +12 -8
- metadata +82 -40
- data/doc/classes/ClassVariables.html +0 -111
- data/doc/classes/ConfigError.html +0 -120
- data/doc/classes/ConfigHash.html +0 -354
- data/doc/classes/Constants.html +0 -226
- data/doc/classes/Hash.html +0 -269
- data/doc/classes/InvalidConfigPathError.html +0 -119
- data/doc/classes/Object.html +0 -220
- data/doc/classes/PropertiesFileParser.html +0 -282
- data/doc/classes/RConfig.html +0 -1745
- data/doc/files/README_rdoc.html +0 -271
- data/doc/files/lib/rconfig/class_variables_rb.html +0 -107
- data/doc/files/lib/rconfig/config_hash_rb.html +0 -114
- data/doc/files/lib/rconfig/constants_rb.html +0 -101
- data/doc/files/lib/rconfig/core_ext/hash_rb.html +0 -114
- data/doc/files/lib/rconfig/core_ext/object_rb.html +0 -101
- data/doc/files/lib/rconfig/core_ext_rb.html +0 -114
- data/doc/files/lib/rconfig/exceptions_rb.html +0 -110
- data/doc/files/lib/rconfig/properties_file_parser_rb.html +0 -146
- data/doc/files/lib/rconfig/rconfig_rb.html +0 -186
- data/doc/files/lib/rconfig_rb.html +0 -117
- data/doc/fr_class_index.html +0 -35
- data/doc/fr_file_index.html +0 -37
- data/doc/fr_method_index.html +0 -75
- data/doc/rdoc-style.css +0 -208
- data/lib/tasks/gem.rake +0 -14
- data/lib/tasks/spec.rake +0 -25
- data/spec/core_ext/object_spec.rb +0 -44
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
5
|
+
<head>
|
|
6
|
+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
|
7
|
+
|
|
8
|
+
<title>Module: RConfig::LoadPaths</title>
|
|
9
|
+
|
|
10
|
+
<link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
|
|
11
|
+
|
|
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>
|
|
20
|
+
|
|
21
|
+
</head>
|
|
22
|
+
<body class="module">
|
|
23
|
+
|
|
24
|
+
<div id="metadata">
|
|
25
|
+
<div id="home-metadata">
|
|
26
|
+
<div id="home-section" class="section">
|
|
27
|
+
<h3 class="section-header">
|
|
28
|
+
<a href="../index.html">Home</a>
|
|
29
|
+
<a href="../index.html#classes">Classes</a>
|
|
30
|
+
<a href="../index.html#methods">Methods</a>
|
|
31
|
+
</h3>
|
|
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/rconfig/load_paths_rb.html?TB_iframe=true&height=550&width=785"
|
|
42
|
+
class="thickbox" title="lib/rconfig/load_paths.rb">lib/rconfig/load_paths.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
|
+
|
|
56
|
+
<!-- Namespace Contents -->
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
<!-- Method Quickref -->
|
|
60
|
+
|
|
61
|
+
<div id="method-list-section" class="section">
|
|
62
|
+
<h3 class="section-header">Methods</h3>
|
|
63
|
+
<ul class="link-list">
|
|
64
|
+
|
|
65
|
+
<li><a href="#method-i-add_load_path">#add_load_path</a></li>
|
|
66
|
+
|
|
67
|
+
<li><a href="#method-i-load_paths_set%3F">#load_paths_set?</a></li>
|
|
68
|
+
|
|
69
|
+
<li><a href="#method-i-parse_load_paths">#parse_load_paths</a></li>
|
|
70
|
+
|
|
71
|
+
<li><a href="#method-i-set_load_paths">#set_load_paths</a></li>
|
|
72
|
+
|
|
73
|
+
</ul>
|
|
74
|
+
</div>
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
<!-- Included Modules -->
|
|
78
|
+
|
|
79
|
+
<div id="includes-section" class="section">
|
|
80
|
+
<h3 class="section-header">Included Modules</h3>
|
|
81
|
+
<ul class="link-list">
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
<li><span class="include">Constants</span></li>
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
</ul>
|
|
88
|
+
</div>
|
|
89
|
+
|
|
90
|
+
</div>
|
|
91
|
+
|
|
92
|
+
<div id="project-metadata">
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
<div id="fileindex-section" class="section project-section">
|
|
96
|
+
<h3 class="section-header">Files</h3>
|
|
97
|
+
<ul>
|
|
98
|
+
|
|
99
|
+
<li class="file"><a href="../README_rdoc.html">README.rdoc</a></li>
|
|
100
|
+
|
|
101
|
+
</ul>
|
|
102
|
+
</div>
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
<div id="classindex-section" class="section project-section">
|
|
106
|
+
<h3 class="section-header">Class Index
|
|
107
|
+
<span class="search-toggle"><img src="../images/find.png"
|
|
108
|
+
height="16" width="16" alt="[+]"
|
|
109
|
+
title="show/hide quicksearch" /></span></h3>
|
|
110
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
|
111
|
+
<fieldset>
|
|
112
|
+
<legend>Quicksearch</legend>
|
|
113
|
+
<input type="text" name="quicksearch" value=""
|
|
114
|
+
class="quicksearch-field" />
|
|
115
|
+
</fieldset>
|
|
116
|
+
</form>
|
|
117
|
+
|
|
118
|
+
<ul class="link-list">
|
|
119
|
+
|
|
120
|
+
<li><a href="../RConfig.html">RConfig</a></li>
|
|
121
|
+
|
|
122
|
+
<li><a href="../RConfig/Callbacks.html">RConfig::Callbacks</a></li>
|
|
123
|
+
|
|
124
|
+
<li><a href="../RConfig/Cascade.html">RConfig::Cascade</a></li>
|
|
125
|
+
|
|
126
|
+
<li><a href="../RConfig/Config.html">RConfig::Config</a></li>
|
|
127
|
+
|
|
128
|
+
<li><a href="../RConfig/ConfigError.html">RConfig::ConfigError</a></li>
|
|
129
|
+
|
|
130
|
+
<li><a href="../RConfig/Constants.html">RConfig::Constants</a></li>
|
|
131
|
+
|
|
132
|
+
<li><a href="../RConfig/CoreMethods.html">RConfig::CoreMethods</a></li>
|
|
133
|
+
|
|
134
|
+
<li><a href="../RConfig/DisabledLogger.html">RConfig::DisabledLogger</a></li>
|
|
135
|
+
|
|
136
|
+
<li><a href="../RConfig/Exceptions.html">RConfig::Exceptions</a></li>
|
|
137
|
+
|
|
138
|
+
<li><a href="../RConfig/Generators.html">RConfig::Generators</a></li>
|
|
139
|
+
|
|
140
|
+
<li><a href="../RConfig/Generators/InstallGenerator.html">RConfig::Generators::InstallGenerator</a></li>
|
|
141
|
+
|
|
142
|
+
<li><a href="../RConfig/InvalidLoadPathError.html">RConfig::InvalidLoadPathError</a></li>
|
|
143
|
+
|
|
144
|
+
<li><a href="../RConfig/LoadPaths.html">RConfig::LoadPaths</a></li>
|
|
145
|
+
|
|
146
|
+
<li><a href="../RConfig/PropertiesFile.html">RConfig::PropertiesFile</a></li>
|
|
147
|
+
|
|
148
|
+
<li><a href="../RConfig/Reload.html">RConfig::Reload</a></li>
|
|
149
|
+
|
|
150
|
+
<li><a href="../RConfig/Settings.html">RConfig::Settings</a></li>
|
|
151
|
+
|
|
152
|
+
<li><a href="../RConfig/Utils.html">RConfig::Utils</a></li>
|
|
153
|
+
|
|
154
|
+
<li><a href="../Array.html">Array</a></li>
|
|
155
|
+
|
|
156
|
+
<li><a href="../Hash.html">Hash</a></li>
|
|
157
|
+
|
|
158
|
+
<li><a href="../NilClass.html">NilClass</a></li>
|
|
159
|
+
|
|
160
|
+
<li><a href="../String.html">String</a></li>
|
|
161
|
+
|
|
162
|
+
</ul>
|
|
163
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
|
164
|
+
</div>
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
</div>
|
|
168
|
+
</div>
|
|
169
|
+
|
|
170
|
+
<div id="documentation">
|
|
171
|
+
<h1 class="module">RConfig::LoadPaths</h1>
|
|
172
|
+
|
|
173
|
+
<div id="description">
|
|
174
|
+
|
|
175
|
+
</div>
|
|
176
|
+
|
|
177
|
+
<!-- Constants -->
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
<!-- Attributes -->
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
<!-- Methods -->
|
|
184
|
+
|
|
185
|
+
<div id="public-instance-method-details" class="method-section section">
|
|
186
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
<div id="add-load-path-method" class="method-detail ">
|
|
190
|
+
<a name="method-i-add_load_path"></a>
|
|
191
|
+
|
|
192
|
+
<div class="method-heading">
|
|
193
|
+
|
|
194
|
+
<span class="method-name">add_load_path</span><span
|
|
195
|
+
class="method-args">(path)</span>
|
|
196
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
197
|
+
|
|
198
|
+
</div>
|
|
199
|
+
|
|
200
|
+
<div class="method-description">
|
|
201
|
+
|
|
202
|
+
<p>
|
|
203
|
+
Adds the specified path to the list of directories to search for
|
|
204
|
+
configuration files. It only allows one path to be entered at a time.
|
|
205
|
+
</p>
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
<div class="method-source-code"
|
|
210
|
+
id="add-load-path-source">
|
|
211
|
+
<pre>
|
|
212
|
+
<span class="ruby-comment cmt"># File lib/rconfig/load_paths.rb, line 21</span>
|
|
213
|
+
21: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_load_path</span>(<span class="ruby-identifier">path</span>)
|
|
214
|
+
22: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">path</span> = <span class="ruby-identifier">parse_load_paths</span>(<span class="ruby-identifier">path</span>).<span class="ruby-identifier">first</span> <span class="ruby-comment cmt"># only accept first one.</span>
|
|
215
|
+
23: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">load_paths</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">path</span>
|
|
216
|
+
24: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">load_paths</span>.<span class="ruby-identifier">uniq!</span>
|
|
217
|
+
25: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">reload</span>(<span class="ruby-keyword kw">true</span>) <span class="ruby-comment cmt"># Load Paths have changed so force a reload</span>
|
|
218
|
+
26: <span class="ruby-keyword kw">end</span>
|
|
219
|
+
27: <span class="ruby-keyword kw">false</span>
|
|
220
|
+
28: <span class="ruby-keyword kw">end</span></pre>
|
|
221
|
+
</div>
|
|
222
|
+
|
|
223
|
+
</div>
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
</div>
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
<div id="load-paths-set--method" class="method-detail ">
|
|
232
|
+
<a name="method-i-load_paths_set%3F"></a>
|
|
233
|
+
|
|
234
|
+
<div class="method-heading">
|
|
235
|
+
|
|
236
|
+
<span class="method-name">load_paths_set?</span><span
|
|
237
|
+
class="method-args">()</span>
|
|
238
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
239
|
+
|
|
240
|
+
</div>
|
|
241
|
+
|
|
242
|
+
<div class="method-description">
|
|
243
|
+
|
|
244
|
+
<p>
|
|
245
|
+
Indicates whether or not config_paths have been set. Returns true if
|
|
246
|
+
self.load_paths has at least one directory.
|
|
247
|
+
</p>
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
<div class="method-source-code"
|
|
252
|
+
id="load-paths-set--source">
|
|
253
|
+
<pre>
|
|
254
|
+
<span class="ruby-comment cmt"># File lib/rconfig/load_paths.rb, line 50</span>
|
|
255
|
+
50: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">load_paths_set?</span>
|
|
256
|
+
51: <span class="ruby-keyword kw">not</span> <span class="ruby-identifier">load_paths</span>.<span class="ruby-identifier">blank?</span>
|
|
257
|
+
52: <span class="ruby-keyword kw">end</span></pre>
|
|
258
|
+
</div>
|
|
259
|
+
|
|
260
|
+
</div>
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
</div>
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
<div id="parse-load-paths-method" class="method-detail ">
|
|
269
|
+
<a name="method-i-parse_load_paths"></a>
|
|
270
|
+
|
|
271
|
+
<div class="method-heading">
|
|
272
|
+
|
|
273
|
+
<span class="method-name">parse_load_paths</span><span
|
|
274
|
+
class="method-args">(paths)</span>
|
|
275
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
276
|
+
|
|
277
|
+
</div>
|
|
278
|
+
|
|
279
|
+
<div class="method-description">
|
|
280
|
+
|
|
281
|
+
<p>
|
|
282
|
+
If the paths are made up of a delimited string, then parse out the
|
|
283
|
+
individual paths. Verify that each path is valid.
|
|
284
|
+
</p>
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
<div class="method-source-code"
|
|
289
|
+
id="parse-load-paths-source">
|
|
290
|
+
<pre>
|
|
291
|
+
<span class="ruby-comment cmt"># File lib/rconfig/load_paths.rb, line 33</span>
|
|
292
|
+
33: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parse_load_paths</span>(<span class="ruby-identifier">paths</span>)
|
|
293
|
+
34: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">paths</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">String</span>
|
|
294
|
+
35: <span class="ruby-identifier">path_sep</span> = (<span class="ruby-identifier">paths</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/;/</span>) <span class="ruby-operator">?</span> <span class="ruby-value str">';'</span> <span class="ruby-operator">:</span> <span class="ruby-value str">':'</span>
|
|
295
|
+
36: <span class="ruby-identifier">paths</span> = <span class="ruby-identifier">paths</span>.<span class="ruby-identifier">split</span>(<span class="ruby-node">/#{path_sep}+/</span>)
|
|
296
|
+
37: <span class="ruby-keyword kw">end</span>
|
|
297
|
+
38: <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-node">"Path(s) must be a String or an Array [#{paths.inspect}]"</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">paths</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Array</span>
|
|
298
|
+
39: <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-node">"Must provide at least one load path: [#{paths.inspect}]"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">paths</span>.<span class="ruby-identifier">empty?</span>
|
|
299
|
+
40: <span class="ruby-identifier">paths</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">dir</span><span class="ruby-operator">|</span>
|
|
300
|
+
41: <span class="ruby-identifier">dir</span> = <span class="ruby-constant">CONFIG_ROOT</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">dir</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'CONFIG_ROOT'</span>
|
|
301
|
+
42: <span class="ruby-identifier">raise</span> <span class="ruby-constant">InvalidLoadPathError</span>, <span class="ruby-node">"This directory is invalid: [#{dir.inspect}]"</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-identifier">dir</span>)
|
|
302
|
+
43: <span class="ruby-keyword kw">end</span>
|
|
303
|
+
44: <span class="ruby-identifier">paths</span>
|
|
304
|
+
45: <span class="ruby-keyword kw">end</span></pre>
|
|
305
|
+
</div>
|
|
306
|
+
|
|
307
|
+
</div>
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
</div>
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
<div id="set-load-paths-method" class="method-detail ">
|
|
316
|
+
<a name="method-i-set_load_paths"></a>
|
|
317
|
+
|
|
318
|
+
<div class="method-heading">
|
|
319
|
+
|
|
320
|
+
<span class="method-name">set_load_paths</span><span
|
|
321
|
+
class="method-args">(paths)</span>
|
|
322
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
323
|
+
|
|
324
|
+
</div>
|
|
325
|
+
|
|
326
|
+
<div class="method-description">
|
|
327
|
+
|
|
328
|
+
<p>
|
|
329
|
+
Sets the list of directories to search for configuration files. The
|
|
330
|
+
argument must be an array of strings representing the paths to the
|
|
331
|
+
directories, or a string representing either a single path or a list of
|
|
332
|
+
paths separated by either a colon (:) or a semi-colon (;).
|
|
333
|
+
</p>
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
<div class="method-source-code"
|
|
338
|
+
id="set-load-paths-source">
|
|
339
|
+
<pre>
|
|
340
|
+
<span class="ruby-comment cmt"># File lib/rconfig/load_paths.rb, line 12</span>
|
|
341
|
+
12: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_load_paths</span>(<span class="ruby-identifier">paths</span>)
|
|
342
|
+
13: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">load_paths</span> = <span class="ruby-identifier">parse_load_paths</span>(<span class="ruby-identifier">paths</span>)
|
|
343
|
+
14: <span class="ruby-identifier">reload</span>(<span class="ruby-keyword kw">true</span>) <span class="ruby-comment cmt"># Load Paths have changed so force a reload</span>
|
|
344
|
+
15: <span class="ruby-keyword kw">end</span></pre>
|
|
345
|
+
</div>
|
|
346
|
+
|
|
347
|
+
</div>
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
</div>
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
</div>
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
</div>
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
|
362
|
+
|
|
363
|
+
<p>Disabled; run with --debug to generate this.</p>
|
|
364
|
+
|
|
365
|
+
</div>
|
|
366
|
+
|
|
367
|
+
<div id="validator-badges">
|
|
368
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
369
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
|
370
|
+
Rdoc Generator</a> 1.1.6</small>.</p>
|
|
371
|
+
</div>
|
|
372
|
+
|
|
373
|
+
</body>
|
|
374
|
+
</html>
|
|
375
|
+
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
5
|
+
<head>
|
|
6
|
+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
|
7
|
+
|
|
8
|
+
<title>Class: RConfig::Logger</title>
|
|
9
|
+
|
|
10
|
+
<link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
|
|
11
|
+
|
|
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>
|
|
20
|
+
|
|
21
|
+
</head>
|
|
22
|
+
<body class="class">
|
|
23
|
+
|
|
24
|
+
<div id="metadata">
|
|
25
|
+
<div id="home-metadata">
|
|
26
|
+
<div id="home-section" class="section">
|
|
27
|
+
<h3 class="section-header">
|
|
28
|
+
<a href="../index.html">Home</a>
|
|
29
|
+
<a href="../index.html#classes">Classes</a>
|
|
30
|
+
<a href="../index.html#methods">Methods</a>
|
|
31
|
+
</h3>
|
|
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/rconfig/logger_rb.html?TB_iframe=true&height=550&width=785"
|
|
42
|
+
class="thickbox" title="lib/rconfig/logger.rb">lib/rconfig/logger.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
|
+
|
|
66
|
+
<!-- Method Quickref -->
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
<!-- Included Modules -->
|
|
70
|
+
|
|
71
|
+
</div>
|
|
72
|
+
|
|
73
|
+
<div id="project-metadata">
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
<div id="fileindex-section" class="section project-section">
|
|
77
|
+
<h3 class="section-header">Files</h3>
|
|
78
|
+
<ul>
|
|
79
|
+
|
|
80
|
+
<li class="file"><a href="../README_rdoc.html">README.rdoc</a></li>
|
|
81
|
+
|
|
82
|
+
</ul>
|
|
83
|
+
</div>
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
<div id="classindex-section" class="section project-section">
|
|
87
|
+
<h3 class="section-header">Class Index
|
|
88
|
+
<span class="search-toggle"><img src="../images/find.png"
|
|
89
|
+
height="16" width="16" alt="[+]"
|
|
90
|
+
title="show/hide quicksearch" /></span></h3>
|
|
91
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
|
92
|
+
<fieldset>
|
|
93
|
+
<legend>Quicksearch</legend>
|
|
94
|
+
<input type="text" name="quicksearch" value=""
|
|
95
|
+
class="quicksearch-field" />
|
|
96
|
+
</fieldset>
|
|
97
|
+
</form>
|
|
98
|
+
|
|
99
|
+
<ul class="link-list">
|
|
100
|
+
|
|
101
|
+
<li><a href="../RConfig.html">RConfig</a></li>
|
|
102
|
+
|
|
103
|
+
<li><a href="../RConfig/Callbacks.html">RConfig::Callbacks</a></li>
|
|
104
|
+
|
|
105
|
+
<li><a href="../RConfig/Cascade.html">RConfig::Cascade</a></li>
|
|
106
|
+
|
|
107
|
+
<li><a href="../RConfig/Config.html">RConfig::Config</a></li>
|
|
108
|
+
|
|
109
|
+
<li><a href="../RConfig/ConfigError.html">RConfig::ConfigError</a></li>
|
|
110
|
+
|
|
111
|
+
<li><a href="../RConfig/Constants.html">RConfig::Constants</a></li>
|
|
112
|
+
|
|
113
|
+
<li><a href="../RConfig/CoreMethods.html">RConfig::CoreMethods</a></li>
|
|
114
|
+
|
|
115
|
+
<li><a href="../RConfig/DisabledLogger.html">RConfig::DisabledLogger</a></li>
|
|
116
|
+
|
|
117
|
+
<li><a href="../RConfig/Exceptions.html">RConfig::Exceptions</a></li>
|
|
118
|
+
|
|
119
|
+
<li><a href="../RConfig/Generators.html">RConfig::Generators</a></li>
|
|
120
|
+
|
|
121
|
+
<li><a href="../RConfig/Generators/InstallGenerator.html">RConfig::Generators::InstallGenerator</a></li>
|
|
122
|
+
|
|
123
|
+
<li><a href="../RConfig/InvalidLoadPathError.html">RConfig::InvalidLoadPathError</a></li>
|
|
124
|
+
|
|
125
|
+
<li><a href="../RConfig/LoadPaths.html">RConfig::LoadPaths</a></li>
|
|
126
|
+
|
|
127
|
+
<li><a href="../RConfig/PropertiesFile.html">RConfig::PropertiesFile</a></li>
|
|
128
|
+
|
|
129
|
+
<li><a href="../RConfig/Reload.html">RConfig::Reload</a></li>
|
|
130
|
+
|
|
131
|
+
<li><a href="../RConfig/Settings.html">RConfig::Settings</a></li>
|
|
132
|
+
|
|
133
|
+
<li><a href="../RConfig/Utils.html">RConfig::Utils</a></li>
|
|
134
|
+
|
|
135
|
+
<li><a href="../Array.html">Array</a></li>
|
|
136
|
+
|
|
137
|
+
<li><a href="../Hash.html">Hash</a></li>
|
|
138
|
+
|
|
139
|
+
<li><a href="../NilClass.html">NilClass</a></li>
|
|
140
|
+
|
|
141
|
+
<li><a href="../String.html">String</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">RConfig::Logger</h1>
|
|
153
|
+
|
|
154
|
+
<div id="description">
|
|
155
|
+
|
|
156
|
+
</div>
|
|
157
|
+
|
|
158
|
+
<!-- Constants -->
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
<!-- Attributes -->
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
<!-- Methods -->
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
</div>
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
|
171
|
+
|
|
172
|
+
<p>Disabled; run with --debug to generate this.</p>
|
|
173
|
+
|
|
174
|
+
</div>
|
|
175
|
+
|
|
176
|
+
<div id="validator-badges">
|
|
177
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
178
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
|
179
|
+
Rdoc Generator</a> 1.1.6</small>.</p>
|
|
180
|
+
</div>
|
|
181
|
+
|
|
182
|
+
</body>
|
|
183
|
+
</html>
|
|
184
|
+
|