reflection 0.4.0 → 0.4.1
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/.yardoc +0 -0
- data/README.rdoc +105 -7
- data/Reflection.gemspec +32 -1
- data/VERSION +1 -1
- data/doc/Reflection/CLI.html +153 -0
- data/doc/Reflection/Command/Apply.html +266 -0
- data/doc/Reflection/Command/Base.html +385 -0
- data/doc/Reflection/Command/Stash.html +342 -0
- data/doc/Reflection/Command.html +85 -0
- data/doc/Reflection/Config.html +902 -0
- data/doc/Reflection/ConfigArgumentError.html +92 -0
- data/doc/Reflection/Directory/Base.html +657 -0
- data/doc/Reflection/Directory/Stash.html +411 -0
- data/doc/Reflection/Directory.html +85 -0
- data/doc/Reflection/Rails.html +409 -0
- data/doc/Reflection/Repository.html +745 -0
- data/doc/Reflection/Support/Home.html +182 -0
- data/doc/Reflection/Support/Log.html +222 -0
- data/doc/Reflection/Support.html +141 -0
- data/doc/Reflection/Validations.html +135 -0
- data/doc/Reflection.html +285 -0
- data/doc/_index.html +267 -0
- data/doc/class_list.html +197 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +23 -0
- data/doc/css/style.css +261 -0
- data/doc/file.README.html +200 -0
- data/doc/file_list.html +29 -0
- data/doc/index.html +200 -0
- data/doc/js/app.js +91 -0
- data/doc/js/full_list.js +39 -0
- data/doc/js/jquery.js +19 -0
- data/doc/method_list.html +572 -0
- data/doc/top-level-namespace.html +80 -0
- metadata +32 -1
@@ -0,0 +1,182 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta name="Content-Type" content="text/html; charset=UTF-8" />
|
6
|
+
<title>Class: Reflection::Support::Home</title>
|
7
|
+
<link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
8
|
+
<link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
9
|
+
|
10
|
+
<script type="text/javascript" charset="utf-8">
|
11
|
+
relpath = '../..';
|
12
|
+
if (relpath != '') relpath += '/';
|
13
|
+
</script>
|
14
|
+
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
15
|
+
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
16
|
+
|
17
|
+
</head>
|
18
|
+
<body>
|
19
|
+
<div id="header">
|
20
|
+
<div id="menu">
|
21
|
+
|
22
|
+
<a href="../../_index.html">Index (H)</a> »
|
23
|
+
<a title="Reflection" href="../../Reflection.html">Reflection</a> » <a title="Support" href="../Support.html">Support</a>
|
24
|
+
»
|
25
|
+
<span class="title">Home</span>
|
26
|
+
|
27
|
+
</div>
|
28
|
+
|
29
|
+
<div id="search">
|
30
|
+
<a id="class_list_link" href="#">Namespace List</a>
|
31
|
+
<a id="method_list_link" href="#">Method List</a>
|
32
|
+
<a id ="file_list_link" href="#">File List</a>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div class="clear"></div>
|
36
|
+
</div>
|
37
|
+
|
38
|
+
<iframe id="search_frame"></iframe>
|
39
|
+
|
40
|
+
<div id="content"><h1>Class: Reflection::Support::Home
|
41
|
+
|
42
|
+
|
43
|
+
</h1>
|
44
|
+
|
45
|
+
<dl class="box">
|
46
|
+
|
47
|
+
<dt class="r1">Inherits:</dt>
|
48
|
+
<dd class="r1">
|
49
|
+
<span class="inheritName">Object</span>
|
50
|
+
|
51
|
+
</dd>
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
<dt class="r2 last">Defined in:</dt>
|
61
|
+
<dd class="r2 last">lib/reflection/support/home.rb</dd>
|
62
|
+
|
63
|
+
</dl>
|
64
|
+
<div class="clear"></div>
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
<h2>Method Summary</h2>
|
70
|
+
<ul class="summary">
|
71
|
+
|
72
|
+
<li class="public ">
|
73
|
+
<span class="summary_signature"><a title="#create (instance method)" href="#create-instance_method">- (Object) <strong>create</strong> </a>
|
74
|
+
|
75
|
+
</span>
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
<span class="summary_desc"></span>
|
83
|
+
|
84
|
+
</li>
|
85
|
+
|
86
|
+
|
87
|
+
<li class="public ">
|
88
|
+
<span class="summary_signature"><a title="#path (instance method)" href="#path-instance_method">- (Object) <strong>path</strong> </a>
|
89
|
+
|
90
|
+
</span>
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
<span class="summary_desc"></span>
|
98
|
+
|
99
|
+
</li>
|
100
|
+
|
101
|
+
|
102
|
+
</ul>
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
<div id="method_details">
|
107
|
+
<h2>Method Details</h2>
|
108
|
+
|
109
|
+
<div class="method_details first">
|
110
|
+
<p class="signature first" id="create-instance_method">
|
111
|
+
|
112
|
+
- (<tt>Object</tt>) <strong>create</strong>
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
</p><table class="source_code">
|
117
|
+
<tr>
|
118
|
+
<td>
|
119
|
+
<pre class="lines">
|
120
|
+
|
121
|
+
|
122
|
+
9
|
123
|
+
10
|
124
|
+
11
|
125
|
+
12
|
126
|
+
13</pre>
|
127
|
+
</td>
|
128
|
+
<td>
|
129
|
+
<pre class="code"><span class="info file"># File 'lib/reflection/support/home.rb', line 9</span>
|
130
|
+
|
131
|
+
<span class='def def kw'>def</span> <span class='create identifier id'>create</span>
|
132
|
+
<span class='unless unless kw'>unless</span> <span class='File constant id'>File</span><span class='dot token'>.</span><span class='exist? fid id'>exist?</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='dot token'>.</span><span class='path identifier id'>path</span><span class='rparen token'>)</span>
|
133
|
+
<span class='Dir constant id'>Dir</span><span class='dot token'>.</span><span class='mkdir identifier id'>mkdir</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='dot token'>.</span><span class='path identifier id'>path</span><span class='rparen token'>)</span>
|
134
|
+
<span class='end end kw'>end</span>
|
135
|
+
<span class='end end kw'>end</span>
|
136
|
+
</pre>
|
137
|
+
</td>
|
138
|
+
</tr>
|
139
|
+
</table>
|
140
|
+
</div>
|
141
|
+
|
142
|
+
<div class="method_details ">
|
143
|
+
<p class="signature " id="path-instance_method">
|
144
|
+
|
145
|
+
- (<tt>Object</tt>) <strong>path</strong>
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
</p><table class="source_code">
|
150
|
+
<tr>
|
151
|
+
<td>
|
152
|
+
<pre class="lines">
|
153
|
+
|
154
|
+
|
155
|
+
5
|
156
|
+
6
|
157
|
+
7</pre>
|
158
|
+
</td>
|
159
|
+
<td>
|
160
|
+
<pre class="code"><span class="info file"># File 'lib/reflection/support/home.rb', line 5</span>
|
161
|
+
|
162
|
+
<span class='def def kw'>def</span> <span class='path identifier id'>path</span>
|
163
|
+
<span class='@path ivar id'>@path</span> <span class='opasgn op'>||=</span> <span class='File constant id'>File</span><span class='dot token'>.</span><span class='expand_path identifier id'>expand_path</span><span class='lparen token'>(</span><span class='File constant id'>File</span><span class='dot token'>.</span><span class='join identifier id'>join</span><span class='lparen token'>(</span><span class='ENV constant id'>ENV</span><span class='lbrack token'>[</span><span class='string val'>'HOME'</span><span class='rbrack token'>]</span><span class='comma token'>,</span> <span class='string val'>'.reflection'</span><span class='rparen token'>)</span><span class='rparen token'>)</span>
|
164
|
+
<span class='end end kw'>end</span>
|
165
|
+
</pre>
|
166
|
+
</td>
|
167
|
+
</tr>
|
168
|
+
</table>
|
169
|
+
</div>
|
170
|
+
|
171
|
+
</div>
|
172
|
+
|
173
|
+
</div>
|
174
|
+
|
175
|
+
<div id="footer">
|
176
|
+
Generated on Wed Nov 18 18:17:12 2009 by
|
177
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
|
178
|
+
0.4.0 (ruby-1.8.7).
|
179
|
+
</div>
|
180
|
+
|
181
|
+
</body>
|
182
|
+
</html>
|
@@ -0,0 +1,222 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta name="Content-Type" content="text/html; charset=UTF-8" />
|
6
|
+
<title>Class: Reflection::Support::Log</title>
|
7
|
+
<link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
8
|
+
<link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
9
|
+
|
10
|
+
<script type="text/javascript" charset="utf-8">
|
11
|
+
relpath = '../..';
|
12
|
+
if (relpath != '') relpath += '/';
|
13
|
+
</script>
|
14
|
+
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
15
|
+
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
16
|
+
|
17
|
+
</head>
|
18
|
+
<body>
|
19
|
+
<div id="header">
|
20
|
+
<div id="menu">
|
21
|
+
|
22
|
+
<a href="../../_index.html">Index (L)</a> »
|
23
|
+
<a title="Reflection" href="../../Reflection.html">Reflection</a> » <a title="Support" href="../Support.html">Support</a>
|
24
|
+
»
|
25
|
+
<span class="title">Log</span>
|
26
|
+
|
27
|
+
</div>
|
28
|
+
|
29
|
+
<div id="search">
|
30
|
+
<a id="class_list_link" href="#">Namespace List</a>
|
31
|
+
<a id="method_list_link" href="#">Method List</a>
|
32
|
+
<a id ="file_list_link" href="#">File List</a>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div class="clear"></div>
|
36
|
+
</div>
|
37
|
+
|
38
|
+
<iframe id="search_frame"></iframe>
|
39
|
+
|
40
|
+
<div id="content"><h1>Class: Reflection::Support::Log
|
41
|
+
|
42
|
+
|
43
|
+
</h1>
|
44
|
+
|
45
|
+
<dl class="box">
|
46
|
+
|
47
|
+
<dt class="r1">Inherits:</dt>
|
48
|
+
<dd class="r1">
|
49
|
+
<span class="inheritName">Object</span>
|
50
|
+
|
51
|
+
</dd>
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
<dt class="r2 last">Defined in:</dt>
|
61
|
+
<dd class="r2 last">lib/reflection/support/log.rb</dd>
|
62
|
+
|
63
|
+
</dl>
|
64
|
+
<div class="clear"></div>
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
<h2>Method Summary</h2>
|
70
|
+
<ul class="summary">
|
71
|
+
|
72
|
+
<li class="public ">
|
73
|
+
<span class="summary_signature"><a title="#debug (instance method)" href="#debug-instance_method">- (Object) <strong>debug</strong>(message) </a>
|
74
|
+
|
75
|
+
</span>
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
<span class="summary_desc"></span>
|
83
|
+
|
84
|
+
</li>
|
85
|
+
|
86
|
+
|
87
|
+
<li class="public ">
|
88
|
+
<span class="summary_signature"><a title="#error (instance method)" href="#error-instance_method">- (Object) <strong>error</strong>(message) </a>
|
89
|
+
|
90
|
+
</span>
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
<span class="summary_desc"></span>
|
98
|
+
|
99
|
+
</li>
|
100
|
+
|
101
|
+
|
102
|
+
<li class="public ">
|
103
|
+
<span class="summary_signature"><a title="#info (instance method)" href="#info-instance_method">- (Object) <strong>info</strong>(message) </a>
|
104
|
+
|
105
|
+
</span>
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
<span class="summary_desc"></span>
|
113
|
+
|
114
|
+
</li>
|
115
|
+
|
116
|
+
|
117
|
+
</ul>
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
<div id="method_details">
|
122
|
+
<h2>Method Details</h2>
|
123
|
+
|
124
|
+
<div class="method_details first">
|
125
|
+
<p class="signature first" id="debug-instance_method">
|
126
|
+
|
127
|
+
- (<tt>Object</tt>) <strong>debug</strong>(message)
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
</p><table class="source_code">
|
132
|
+
<tr>
|
133
|
+
<td>
|
134
|
+
<pre class="lines">
|
135
|
+
|
136
|
+
|
137
|
+
5
|
138
|
+
6
|
139
|
+
7</pre>
|
140
|
+
</td>
|
141
|
+
<td>
|
142
|
+
<pre class="code"><span class="info file"># File 'lib/reflection/support/log.rb', line 5</span>
|
143
|
+
|
144
|
+
<span class='def def kw'>def</span> <span class='debug identifier id'>debug</span><span class='lparen token'>(</span><span class='message identifier id'>message</span><span class='rparen token'>)</span>
|
145
|
+
<span class='puts identifier id'>puts</span> <span class='dstring node'>"** #{message}"</span> <span class='if if_mod kw'>if</span> <span class='message identifier id'>message</span> <span class='andop op'>&&</span> <span class='notop op'>!</span><span class='message identifier id'>message</span><span class='dot token'>.</span><span class='empty? fid id'>empty?</span>
|
146
|
+
<span class='end end kw'>end</span>
|
147
|
+
</pre>
|
148
|
+
</td>
|
149
|
+
</tr>
|
150
|
+
</table>
|
151
|
+
</div>
|
152
|
+
|
153
|
+
<div class="method_details ">
|
154
|
+
<p class="signature " id="error-instance_method">
|
155
|
+
|
156
|
+
- (<tt>Object</tt>) <strong>error</strong>(message)
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
</p><table class="source_code">
|
161
|
+
<tr>
|
162
|
+
<td>
|
163
|
+
<pre class="lines">
|
164
|
+
|
165
|
+
|
166
|
+
13
|
167
|
+
14
|
168
|
+
15</pre>
|
169
|
+
</td>
|
170
|
+
<td>
|
171
|
+
<pre class="code"><span class="info file"># File 'lib/reflection/support/log.rb', line 13</span>
|
172
|
+
|
173
|
+
<span class='def def kw'>def</span> <span class='error identifier id'>error</span><span class='lparen token'>(</span><span class='message identifier id'>message</span><span class='rparen token'>)</span>
|
174
|
+
<span class='puts identifier id'>puts</span> <span class='dstring node'>"!! #{message}"</span> <span class='if if_mod kw'>if</span> <span class='message identifier id'>message</span> <span class='andop op'>&&</span> <span class='notop op'>!</span><span class='message identifier id'>message</span><span class='dot token'>.</span><span class='empty? fid id'>empty?</span>
|
175
|
+
<span class='end end kw'>end</span>
|
176
|
+
</pre>
|
177
|
+
</td>
|
178
|
+
</tr>
|
179
|
+
</table>
|
180
|
+
</div>
|
181
|
+
|
182
|
+
<div class="method_details ">
|
183
|
+
<p class="signature " id="info-instance_method">
|
184
|
+
|
185
|
+
- (<tt>Object</tt>) <strong>info</strong>(message)
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
</p><table class="source_code">
|
190
|
+
<tr>
|
191
|
+
<td>
|
192
|
+
<pre class="lines">
|
193
|
+
|
194
|
+
|
195
|
+
9
|
196
|
+
10
|
197
|
+
11</pre>
|
198
|
+
</td>
|
199
|
+
<td>
|
200
|
+
<pre class="code"><span class="info file"># File 'lib/reflection/support/log.rb', line 9</span>
|
201
|
+
|
202
|
+
<span class='def def kw'>def</span> <span class='info identifier id'>info</span><span class='lparen token'>(</span><span class='message identifier id'>message</span><span class='rparen token'>)</span>
|
203
|
+
<span class='puts identifier id'>puts</span> <span class='dstring node'>"** #{message}"</span> <span class='if if_mod kw'>if</span> <span class='message identifier id'>message</span> <span class='andop op'>&&</span> <span class='notop op'>!</span><span class='message identifier id'>message</span><span class='dot token'>.</span><span class='empty? fid id'>empty?</span>
|
204
|
+
<span class='end end kw'>end</span>
|
205
|
+
</pre>
|
206
|
+
</td>
|
207
|
+
</tr>
|
208
|
+
</table>
|
209
|
+
</div>
|
210
|
+
|
211
|
+
</div>
|
212
|
+
|
213
|
+
</div>
|
214
|
+
|
215
|
+
<div id="footer">
|
216
|
+
Generated on Wed Nov 18 18:17:11 2009 by
|
217
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
|
218
|
+
0.4.0 (ruby-1.8.7).
|
219
|
+
</div>
|
220
|
+
|
221
|
+
</body>
|
222
|
+
</html>
|
@@ -0,0 +1,141 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta name="Content-Type" content="text/html; charset=UTF-8" />
|
6
|
+
<title>Module: Reflection::Support</title>
|
7
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
8
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
9
|
+
|
10
|
+
<script type="text/javascript" charset="utf-8">
|
11
|
+
relpath = '..';
|
12
|
+
if (relpath != '') relpath += '/';
|
13
|
+
</script>
|
14
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
15
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
16
|
+
|
17
|
+
</head>
|
18
|
+
<body>
|
19
|
+
<div id="header">
|
20
|
+
<div id="menu">
|
21
|
+
|
22
|
+
<a href="../_index.html">Index (S)</a> »
|
23
|
+
<a title="Reflection" href="../Reflection.html">Reflection</a>
|
24
|
+
»
|
25
|
+
<span class="title">Support</span>
|
26
|
+
|
27
|
+
</div>
|
28
|
+
|
29
|
+
<div id="search">
|
30
|
+
<a id="class_list_link" href="#">Namespace List</a>
|
31
|
+
<a id="method_list_link" href="#">Method List</a>
|
32
|
+
<a id ="file_list_link" href="#">File List</a>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div class="clear"></div>
|
36
|
+
</div>
|
37
|
+
|
38
|
+
<iframe id="search_frame"></iframe>
|
39
|
+
|
40
|
+
<div id="content"><h1>Module: Reflection::Support
|
41
|
+
|
42
|
+
|
43
|
+
</h1>
|
44
|
+
|
45
|
+
<dl class="box">
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
<dt class="r1 last">Defined in:</dt>
|
54
|
+
<dd class="r1 last">lib/reflection/support.rb<span class="defines">,<br />
|
55
|
+
lib/reflection/support/log.rb,<br /> lib/reflection/support/home.rb</span>
|
56
|
+
</dd>
|
57
|
+
|
58
|
+
</dl>
|
59
|
+
<div class="clear"></div>
|
60
|
+
|
61
|
+
<h2>Defined Under Namespace</h2>
|
62
|
+
<p class="children">
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
<strong class="classes">Classes:</strong> <a title="Home" href="Support/Home.html">Home</a>, <a title="Log" href="Support/Log.html">Log</a>
|
68
|
+
|
69
|
+
|
70
|
+
</p>
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
<h2>Method Summary</h2>
|
75
|
+
<ul class="summary">
|
76
|
+
|
77
|
+
<li class="public ">
|
78
|
+
<span class="summary_signature"><a title="exit_with_error (class method)" href="#exit_with_error-class_method">+ (Object) <strong>exit_with_error</strong>(message) </a>
|
79
|
+
|
80
|
+
</span>
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
<span class="summary_desc"></span>
|
88
|
+
|
89
|
+
</li>
|
90
|
+
|
91
|
+
|
92
|
+
</ul>
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
<div id="method_details">
|
97
|
+
<h2>Method Details</h2>
|
98
|
+
|
99
|
+
<div class="method_details first">
|
100
|
+
<p class="signature first" id="exit_with_error-class_method">
|
101
|
+
|
102
|
+
+ (<tt>Object</tt>) <strong>exit_with_error</strong>(message)
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
</p><table class="source_code">
|
107
|
+
<tr>
|
108
|
+
<td>
|
109
|
+
<pre class="lines">
|
110
|
+
|
111
|
+
|
112
|
+
7
|
113
|
+
8
|
114
|
+
9
|
115
|
+
10</pre>
|
116
|
+
</td>
|
117
|
+
<td>
|
118
|
+
<pre class="code"><span class="info file"># File 'lib/reflection/support.rb', line 7</span>
|
119
|
+
|
120
|
+
<span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='exit_with_error identifier id'>exit_with_error</span><span class='lparen token'>(</span><span class='message identifier id'>message</span><span class='rparen token'>)</span>
|
121
|
+
<span class='puts identifier id'>puts</span> <span class='message identifier id'>message</span>
|
122
|
+
<span class='exit identifier id'>exit</span><span class='lparen token'>(</span><span class='integer val'>1</span><span class='rparen token'>)</span>
|
123
|
+
<span class='end end kw'>end</span>
|
124
|
+
</pre>
|
125
|
+
</td>
|
126
|
+
</tr>
|
127
|
+
</table>
|
128
|
+
</div>
|
129
|
+
|
130
|
+
</div>
|
131
|
+
|
132
|
+
</div>
|
133
|
+
|
134
|
+
<div id="footer">
|
135
|
+
Generated on Wed Nov 18 18:17:10 2009 by
|
136
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
|
137
|
+
0.4.0 (ruby-1.8.7).
|
138
|
+
</div>
|
139
|
+
|
140
|
+
</body>
|
141
|
+
</html>
|
@@ -0,0 +1,135 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta name="Content-Type" content="text/html; charset=UTF-8" />
|
6
|
+
<title>Module: Reflection::Validations</title>
|
7
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
8
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
9
|
+
|
10
|
+
<script type="text/javascript" charset="utf-8">
|
11
|
+
relpath = '..';
|
12
|
+
if (relpath != '') relpath += '/';
|
13
|
+
</script>
|
14
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
15
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
16
|
+
|
17
|
+
</head>
|
18
|
+
<body>
|
19
|
+
<div id="header">
|
20
|
+
<div id="menu">
|
21
|
+
|
22
|
+
<a href="../_index.html">Index (V)</a> »
|
23
|
+
<a title="Reflection" href="../Reflection.html">Reflection</a>
|
24
|
+
»
|
25
|
+
<span class="title">Validations</span>
|
26
|
+
|
27
|
+
</div>
|
28
|
+
|
29
|
+
<div id="search">
|
30
|
+
<a id="class_list_link" href="#">Namespace List</a>
|
31
|
+
<a id="method_list_link" href="#">Method List</a>
|
32
|
+
<a id ="file_list_link" href="#">File List</a>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div class="clear"></div>
|
36
|
+
</div>
|
37
|
+
|
38
|
+
<iframe id="search_frame"></iframe>
|
39
|
+
|
40
|
+
<div id="content"><h1>Module: Reflection::Validations
|
41
|
+
|
42
|
+
|
43
|
+
</h1>
|
44
|
+
|
45
|
+
<dl class="box">
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
<dt class="r1 last">Defined in:</dt>
|
54
|
+
<dd class="r1 last">lib/reflection/validations.rb</dd>
|
55
|
+
|
56
|
+
</dl>
|
57
|
+
<div class="clear"></div>
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
<h2>Method Summary</h2>
|
63
|
+
<ul class="summary">
|
64
|
+
|
65
|
+
<li class="public ">
|
66
|
+
<span class="summary_signature"><a title="existence_of (class method)" href="#existence_of-class_method">+ (Object) <strong>existence_of</strong>(path) </a>
|
67
|
+
|
68
|
+
</span>
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
<span class="summary_desc"></span>
|
76
|
+
|
77
|
+
</li>
|
78
|
+
|
79
|
+
|
80
|
+
</ul>
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
<div id="method_details">
|
85
|
+
<h2>Method Details</h2>
|
86
|
+
|
87
|
+
<div class="method_details first">
|
88
|
+
<p class="signature first" id="existence_of-class_method">
|
89
|
+
|
90
|
+
+ (<tt>Object</tt>) <strong>existence_of</strong>(path)
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
</p><table class="source_code">
|
95
|
+
<tr>
|
96
|
+
<td>
|
97
|
+
<pre class="lines">
|
98
|
+
|
99
|
+
|
100
|
+
5
|
101
|
+
6
|
102
|
+
7
|
103
|
+
8
|
104
|
+
9
|
105
|
+
10
|
106
|
+
11</pre>
|
107
|
+
</td>
|
108
|
+
<td>
|
109
|
+
<pre class="code"><span class="info file"># File 'lib/reflection/validations.rb', line 5</span>
|
110
|
+
|
111
|
+
<span class='def def kw'>def</span> <span class='existence_of identifier id'>existence_of</span><span class='lparen token'>(</span><span class='path identifier id'>path</span><span class='rparen token'>)</span>
|
112
|
+
<span class='if if kw'>if</span> <span class='File constant id'>File</span><span class='dot token'>.</span><span class='exist? fid id'>exist?</span><span class='lparen token'>(</span><span class='path identifier id'>path</span><span class='rparen token'>)</span>
|
113
|
+
<span class='return return kw'>return</span> <span class='true true kw'>true</span>
|
114
|
+
<span class='else else kw'>else</span>
|
115
|
+
<span class='Reflection constant id'>Reflection</span><span class='colon2 op'>::</span><span class='Support constant id'>Support</span><span class='dot token'>.</span><span class='exit_with_error identifier id'>exit_with_error</span> <span class='dstring node'>"Option validation failed: #{path} does not exist."</span>
|
116
|
+
<span class='end end kw'>end</span>
|
117
|
+
<span class='end end kw'>end</span>
|
118
|
+
</pre>
|
119
|
+
</td>
|
120
|
+
</tr>
|
121
|
+
</table>
|
122
|
+
</div>
|
123
|
+
|
124
|
+
</div>
|
125
|
+
|
126
|
+
</div>
|
127
|
+
|
128
|
+
<div id="footer">
|
129
|
+
Generated on Wed Nov 18 18:17:10 2009 by
|
130
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
|
131
|
+
0.4.0 (ruby-1.8.7).
|
132
|
+
</div>
|
133
|
+
|
134
|
+
</body>
|
135
|
+
</html>
|