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
data/doc/NilClass.html
ADDED
|
@@ -0,0 +1,233 @@
|
|
|
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: NilClass</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/core_ext/nil_rb.html?TB_iframe=true&height=550&width=785"
|
|
42
|
+
class="thickbox" title="lib/rconfig/core_ext/nil.rb">lib/rconfig/core_ext/nil.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
|
+
<div id="method-list-section" class="section">
|
|
69
|
+
<h3 class="section-header">Methods</h3>
|
|
70
|
+
<ul class="link-list">
|
|
71
|
+
|
|
72
|
+
<li><a href="#method-i-blank%3F">#blank?</a></li>
|
|
73
|
+
|
|
74
|
+
</ul>
|
|
75
|
+
</div>
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
<!-- Included Modules -->
|
|
79
|
+
|
|
80
|
+
</div>
|
|
81
|
+
|
|
82
|
+
<div id="project-metadata">
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
<div id="fileindex-section" class="section project-section">
|
|
86
|
+
<h3 class="section-header">Files</h3>
|
|
87
|
+
<ul>
|
|
88
|
+
|
|
89
|
+
<li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>
|
|
90
|
+
|
|
91
|
+
</ul>
|
|
92
|
+
</div>
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
<div id="classindex-section" class="section project-section">
|
|
96
|
+
<h3 class="section-header">Class Index
|
|
97
|
+
<span class="search-toggle"><img src="./images/find.png"
|
|
98
|
+
height="16" width="16" alt="[+]"
|
|
99
|
+
title="show/hide quicksearch" /></span></h3>
|
|
100
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
|
101
|
+
<fieldset>
|
|
102
|
+
<legend>Quicksearch</legend>
|
|
103
|
+
<input type="text" name="quicksearch" value=""
|
|
104
|
+
class="quicksearch-field" />
|
|
105
|
+
</fieldset>
|
|
106
|
+
</form>
|
|
107
|
+
|
|
108
|
+
<ul class="link-list">
|
|
109
|
+
|
|
110
|
+
<li><a href="./RConfig.html">RConfig</a></li>
|
|
111
|
+
|
|
112
|
+
<li><a href="./RConfig/Callbacks.html">RConfig::Callbacks</a></li>
|
|
113
|
+
|
|
114
|
+
<li><a href="./RConfig/Cascade.html">RConfig::Cascade</a></li>
|
|
115
|
+
|
|
116
|
+
<li><a href="./RConfig/Config.html">RConfig::Config</a></li>
|
|
117
|
+
|
|
118
|
+
<li><a href="./RConfig/ConfigError.html">RConfig::ConfigError</a></li>
|
|
119
|
+
|
|
120
|
+
<li><a href="./RConfig/Constants.html">RConfig::Constants</a></li>
|
|
121
|
+
|
|
122
|
+
<li><a href="./RConfig/CoreMethods.html">RConfig::CoreMethods</a></li>
|
|
123
|
+
|
|
124
|
+
<li><a href="./RConfig/DisabledLogger.html">RConfig::DisabledLogger</a></li>
|
|
125
|
+
|
|
126
|
+
<li><a href="./RConfig/Exceptions.html">RConfig::Exceptions</a></li>
|
|
127
|
+
|
|
128
|
+
<li><a href="./RConfig/Generators.html">RConfig::Generators</a></li>
|
|
129
|
+
|
|
130
|
+
<li><a href="./RConfig/Generators/InstallGenerator.html">RConfig::Generators::InstallGenerator</a></li>
|
|
131
|
+
|
|
132
|
+
<li><a href="./RConfig/InvalidLoadPathError.html">RConfig::InvalidLoadPathError</a></li>
|
|
133
|
+
|
|
134
|
+
<li><a href="./RConfig/LoadPaths.html">RConfig::LoadPaths</a></li>
|
|
135
|
+
|
|
136
|
+
<li><a href="./RConfig/PropertiesFile.html">RConfig::PropertiesFile</a></li>
|
|
137
|
+
|
|
138
|
+
<li><a href="./RConfig/Reload.html">RConfig::Reload</a></li>
|
|
139
|
+
|
|
140
|
+
<li><a href="./RConfig/Settings.html">RConfig::Settings</a></li>
|
|
141
|
+
|
|
142
|
+
<li><a href="./RConfig/Utils.html">RConfig::Utils</a></li>
|
|
143
|
+
|
|
144
|
+
<li><a href="./Array.html">Array</a></li>
|
|
145
|
+
|
|
146
|
+
<li><a href="./Hash.html">Hash</a></li>
|
|
147
|
+
|
|
148
|
+
<li><a href="./NilClass.html">NilClass</a></li>
|
|
149
|
+
|
|
150
|
+
<li><a href="./String.html">String</a></li>
|
|
151
|
+
|
|
152
|
+
</ul>
|
|
153
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
|
154
|
+
</div>
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
</div>
|
|
158
|
+
</div>
|
|
159
|
+
|
|
160
|
+
<div id="documentation">
|
|
161
|
+
<h1 class="class">NilClass</h1>
|
|
162
|
+
|
|
163
|
+
<div id="description">
|
|
164
|
+
|
|
165
|
+
</div>
|
|
166
|
+
|
|
167
|
+
<!-- Constants -->
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
<!-- Attributes -->
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
<!-- Methods -->
|
|
174
|
+
|
|
175
|
+
<div id="public-instance-method-details" class="method-section section">
|
|
176
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
<div id="blank--method" class="method-detail ">
|
|
180
|
+
<a name="method-i-blank%3F"></a>
|
|
181
|
+
|
|
182
|
+
<div class="method-heading">
|
|
183
|
+
|
|
184
|
+
<span class="method-name">blank?</span><span
|
|
185
|
+
class="method-args">()</span>
|
|
186
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
187
|
+
|
|
188
|
+
</div>
|
|
189
|
+
|
|
190
|
+
<div class="method-description">
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
<div class="method-source-code"
|
|
197
|
+
id="blank--source">
|
|
198
|
+
<pre>
|
|
199
|
+
<span class="ruby-comment cmt"># File lib/rconfig/core_ext/nil.rb, line 2</span>
|
|
200
|
+
2: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">blank?</span>
|
|
201
|
+
3: <span class="ruby-keyword kw">true</span>
|
|
202
|
+
4: <span class="ruby-keyword kw">end</span></pre>
|
|
203
|
+
</div>
|
|
204
|
+
|
|
205
|
+
</div>
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
</div>
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
</div>
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
</div>
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
|
220
|
+
|
|
221
|
+
<p>Disabled; run with --debug to generate this.</p>
|
|
222
|
+
|
|
223
|
+
</div>
|
|
224
|
+
|
|
225
|
+
<div id="validator-badges">
|
|
226
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
227
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
|
228
|
+
Rdoc Generator</a> 1.1.6</small>.</p>
|
|
229
|
+
</div>
|
|
230
|
+
|
|
231
|
+
</body>
|
|
232
|
+
</html>
|
|
233
|
+
|
data/doc/RConfig.html
ADDED
|
@@ -0,0 +1,328 @@
|
|
|
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</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/generators/rconfig/install_generator_rb.html?TB_iframe=true&height=550&width=785"
|
|
42
|
+
class="thickbox" title="lib/generators/rconfig/install_generator.rb">lib/generators/rconfig/install_generator.rb</a></li>
|
|
43
|
+
|
|
44
|
+
<li><a href="./lib/rconfig/callbacks_rb.html?TB_iframe=true&height=550&width=785"
|
|
45
|
+
class="thickbox" title="lib/rconfig/callbacks.rb">lib/rconfig/callbacks.rb</a></li>
|
|
46
|
+
|
|
47
|
+
<li><a href="./lib/rconfig/cascade_rb.html?TB_iframe=true&height=550&width=785"
|
|
48
|
+
class="thickbox" title="lib/rconfig/cascade.rb">lib/rconfig/cascade.rb</a></li>
|
|
49
|
+
|
|
50
|
+
<li><a href="./lib/rconfig/config_rb.html?TB_iframe=true&height=550&width=785"
|
|
51
|
+
class="thickbox" title="lib/rconfig/config.rb">lib/rconfig/config.rb</a></li>
|
|
52
|
+
|
|
53
|
+
<li><a href="./lib/rconfig/constants_rb.html?TB_iframe=true&height=550&width=785"
|
|
54
|
+
class="thickbox" title="lib/rconfig/constants.rb">lib/rconfig/constants.rb</a></li>
|
|
55
|
+
|
|
56
|
+
<li><a href="./lib/rconfig/core_methods_rb.html?TB_iframe=true&height=550&width=785"
|
|
57
|
+
class="thickbox" title="lib/rconfig/core_methods.rb">lib/rconfig/core_methods.rb</a></li>
|
|
58
|
+
|
|
59
|
+
<li><a href="./lib/rconfig/exceptions_rb.html?TB_iframe=true&height=550&width=785"
|
|
60
|
+
class="thickbox" title="lib/rconfig/exceptions.rb">lib/rconfig/exceptions.rb</a></li>
|
|
61
|
+
|
|
62
|
+
<li><a href="./lib/rconfig/load_paths_rb.html?TB_iframe=true&height=550&width=785"
|
|
63
|
+
class="thickbox" title="lib/rconfig/load_paths.rb">lib/rconfig/load_paths.rb</a></li>
|
|
64
|
+
|
|
65
|
+
<li><a href="./lib/rconfig/logger_rb.html?TB_iframe=true&height=550&width=785"
|
|
66
|
+
class="thickbox" title="lib/rconfig/logger.rb">lib/rconfig/logger.rb</a></li>
|
|
67
|
+
|
|
68
|
+
<li><a href="./lib/rconfig/properties_file_rb.html?TB_iframe=true&height=550&width=785"
|
|
69
|
+
class="thickbox" title="lib/rconfig/properties_file.rb">lib/rconfig/properties_file.rb</a></li>
|
|
70
|
+
|
|
71
|
+
<li><a href="./lib/rconfig/reload_rb.html?TB_iframe=true&height=550&width=785"
|
|
72
|
+
class="thickbox" title="lib/rconfig/reload.rb">lib/rconfig/reload.rb</a></li>
|
|
73
|
+
|
|
74
|
+
<li><a href="./lib/rconfig/settings_rb.html?TB_iframe=true&height=550&width=785"
|
|
75
|
+
class="thickbox" title="lib/rconfig/settings.rb">lib/rconfig/settings.rb</a></li>
|
|
76
|
+
|
|
77
|
+
<li><a href="./lib/rconfig/utils_rb.html?TB_iframe=true&height=550&width=785"
|
|
78
|
+
class="thickbox" title="lib/rconfig/utils.rb">lib/rconfig/utils.rb</a></li>
|
|
79
|
+
|
|
80
|
+
<li><a href="./lib/rconfig_rb.html?TB_iframe=true&height=550&width=785"
|
|
81
|
+
class="thickbox" title="lib/rconfig.rb">lib/rconfig.rb</a></li>
|
|
82
|
+
|
|
83
|
+
</ul>
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
</div>
|
|
89
|
+
|
|
90
|
+
<div id="class-metadata">
|
|
91
|
+
|
|
92
|
+
<!-- Parent Class -->
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
<!-- Namespace Contents -->
|
|
96
|
+
|
|
97
|
+
<div id="namespace-list-section" class="section">
|
|
98
|
+
<h3 class="section-header">Namespace</h3>
|
|
99
|
+
<ul class="link-list">
|
|
100
|
+
|
|
101
|
+
<li><span class="type">MODULE</span> <a href="RConfig/Callbacks.html">RConfig::Callbacks</a></li>
|
|
102
|
+
|
|
103
|
+
<li><span class="type">MODULE</span> <a href="RConfig/Cascade.html">RConfig::Cascade</a></li>
|
|
104
|
+
|
|
105
|
+
<li><span class="type">MODULE</span> <a href="RConfig/Constants.html">RConfig::Constants</a></li>
|
|
106
|
+
|
|
107
|
+
<li><span class="type">MODULE</span> <a href="RConfig/CoreMethods.html">RConfig::CoreMethods</a></li>
|
|
108
|
+
|
|
109
|
+
<li><span class="type">MODULE</span> <a href="RConfig/Exceptions.html">RConfig::Exceptions</a></li>
|
|
110
|
+
|
|
111
|
+
<li><span class="type">MODULE</span> <a href="RConfig/Generators.html">RConfig::Generators</a></li>
|
|
112
|
+
|
|
113
|
+
<li><span class="type">MODULE</span> <a href="RConfig/LoadPaths.html">RConfig::LoadPaths</a></li>
|
|
114
|
+
|
|
115
|
+
<li><span class="type">MODULE</span> <a href="RConfig/Reload.html">RConfig::Reload</a></li>
|
|
116
|
+
|
|
117
|
+
<li><span class="type">MODULE</span> <a href="RConfig/Settings.html">RConfig::Settings</a></li>
|
|
118
|
+
|
|
119
|
+
<li><span class="type">MODULE</span> <a href="RConfig/Utils.html">RConfig::Utils</a></li>
|
|
120
|
+
|
|
121
|
+
<li><span class="type">CLASS</span> <a href="RConfig/Config.html">RConfig::Config</a></li>
|
|
122
|
+
|
|
123
|
+
<li><span class="type">CLASS</span> <a href="RConfig/ConfigError.html">RConfig::ConfigError</a></li>
|
|
124
|
+
|
|
125
|
+
<li><span class="type">CLASS</span> <a href="RConfig/DisabledLogger.html">RConfig::DisabledLogger</a></li>
|
|
126
|
+
|
|
127
|
+
<li><span class="type">CLASS</span> <a href="RConfig/InvalidLoadPathError.html">RConfig::InvalidLoadPathError</a></li>
|
|
128
|
+
|
|
129
|
+
<li><span class="type">CLASS</span> <a href="RConfig/Logger.html">RConfig::Logger</a></li>
|
|
130
|
+
|
|
131
|
+
<li><span class="type">CLASS</span> <a href="RConfig/PropertiesFile.html">RConfig::PropertiesFile</a></li>
|
|
132
|
+
|
|
133
|
+
</ul>
|
|
134
|
+
</div>
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
<!-- Method Quickref -->
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
<!-- Included Modules -->
|
|
141
|
+
|
|
142
|
+
</div>
|
|
143
|
+
|
|
144
|
+
<div id="project-metadata">
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
<div id="fileindex-section" class="section project-section">
|
|
148
|
+
<h3 class="section-header">Files</h3>
|
|
149
|
+
<ul>
|
|
150
|
+
|
|
151
|
+
<li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>
|
|
152
|
+
|
|
153
|
+
</ul>
|
|
154
|
+
</div>
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
<div id="classindex-section" class="section project-section">
|
|
158
|
+
<h3 class="section-header">Class Index
|
|
159
|
+
<span class="search-toggle"><img src="./images/find.png"
|
|
160
|
+
height="16" width="16" alt="[+]"
|
|
161
|
+
title="show/hide quicksearch" /></span></h3>
|
|
162
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
|
163
|
+
<fieldset>
|
|
164
|
+
<legend>Quicksearch</legend>
|
|
165
|
+
<input type="text" name="quicksearch" value=""
|
|
166
|
+
class="quicksearch-field" />
|
|
167
|
+
</fieldset>
|
|
168
|
+
</form>
|
|
169
|
+
|
|
170
|
+
<ul class="link-list">
|
|
171
|
+
|
|
172
|
+
<li><a href="./RConfig.html">RConfig</a></li>
|
|
173
|
+
|
|
174
|
+
<li><a href="./RConfig/Callbacks.html">RConfig::Callbacks</a></li>
|
|
175
|
+
|
|
176
|
+
<li><a href="./RConfig/Cascade.html">RConfig::Cascade</a></li>
|
|
177
|
+
|
|
178
|
+
<li><a href="./RConfig/Config.html">RConfig::Config</a></li>
|
|
179
|
+
|
|
180
|
+
<li><a href="./RConfig/ConfigError.html">RConfig::ConfigError</a></li>
|
|
181
|
+
|
|
182
|
+
<li><a href="./RConfig/Constants.html">RConfig::Constants</a></li>
|
|
183
|
+
|
|
184
|
+
<li><a href="./RConfig/CoreMethods.html">RConfig::CoreMethods</a></li>
|
|
185
|
+
|
|
186
|
+
<li><a href="./RConfig/DisabledLogger.html">RConfig::DisabledLogger</a></li>
|
|
187
|
+
|
|
188
|
+
<li><a href="./RConfig/Exceptions.html">RConfig::Exceptions</a></li>
|
|
189
|
+
|
|
190
|
+
<li><a href="./RConfig/Generators.html">RConfig::Generators</a></li>
|
|
191
|
+
|
|
192
|
+
<li><a href="./RConfig/Generators/InstallGenerator.html">RConfig::Generators::InstallGenerator</a></li>
|
|
193
|
+
|
|
194
|
+
<li><a href="./RConfig/InvalidLoadPathError.html">RConfig::InvalidLoadPathError</a></li>
|
|
195
|
+
|
|
196
|
+
<li><a href="./RConfig/LoadPaths.html">RConfig::LoadPaths</a></li>
|
|
197
|
+
|
|
198
|
+
<li><a href="./RConfig/PropertiesFile.html">RConfig::PropertiesFile</a></li>
|
|
199
|
+
|
|
200
|
+
<li><a href="./RConfig/Reload.html">RConfig::Reload</a></li>
|
|
201
|
+
|
|
202
|
+
<li><a href="./RConfig/Settings.html">RConfig::Settings</a></li>
|
|
203
|
+
|
|
204
|
+
<li><a href="./RConfig/Utils.html">RConfig::Utils</a></li>
|
|
205
|
+
|
|
206
|
+
<li><a href="./Array.html">Array</a></li>
|
|
207
|
+
|
|
208
|
+
<li><a href="./Hash.html">Hash</a></li>
|
|
209
|
+
|
|
210
|
+
<li><a href="./NilClass.html">NilClass</a></li>
|
|
211
|
+
|
|
212
|
+
<li><a href="./String.html">String</a></li>
|
|
213
|
+
|
|
214
|
+
</ul>
|
|
215
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
|
216
|
+
</div>
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
</div>
|
|
220
|
+
</div>
|
|
221
|
+
|
|
222
|
+
<div id="documentation">
|
|
223
|
+
<h1 class="module">RConfig</h1>
|
|
224
|
+
|
|
225
|
+
<div id="description">
|
|
226
|
+
<p>
|
|
227
|
+
Copyright © 2009 Rahmal Conda <rahmal@gmail.com>
|
|
228
|
+
</p>
|
|
229
|
+
<p>
|
|
230
|
+
<a href="RConfig/Config.html">Config</a> is a special class, derived from
|
|
231
|
+
HashWithIndifferentAccess. It was specifically created for handling config
|
|
232
|
+
data or creating mock objects from yaml files. It provides a dotted
|
|
233
|
+
notation for accessing embedded hash values, similar to the way one might
|
|
234
|
+
traverse a object tree.
|
|
235
|
+
</p>
|
|
236
|
+
<hr style="height: 1px"></hr><p>
|
|
237
|
+
Copyright © 2009 Rahmal Conda <rahmal@gmail.com>
|
|
238
|
+
</p>
|
|
239
|
+
<hr style="height: 1px"></hr><p>
|
|
240
|
+
Copyright © 2009 Rahmal Conda <rahmal@gmail.com>
|
|
241
|
+
</p>
|
|
242
|
+
<p>
|
|
243
|
+
<a href="RConfig.html">RConfig</a> <a
|
|
244
|
+
href="RConfig/Exceptions.html">Exceptions</a>
|
|
245
|
+
</p>
|
|
246
|
+
<hr style="height: 1px"></hr><p>
|
|
247
|
+
Copyright © 2009 Rahmal Conda <rahmal@gmail.com>
|
|
248
|
+
</p>
|
|
249
|
+
<p>
|
|
250
|
+
This class parses key/value based properties files used for configuration.
|
|
251
|
+
It is used by rconfig to import configuration files of the aforementioned
|
|
252
|
+
format. Unlike yaml, and xml files it can only support three levels. First,
|
|
253
|
+
it can have root level properties:
|
|
254
|
+
</p>
|
|
255
|
+
<pre>
|
|
256
|
+
server_url=host.domain.com
|
|
257
|
+
server_port=8080
|
|
258
|
+
</pre>
|
|
259
|
+
<p>
|
|
260
|
+
Secondly, it can have properties grouped into catagories. The group names
|
|
261
|
+
must be specified within brackets like [ … ]
|
|
262
|
+
</p>
|
|
263
|
+
<pre>
|
|
264
|
+
[server]
|
|
265
|
+
url=host.domain.com
|
|
266
|
+
port=8080
|
|
267
|
+
</pre>
|
|
268
|
+
<p>
|
|
269
|
+
Finally, groups can also be qualified with namespaces, similar to git
|
|
270
|
+
config files. Group names are same as before, but with namespace in within
|
|
271
|
+
the brackets like [ <group> “<name>” ]
|
|
272
|
+
</p>
|
|
273
|
+
<pre>
|
|
274
|
+
[host "dev"]
|
|
275
|
+
domain=dev.server.com
|
|
276
|
+
|
|
277
|
+
[host "prod"]
|
|
278
|
+
domain=www.server.com
|
|
279
|
+
</pre>
|
|
280
|
+
<p>
|
|
281
|
+
These can be retrieved using dot-notation or variable to do it dynamically.
|
|
282
|
+
</p>
|
|
283
|
+
<pre>
|
|
284
|
+
RConfig.props.host.dev.domain
|
|
285
|
+
* or -
|
|
286
|
+
RConfig.props.host[env].domain (where env is 'dev' or 'prod')</pre>
|
|
287
|
+
|
|
288
|
+
</div>
|
|
289
|
+
|
|
290
|
+
<!-- Constants -->
|
|
291
|
+
|
|
292
|
+
<div id="constants-list" class="section">
|
|
293
|
+
<h3 class="section-header">Constants</h3>
|
|
294
|
+
<dl>
|
|
295
|
+
|
|
296
|
+
<dt><a name="VERSION">VERSION</a></dt>
|
|
297
|
+
|
|
298
|
+
<dd class="description"></dd>
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
</dl>
|
|
302
|
+
</div>
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
<!-- Attributes -->
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
<!-- Methods -->
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
</div>
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
|
315
|
+
|
|
316
|
+
<p>Disabled; run with --debug to generate this.</p>
|
|
317
|
+
|
|
318
|
+
</div>
|
|
319
|
+
|
|
320
|
+
<div id="validator-badges">
|
|
321
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
322
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
|
323
|
+
Rdoc Generator</a> 1.1.6</small>.</p>
|
|
324
|
+
</div>
|
|
325
|
+
|
|
326
|
+
</body>
|
|
327
|
+
</html>
|
|
328
|
+
|