configatron 2.2.1 → 2.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/doc/classes/Class.html +170 -0
- data/doc/classes/Configatron.html +30 -30
- data/doc/classes/Configatron/LockedNamespace.html +6 -6
- data/doc/classes/Configatron/ProtectedParameter.html +6 -6
- data/doc/classes/Configatron/Store.html +111 -111
- data/doc/classes/Kernel.html +9 -9
- data/doc/created.rid +1 -1
- data/doc/files/lib/configatron/core_ext/class_rb.html +101 -0
- data/doc/files/lib/configatron/{kernel_rb.html → core_ext/kernel_rb.html} +2 -2
- data/doc/files/lib/configatron/core_ext/object_rb.html +101 -0
- data/doc/files/lib/configatron/core_ext/string_rb.html +101 -0
- data/doc/files/lib/configatron_rb.html +1 -1
- data/doc/fr_class_index.html +1 -0
- data/doc/fr_file_index.html +4 -1
- data/doc/fr_method_index.html +27 -26
- data/lib/configatron.rb +5 -2
- data/lib/configatron/core_ext/class.rb +26 -0
- data/lib/configatron/{kernel.rb → core_ext/kernel.rb} +0 -0
- data/lib/configatron/core_ext/object.rb +9 -0
- data/lib/configatron/core_ext/string.rb +84 -0
- data/spec/lib/class_spec.rb +28 -0
- metadata +12 -4
data/doc/classes/Kernel.html
CHANGED
@@ -55,8 +55,8 @@
|
|
55
55
|
<tr class="top-aligned-row">
|
56
56
|
<td><strong>In:</strong></td>
|
57
57
|
<td>
|
58
|
-
<a href="../files/lib/configatron/kernel_rb.html">
|
59
|
-
lib/configatron/kernel.rb
|
58
|
+
<a href="../files/lib/configatron/core_ext/kernel_rb.html">
|
59
|
+
lib/configatron/core_ext/kernel.rb
|
60
60
|
</a>
|
61
61
|
<br />
|
62
62
|
</td>
|
@@ -80,7 +80,7 @@
|
|
80
80
|
<h3 class="section-bar">Methods</h3>
|
81
81
|
|
82
82
|
<div class="name-list">
|
83
|
-
<a href="#
|
83
|
+
<a href="#M000027">configatron</a>
|
84
84
|
</div>
|
85
85
|
</div>
|
86
86
|
|
@@ -102,11 +102,11 @@
|
|
102
102
|
<div id="methods">
|
103
103
|
<h3 class="section-bar">Public Instance methods</h3>
|
104
104
|
|
105
|
-
<div id="method-
|
106
|
-
<a name="
|
105
|
+
<div id="method-M000027" class="method-detail">
|
106
|
+
<a name="M000027"></a>
|
107
107
|
|
108
108
|
<div class="method-heading">
|
109
|
-
<a href="#
|
109
|
+
<a href="#M000027" class="method-signature">
|
110
110
|
<span class="method-name">configatron</span><span class="method-args">()</span>
|
111
111
|
</a>
|
112
112
|
</div>
|
@@ -117,10 +117,10 @@ Provides access to the <a href="Configatron.html">Configatron</a> storage
|
|
117
117
|
system.
|
118
118
|
</p>
|
119
119
|
<p><a class="source-toggle" href="#"
|
120
|
-
onclick="toggleCode('
|
121
|
-
<div class="method-source-code" id="
|
120
|
+
onclick="toggleCode('M000027-source');return false;">[Source]</a></p>
|
121
|
+
<div class="method-source-code" id="M000027-source">
|
122
122
|
<pre>
|
123
|
-
<span class="ruby-comment cmt"># File lib/configatron/kernel.rb, line 4</span>
|
123
|
+
<span class="ruby-comment cmt"># File lib/configatron/core_ext/kernel.rb, line 4</span>
|
124
124
|
4: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">configatron</span>
|
125
125
|
5: <span class="ruby-constant">Configatron</span>.<span class="ruby-identifier">instance</span>
|
126
126
|
6: <span class="ruby-keyword kw">end</span>
|
data/doc/created.rid
CHANGED
@@ -1 +1 @@
|
|
1
|
-
Fri,
|
1
|
+
Fri, 16 Jan 2009 17:33:11 -0500
|
@@ -0,0 +1,101 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>File: class.rb</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="fileHeader">
|
50
|
+
<h1>class.rb</h1>
|
51
|
+
<table class="header-table">
|
52
|
+
<tr class="top-aligned-row">
|
53
|
+
<td><strong>Path:</strong></td>
|
54
|
+
<td>lib/configatron/core_ext/class.rb
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr class="top-aligned-row">
|
58
|
+
<td><strong>Last Update:</strong></td>
|
59
|
+
<td>Fri Jan 16 17:32:53 -0500 2009</td>
|
60
|
+
</tr>
|
61
|
+
</table>
|
62
|
+
</div>
|
63
|
+
<!-- banner header -->
|
64
|
+
|
65
|
+
<div id="bodyContent">
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
<div id="contextContent">
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
</div>
|
74
|
+
|
75
|
+
|
76
|
+
</div>
|
77
|
+
|
78
|
+
|
79
|
+
<!-- if includes -->
|
80
|
+
|
81
|
+
<div id="section">
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
<!-- if method_list -->
|
91
|
+
|
92
|
+
|
93
|
+
</div>
|
94
|
+
|
95
|
+
|
96
|
+
<div id="validator-badges">
|
97
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
98
|
+
</div>
|
99
|
+
|
100
|
+
</body>
|
101
|
+
</html>
|
@@ -8,7 +8,7 @@
|
|
8
8
|
<title>File: kernel.rb</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
10
|
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href="
|
11
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
12
12
|
<script type="text/javascript">
|
13
13
|
// <![CDATA[
|
14
14
|
|
@@ -51,7 +51,7 @@
|
|
51
51
|
<table class="header-table">
|
52
52
|
<tr class="top-aligned-row">
|
53
53
|
<td><strong>Path:</strong></td>
|
54
|
-
<td>lib/configatron/kernel.rb
|
54
|
+
<td>lib/configatron/core_ext/kernel.rb
|
55
55
|
</td>
|
56
56
|
</tr>
|
57
57
|
<tr class="top-aligned-row">
|
@@ -0,0 +1,101 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>File: object.rb</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="fileHeader">
|
50
|
+
<h1>object.rb</h1>
|
51
|
+
<table class="header-table">
|
52
|
+
<tr class="top-aligned-row">
|
53
|
+
<td><strong>Path:</strong></td>
|
54
|
+
<td>lib/configatron/core_ext/object.rb
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr class="top-aligned-row">
|
58
|
+
<td><strong>Last Update:</strong></td>
|
59
|
+
<td>Fri Jan 16 17:29:56 -0500 2009</td>
|
60
|
+
</tr>
|
61
|
+
</table>
|
62
|
+
</div>
|
63
|
+
<!-- banner header -->
|
64
|
+
|
65
|
+
<div id="bodyContent">
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
<div id="contextContent">
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
</div>
|
74
|
+
|
75
|
+
|
76
|
+
</div>
|
77
|
+
|
78
|
+
|
79
|
+
<!-- if includes -->
|
80
|
+
|
81
|
+
<div id="section">
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
<!-- if method_list -->
|
91
|
+
|
92
|
+
|
93
|
+
</div>
|
94
|
+
|
95
|
+
|
96
|
+
<div id="validator-badges">
|
97
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
98
|
+
</div>
|
99
|
+
|
100
|
+
</body>
|
101
|
+
</html>
|
@@ -0,0 +1,101 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>File: string.rb</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="fileHeader">
|
50
|
+
<h1>string.rb</h1>
|
51
|
+
<table class="header-table">
|
52
|
+
<tr class="top-aligned-row">
|
53
|
+
<td><strong>Path:</strong></td>
|
54
|
+
<td>lib/configatron/core_ext/string.rb
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr class="top-aligned-row">
|
58
|
+
<td><strong>Last Update:</strong></td>
|
59
|
+
<td>Fri Jan 16 17:30:03 -0500 2009</td>
|
60
|
+
</tr>
|
61
|
+
</table>
|
62
|
+
</div>
|
63
|
+
<!-- banner header -->
|
64
|
+
|
65
|
+
<div id="bodyContent">
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
<div id="contextContent">
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
</div>
|
74
|
+
|
75
|
+
|
76
|
+
</div>
|
77
|
+
|
78
|
+
|
79
|
+
<!-- if includes -->
|
80
|
+
|
81
|
+
<div id="section">
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
<!-- if method_list -->
|
91
|
+
|
92
|
+
|
93
|
+
</div>
|
94
|
+
|
95
|
+
|
96
|
+
<div id="validator-badges">
|
97
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
98
|
+
</div>
|
99
|
+
|
100
|
+
</body>
|
101
|
+
</html>
|
data/doc/fr_class_index.html
CHANGED
@@ -20,6 +20,7 @@
|
|
20
20
|
<div id="index">
|
21
21
|
<h1 class="section-bar">Classes</h1>
|
22
22
|
<div id="index-entries">
|
23
|
+
<a href="classes/Class.html">Class</a><br />
|
23
24
|
<a href="classes/Configatron.html">Configatron</a><br />
|
24
25
|
<a href="classes/Configatron/LockedNamespace.html">Configatron::LockedNamespace</a><br />
|
25
26
|
<a href="classes/Configatron/ProtectedParameter.html">Configatron::ProtectedParameter</a><br />
|
data/doc/fr_file_index.html
CHANGED
@@ -23,8 +23,11 @@
|
|
23
23
|
<a href="files/README.html">README</a><br />
|
24
24
|
<a href="files/lib/configatron_rb.html">lib/configatron.rb</a><br />
|
25
25
|
<a href="files/lib/configatron/configatron_rb.html">lib/configatron/configatron.rb</a><br />
|
26
|
+
<a href="files/lib/configatron/core_ext/class_rb.html">lib/configatron/core_ext/class.rb</a><br />
|
27
|
+
<a href="files/lib/configatron/core_ext/kernel_rb.html">lib/configatron/core_ext/kernel.rb</a><br />
|
28
|
+
<a href="files/lib/configatron/core_ext/object_rb.html">lib/configatron/core_ext/object.rb</a><br />
|
29
|
+
<a href="files/lib/configatron/core_ext/string_rb.html">lib/configatron/core_ext/string.rb</a><br />
|
26
30
|
<a href="files/lib/configatron/errors_rb.html">lib/configatron/errors.rb</a><br />
|
27
|
-
<a href="files/lib/configatron/kernel_rb.html">lib/configatron/kernel.rb</a><br />
|
28
31
|
<a href="files/lib/configatron/store_rb.html">lib/configatron/store.rb</a><br />
|
29
32
|
</div>
|
30
33
|
</div>
|
data/doc/fr_method_index.html
CHANGED
@@ -20,32 +20,33 @@
|
|
20
20
|
<div id="index">
|
21
21
|
<h1 class="section-bar">Methods</h1>
|
22
22
|
<div id="index-entries">
|
23
|
-
<a href="classes/Kernel.html#
|
24
|
-
<a href="classes/Configatron/Store.html#
|
25
|
-
<a href="classes/Configatron/Store.html#
|
26
|
-
<a href="classes/Configatron/Store.html#
|
27
|
-
<a href="classes/Configatron/Store.html#
|
28
|
-
<a href="classes/Configatron/ProtectedParameter.html#
|
29
|
-
<a href="classes/Configatron/Store.html#
|
30
|
-
<a href="classes/Configatron/Store.html#
|
31
|
-
<a href="classes/Configatron.html#
|
32
|
-
<a href="classes/Configatron/Store.html#
|
33
|
-
<a href="classes/Configatron/LockedNamespace.html#
|
34
|
-
<a href="classes/Configatron/Store.html#
|
35
|
-
<a href="classes/Configatron/Store.html#
|
36
|
-
<a href="classes/Configatron/Store.html#
|
37
|
-
<a href="classes/Configatron/Store.html#
|
38
|
-
<a href="classes/Configatron.html#
|
39
|
-
<a href="classes/Configatron/Store.html#
|
40
|
-
<a href="classes/Configatron/Store.html#
|
41
|
-
<a href="classes/Configatron.html#
|
42
|
-
<a href="classes/Configatron.html#
|
43
|
-
<a href="classes/Configatron.html#
|
44
|
-
<a href="classes/
|
45
|
-
<a href="classes/Configatron/Store.html#
|
46
|
-
<a href="classes/Configatron/Store.html#
|
47
|
-
<a href="classes/Configatron/Store.html#
|
48
|
-
<a href="classes/Configatron/Store.html#M000018">
|
23
|
+
<a href="classes/Kernel.html#M000027">configatron (Kernel)</a><br />
|
24
|
+
<a href="classes/Configatron/Store.html#M000010">configure_from_hash (Configatron::Store)</a><br />
|
25
|
+
<a href="classes/Configatron/Store.html#M000011">configure_from_yaml (Configatron::Store)</a><br />
|
26
|
+
<a href="classes/Configatron/Store.html#M000022">deep_clone (Configatron::Store)</a><br />
|
27
|
+
<a href="classes/Configatron/Store.html#M000009">inspect (Configatron::Store)</a><br />
|
28
|
+
<a href="classes/Configatron/ProtectedParameter.html#M000026">intialize (Configatron::ProtectedParameter)</a><br />
|
29
|
+
<a href="classes/Configatron/Store.html#M000020">lock (Configatron::Store)</a><br />
|
30
|
+
<a href="classes/Configatron/Store.html#M000023">lock! (Configatron::Store)</a><br />
|
31
|
+
<a href="classes/Configatron.html#M000002">method_missing (Configatron)</a><br />
|
32
|
+
<a href="classes/Configatron/Store.html#M000007">new (Configatron::Store)</a><br />
|
33
|
+
<a href="classes/Configatron/LockedNamespace.html#M000025">new (Configatron::LockedNamespace)</a><br />
|
34
|
+
<a href="classes/Configatron/Store.html#M000012">nil? (Configatron::Store)</a><br />
|
35
|
+
<a href="classes/Configatron/Store.html#M000016">protect (Configatron::Store)</a><br />
|
36
|
+
<a href="classes/Configatron/Store.html#M000017">protect_all! (Configatron::Store)</a><br />
|
37
|
+
<a href="classes/Configatron/Store.html#M000014">remove (Configatron::Store)</a><br />
|
38
|
+
<a href="classes/Configatron.html#M000003">reset! (Configatron)</a><br />
|
39
|
+
<a href="classes/Configatron/Store.html#M000013">retrieve (Configatron::Store)</a><br />
|
40
|
+
<a href="classes/Configatron/Store.html#M000015">set_default (Configatron::Store)</a><br />
|
41
|
+
<a href="classes/Configatron.html#M000004">temp (Configatron)</a><br />
|
42
|
+
<a href="classes/Configatron.html#M000006">temp_end (Configatron)</a><br />
|
43
|
+
<a href="classes/Configatron.html#M000005">temp_start (Configatron)</a><br />
|
44
|
+
<a href="classes/Class.html#M000001">to_configatron (Class)</a><br />
|
45
|
+
<a href="classes/Configatron/Store.html#M000008">to_hash (Configatron::Store)</a><br />
|
46
|
+
<a href="classes/Configatron/Store.html#M000021">unlock (Configatron::Store)</a><br />
|
47
|
+
<a href="classes/Configatron/Store.html#M000024">unlock! (Configatron::Store)</a><br />
|
48
|
+
<a href="classes/Configatron/Store.html#M000018">unprotect (Configatron::Store)</a><br />
|
49
|
+
<a href="classes/Configatron/Store.html#M000019">unprotect_all! (Configatron::Store)</a><br />
|
49
50
|
</div>
|
50
51
|
</div>
|
51
52
|
</body>
|