rprompt 0.0.2 → 0.0.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/.gitignore +0 -1
- data/doc/Rprompt.html +129 -0
- data/doc/Rprompt/GitBranch.html +335 -0
- data/doc/Rprompt/GitNumbers.html +335 -0
- data/doc/Rprompt/GitSha.html +335 -0
- data/doc/Rprompt/GitTrack.html +455 -0
- data/doc/Rprompt/PromptItem.html +516 -0
- data/doc/Rprompt/RvmGemset.html +353 -0
- data/doc/Rprompt/RvmRuby.html +345 -0
- data/doc/String.html +136 -0
- data/doc/_index.html +188 -0
- data/doc/class_list.html +54 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +338 -0
- data/doc/file.README.html +168 -0
- data/doc/file_list.html +56 -0
- data/doc/frames.html +28 -0
- data/doc/index.html +168 -0
- data/doc/js/app.js +214 -0
- data/doc/js/full_list.js +178 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +155 -0
- data/doc/top-level-namespace.html +114 -0
- data/lib/rprompt/version.rb +1 -1
- metadata +24 -1
@@ -0,0 +1,353 @@
|
|
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 http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Class: Rprompt::RvmGemset
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.6.2
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '../';
|
20
|
+
framesUrl = "../frames.html#!" + escape(window.location.href);
|
21
|
+
</script>
|
22
|
+
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
25
|
+
|
26
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
27
|
+
|
28
|
+
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="header">
|
32
|
+
<div id="menu">
|
33
|
+
|
34
|
+
<a href="../_index.html">Index (R)</a> »
|
35
|
+
<span class='title'><span class='object_link'><a href="../Rprompt.html" title="Rprompt (module)">Rprompt</a></span></span>
|
36
|
+
»
|
37
|
+
<span class="title">RvmGemset</span>
|
38
|
+
|
39
|
+
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div id="search">
|
44
|
+
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
46
|
+
href="../class_list.html">
|
47
|
+
Class List
|
48
|
+
</a>
|
49
|
+
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
51
|
+
href="../method_list.html">
|
52
|
+
Method List
|
53
|
+
</a>
|
54
|
+
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
56
|
+
href="../file_list.html">
|
57
|
+
File List
|
58
|
+
</a>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
<div class="clear"></div>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<iframe id="search_frame"></iframe>
|
65
|
+
|
66
|
+
<div id="content"><h1>Class: Rprompt::RvmGemset
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
<dt class="r1">Inherits:</dt>
|
75
|
+
<dd class="r1">
|
76
|
+
<span class="inheritName"><span class='object_link'><a href="PromptItem.html" title="Rprompt::PromptItem (class)">PromptItem</a></span></span>
|
77
|
+
|
78
|
+
<ul class="fullTree">
|
79
|
+
<li>Object</li>
|
80
|
+
|
81
|
+
<li class="next"><span class='object_link'><a href="PromptItem.html" title="Rprompt::PromptItem (class)">PromptItem</a></span></li>
|
82
|
+
|
83
|
+
<li class="next">Rprompt::RvmGemset</li>
|
84
|
+
|
85
|
+
</ul>
|
86
|
+
<a href="#" class="inheritanceTree">show all</a>
|
87
|
+
|
88
|
+
</dd>
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
<dt class="r2 last">Defined in:</dt>
|
99
|
+
<dd class="r2 last">lib/rprompt.rb</dd>
|
100
|
+
|
101
|
+
</dl>
|
102
|
+
<div class="clear"></div>
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
<h2>Instance Attribute Summary</h2>
|
111
|
+
|
112
|
+
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="PromptItem.html" title="Rprompt::PromptItem (class)">PromptItem</a></span></h3>
|
113
|
+
<p class="inherited"><span class='object_link'><a href="PromptItem.html#color-instance_method" title="Rprompt::PromptItem#color (method)">#color</a></span>, <span class='object_link'><a href="PromptItem.html#symbol-instance_method" title="Rprompt::PromptItem#symbol (method)">#symbol</a></span></p>
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
<h2>
|
118
|
+
Instance Method Summary
|
119
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
120
|
+
</h2>
|
121
|
+
|
122
|
+
<ul class="summary">
|
123
|
+
|
124
|
+
<li class="public ">
|
125
|
+
<span class="summary_signature">
|
126
|
+
|
127
|
+
<a href="#gemset-instance_method" title="#gemset (instance method)">- (String) <strong>gemset</strong> </a>
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
</span>
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
<span class="summary_desc"><div class='inline'>
|
142
|
+
<p>Gemset used.</p>
|
143
|
+
</div></span>
|
144
|
+
|
145
|
+
</li>
|
146
|
+
|
147
|
+
|
148
|
+
<li class="public ">
|
149
|
+
<span class="summary_signature">
|
150
|
+
|
151
|
+
<a href="#show-instance_method" title="#show (instance method)">- (String) <strong>show</strong> </a>
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
</span>
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
<span class="summary_desc"><div class='inline'>
|
166
|
+
<p>Terminal representation of the gemset used.</p>
|
167
|
+
</div></span>
|
168
|
+
|
169
|
+
</li>
|
170
|
+
|
171
|
+
|
172
|
+
</ul>
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="PromptItem.html" title="Rprompt::PromptItem (class)">PromptItem</a></span></h3>
|
185
|
+
<p class="inherited"><span class='object_link'><a href="PromptItem.html#commandResult-instance_method" title="Rprompt::PromptItem#commandResult (method)">#commandResult</a></span>, <span class='object_link'><a href="PromptItem.html#initialize-instance_method" title="Rprompt::PromptItem#initialize (method)">#initialize</a></span></p>
|
186
|
+
<div id="constructor_details" class="method_details_list">
|
187
|
+
<h2>Constructor Details</h2>
|
188
|
+
|
189
|
+
<p class="notice">This class inherits a constructor from <span class='object_link'><a href="PromptItem.html#initialize-instance_method" title="Rprompt::PromptItem#initialize (method)">Rprompt::PromptItem</a></span></p>
|
190
|
+
|
191
|
+
</div>
|
192
|
+
|
193
|
+
|
194
|
+
<div id="instance_method_details" class="method_details_list">
|
195
|
+
<h2>Instance Method Details</h2>
|
196
|
+
|
197
|
+
|
198
|
+
<div class="method_details first">
|
199
|
+
<h3 class="signature first" id="gemset-instance_method">
|
200
|
+
|
201
|
+
- (<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>) <strong>gemset</strong>
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
</h3><div class="docstring">
|
208
|
+
<div class="discussion">
|
209
|
+
|
210
|
+
<p>Gemset used</p>
|
211
|
+
|
212
|
+
|
213
|
+
</div>
|
214
|
+
</div>
|
215
|
+
<div class="tags">
|
216
|
+
|
217
|
+
<p class="tag_title">Returns:</p>
|
218
|
+
<ul class="return">
|
219
|
+
|
220
|
+
<li>
|
221
|
+
|
222
|
+
|
223
|
+
<span class='type'>(<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>)</span>
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
—
|
228
|
+
<div class='inline'>
|
229
|
+
<p>gemset used</p>
|
230
|
+
</div>
|
231
|
+
|
232
|
+
</li>
|
233
|
+
|
234
|
+
</ul>
|
235
|
+
|
236
|
+
</div><table class="source_code">
|
237
|
+
<tr>
|
238
|
+
<td>
|
239
|
+
<pre class="lines">
|
240
|
+
|
241
|
+
|
242
|
+
128
|
243
|
+
129
|
244
|
+
130
|
245
|
+
131
|
246
|
+
132
|
247
|
+
133
|
248
|
+
134
|
249
|
+
135</pre>
|
250
|
+
</td>
|
251
|
+
<td>
|
252
|
+
<pre class="code"><span class="info file"># File 'lib/rprompt.rb', line 128</span>
|
253
|
+
|
254
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_gemset'>gemset</span>
|
255
|
+
<span class='id identifier rubyid_text'>text</span> <span class='op'>=</span> <span class='id identifier rubyid_commandResult'>commandResult</span><span class='period'>.</span><span class='id identifier rubyid_chomp'>chomp</span>
|
256
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_text'>text</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>@</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
257
|
+
<span class='id identifier rubyid_text'>text</span><span class='period'>.</span><span class='id identifier rubyid_match'>match</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>.+@(.+)</span><span class='regexp_end'>/</span></span><span class='rparen'>)</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span>
|
258
|
+
<span class='kw'>else</span>
|
259
|
+
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span>
|
260
|
+
<span class='kw'>end</span>
|
261
|
+
<span class='kw'>end</span></pre>
|
262
|
+
</td>
|
263
|
+
</tr>
|
264
|
+
</table>
|
265
|
+
</div>
|
266
|
+
|
267
|
+
<div class="method_details ">
|
268
|
+
<h3 class="signature " id="show-instance_method">
|
269
|
+
|
270
|
+
- (<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>) <strong>show</strong>
|
271
|
+
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
</h3><div class="docstring">
|
277
|
+
<div class="discussion">
|
278
|
+
|
279
|
+
<p>Terminal representation of the gemset used</p>
|
280
|
+
|
281
|
+
|
282
|
+
</div>
|
283
|
+
</div>
|
284
|
+
<div class="tags">
|
285
|
+
|
286
|
+
<p class="tag_title">Returns:</p>
|
287
|
+
<ul class="return">
|
288
|
+
|
289
|
+
<li>
|
290
|
+
|
291
|
+
|
292
|
+
<span class='type'>(<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>)</span>
|
293
|
+
|
294
|
+
|
295
|
+
|
296
|
+
—
|
297
|
+
<div class='inline'>
|
298
|
+
<p>terminal representation of the gemset used</p>
|
299
|
+
</div>
|
300
|
+
|
301
|
+
</li>
|
302
|
+
|
303
|
+
</ul>
|
304
|
+
|
305
|
+
</div><table class="source_code">
|
306
|
+
<tr>
|
307
|
+
<td>
|
308
|
+
<pre class="lines">
|
309
|
+
|
310
|
+
|
311
|
+
138
|
312
|
+
139
|
313
|
+
140
|
314
|
+
141
|
315
|
+
142
|
316
|
+
143
|
317
|
+
144
|
318
|
+
145
|
319
|
+
146
|
320
|
+
147
|
321
|
+
148</pre>
|
322
|
+
</td>
|
323
|
+
<td>
|
324
|
+
<pre class="code"><span class="info file"># File 'lib/rprompt.rb', line 138</span>
|
325
|
+
|
326
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_show'>show</span>
|
327
|
+
<span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_gemset'>gemset</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
|
328
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_color'>color</span>
|
329
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_symbol'>symbol</span><span class='rbrace'>}</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_gemset'>gemset</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='id identifier rubyid_color'>color</span><span class='rparen'>)</span>
|
330
|
+
<span class='kw'>else</span>
|
331
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_symbol'>symbol</span><span class='rbrace'>}</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_gemset'>gemset</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span>
|
332
|
+
<span class='kw'>end</span>
|
333
|
+
<span class='kw'>else</span>
|
334
|
+
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span>
|
335
|
+
<span class='kw'>end</span>
|
336
|
+
<span class='kw'>end</span></pre>
|
337
|
+
</td>
|
338
|
+
</tr>
|
339
|
+
</table>
|
340
|
+
</div>
|
341
|
+
|
342
|
+
</div>
|
343
|
+
|
344
|
+
</div>
|
345
|
+
|
346
|
+
<div id="footer">
|
347
|
+
Generated on Sat Jul 20 10:38:07 2013 by
|
348
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
349
|
+
0.8.6.2 (ruby-1.9.3).
|
350
|
+
</div>
|
351
|
+
|
352
|
+
</body>
|
353
|
+
</html>
|
@@ -0,0 +1,345 @@
|
|
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 http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Class: Rprompt::RvmRuby
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.6.2
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '../';
|
20
|
+
framesUrl = "../frames.html#!" + escape(window.location.href);
|
21
|
+
</script>
|
22
|
+
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
25
|
+
|
26
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
27
|
+
|
28
|
+
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="header">
|
32
|
+
<div id="menu">
|
33
|
+
|
34
|
+
<a href="../_index.html">Index (R)</a> »
|
35
|
+
<span class='title'><span class='object_link'><a href="../Rprompt.html" title="Rprompt (module)">Rprompt</a></span></span>
|
36
|
+
»
|
37
|
+
<span class="title">RvmRuby</span>
|
38
|
+
|
39
|
+
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div id="search">
|
44
|
+
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
46
|
+
href="../class_list.html">
|
47
|
+
Class List
|
48
|
+
</a>
|
49
|
+
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
51
|
+
href="../method_list.html">
|
52
|
+
Method List
|
53
|
+
</a>
|
54
|
+
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
56
|
+
href="../file_list.html">
|
57
|
+
File List
|
58
|
+
</a>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
<div class="clear"></div>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<iframe id="search_frame"></iframe>
|
65
|
+
|
66
|
+
<div id="content"><h1>Class: Rprompt::RvmRuby
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
<dt class="r1">Inherits:</dt>
|
75
|
+
<dd class="r1">
|
76
|
+
<span class="inheritName"><span class='object_link'><a href="PromptItem.html" title="Rprompt::PromptItem (class)">PromptItem</a></span></span>
|
77
|
+
|
78
|
+
<ul class="fullTree">
|
79
|
+
<li>Object</li>
|
80
|
+
|
81
|
+
<li class="next"><span class='object_link'><a href="PromptItem.html" title="Rprompt::PromptItem (class)">PromptItem</a></span></li>
|
82
|
+
|
83
|
+
<li class="next">Rprompt::RvmRuby</li>
|
84
|
+
|
85
|
+
</ul>
|
86
|
+
<a href="#" class="inheritanceTree">show all</a>
|
87
|
+
|
88
|
+
</dd>
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
<dt class="r2 last">Defined in:</dt>
|
99
|
+
<dd class="r2 last">lib/rprompt.rb</dd>
|
100
|
+
|
101
|
+
</dl>
|
102
|
+
<div class="clear"></div>
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
<h2>Instance Attribute Summary</h2>
|
111
|
+
|
112
|
+
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="PromptItem.html" title="Rprompt::PromptItem (class)">PromptItem</a></span></h3>
|
113
|
+
<p class="inherited"><span class='object_link'><a href="PromptItem.html#color-instance_method" title="Rprompt::PromptItem#color (method)">#color</a></span>, <span class='object_link'><a href="PromptItem.html#symbol-instance_method" title="Rprompt::PromptItem#symbol (method)">#symbol</a></span></p>
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
<h2>
|
118
|
+
Instance Method Summary
|
119
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
120
|
+
</h2>
|
121
|
+
|
122
|
+
<ul class="summary">
|
123
|
+
|
124
|
+
<li class="public ">
|
125
|
+
<span class="summary_signature">
|
126
|
+
|
127
|
+
<a href="#ruby-instance_method" title="#ruby (instance method)">- (String) <strong>ruby</strong> </a>
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
</span>
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
<span class="summary_desc"><div class='inline'>
|
142
|
+
<p>Ruby used.</p>
|
143
|
+
</div></span>
|
144
|
+
|
145
|
+
</li>
|
146
|
+
|
147
|
+
|
148
|
+
<li class="public ">
|
149
|
+
<span class="summary_signature">
|
150
|
+
|
151
|
+
<a href="#show-instance_method" title="#show (instance method)">- (String) <strong>show</strong> </a>
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
</span>
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
<span class="summary_desc"><div class='inline'>
|
166
|
+
<p>Terminal representation of the ruby version.</p>
|
167
|
+
</div></span>
|
168
|
+
|
169
|
+
</li>
|
170
|
+
|
171
|
+
|
172
|
+
</ul>
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="PromptItem.html" title="Rprompt::PromptItem (class)">PromptItem</a></span></h3>
|
185
|
+
<p class="inherited"><span class='object_link'><a href="PromptItem.html#commandResult-instance_method" title="Rprompt::PromptItem#commandResult (method)">#commandResult</a></span>, <span class='object_link'><a href="PromptItem.html#initialize-instance_method" title="Rprompt::PromptItem#initialize (method)">#initialize</a></span></p>
|
186
|
+
<div id="constructor_details" class="method_details_list">
|
187
|
+
<h2>Constructor Details</h2>
|
188
|
+
|
189
|
+
<p class="notice">This class inherits a constructor from <span class='object_link'><a href="PromptItem.html#initialize-instance_method" title="Rprompt::PromptItem#initialize (method)">Rprompt::PromptItem</a></span></p>
|
190
|
+
|
191
|
+
</div>
|
192
|
+
|
193
|
+
|
194
|
+
<div id="instance_method_details" class="method_details_list">
|
195
|
+
<h2>Instance Method Details</h2>
|
196
|
+
|
197
|
+
|
198
|
+
<div class="method_details first">
|
199
|
+
<h3 class="signature first" id="ruby-instance_method">
|
200
|
+
|
201
|
+
- (<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>) <strong>ruby</strong>
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
</h3><div class="docstring">
|
208
|
+
<div class="discussion">
|
209
|
+
|
210
|
+
<p>Ruby used</p>
|
211
|
+
|
212
|
+
|
213
|
+
</div>
|
214
|
+
</div>
|
215
|
+
<div class="tags">
|
216
|
+
|
217
|
+
<p class="tag_title">Returns:</p>
|
218
|
+
<ul class="return">
|
219
|
+
|
220
|
+
<li>
|
221
|
+
|
222
|
+
|
223
|
+
<span class='type'>(<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>)</span>
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
—
|
228
|
+
<div class='inline'>
|
229
|
+
<p>ruby used</p>
|
230
|
+
</div>
|
231
|
+
|
232
|
+
</li>
|
233
|
+
|
234
|
+
</ul>
|
235
|
+
|
236
|
+
</div><table class="source_code">
|
237
|
+
<tr>
|
238
|
+
<td>
|
239
|
+
<pre class="lines">
|
240
|
+
|
241
|
+
|
242
|
+
107
|
243
|
+
108
|
244
|
+
109
|
245
|
+
110
|
246
|
+
111
|
247
|
+
112
|
248
|
+
113
|
249
|
+
114</pre>
|
250
|
+
</td>
|
251
|
+
<td>
|
252
|
+
<pre class="code"><span class="info file"># File 'lib/rprompt.rb', line 107</span>
|
253
|
+
|
254
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_ruby'>ruby</span>
|
255
|
+
<span class='id identifier rubyid_text'>text</span> <span class='op'>=</span> <span class='id identifier rubyid_commandResult'>commandResult</span><span class='period'>.</span><span class='id identifier rubyid_chomp'>chomp</span>
|
256
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_text'>text</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>@</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
257
|
+
<span class='id identifier rubyid_text'>text</span><span class='period'>.</span><span class='id identifier rubyid_match'>match</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>ruby-(.+)@</span><span class='regexp_end'>/</span></span><span class='rparen'>)</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span>
|
258
|
+
<span class='kw'>else</span>
|
259
|
+
<span class='id identifier rubyid_text'>text</span><span class='period'>.</span><span class='id identifier rubyid_gsub!'>gsub!</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>ruby-</span><span class='regexp_end'>/</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
260
|
+
<span class='kw'>end</span>
|
261
|
+
<span class='kw'>end</span></pre>
|
262
|
+
</td>
|
263
|
+
</tr>
|
264
|
+
</table>
|
265
|
+
</div>
|
266
|
+
|
267
|
+
<div class="method_details ">
|
268
|
+
<h3 class="signature " id="show-instance_method">
|
269
|
+
|
270
|
+
- (<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>) <strong>show</strong>
|
271
|
+
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
</h3><div class="docstring">
|
277
|
+
<div class="discussion">
|
278
|
+
|
279
|
+
<p>Terminal representation of the ruby version</p>
|
280
|
+
|
281
|
+
|
282
|
+
</div>
|
283
|
+
</div>
|
284
|
+
<div class="tags">
|
285
|
+
|
286
|
+
<p class="tag_title">Returns:</p>
|
287
|
+
<ul class="return">
|
288
|
+
|
289
|
+
<li>
|
290
|
+
|
291
|
+
|
292
|
+
<span class='type'>(<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>)</span>
|
293
|
+
|
294
|
+
|
295
|
+
|
296
|
+
—
|
297
|
+
<div class='inline'>
|
298
|
+
<p>terminal representation of the ruby version</p>
|
299
|
+
</div>
|
300
|
+
|
301
|
+
</li>
|
302
|
+
|
303
|
+
</ul>
|
304
|
+
|
305
|
+
</div><table class="source_code">
|
306
|
+
<tr>
|
307
|
+
<td>
|
308
|
+
<pre class="lines">
|
309
|
+
|
310
|
+
|
311
|
+
117
|
312
|
+
118
|
313
|
+
119
|
314
|
+
120
|
315
|
+
121
|
316
|
+
122
|
317
|
+
123</pre>
|
318
|
+
</td>
|
319
|
+
<td>
|
320
|
+
<pre class="code"><span class="info file"># File 'lib/rprompt.rb', line 117</span>
|
321
|
+
|
322
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_show'>show</span>
|
323
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_color'>color</span>
|
324
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_symbol'>symbol</span><span class='rbrace'>}</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_ruby'>ruby</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='id identifier rubyid_color'>color</span><span class='rparen'>)</span>
|
325
|
+
<span class='kw'>else</span>
|
326
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_symbol'>symbol</span><span class='rbrace'>}</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_ruby'>ruby</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span>
|
327
|
+
<span class='kw'>end</span>
|
328
|
+
<span class='kw'>end</span></pre>
|
329
|
+
</td>
|
330
|
+
</tr>
|
331
|
+
</table>
|
332
|
+
</div>
|
333
|
+
|
334
|
+
</div>
|
335
|
+
|
336
|
+
</div>
|
337
|
+
|
338
|
+
<div id="footer">
|
339
|
+
Generated on Sat Jul 20 10:38:07 2013 by
|
340
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
341
|
+
0.8.6.2 (ruby-1.9.3).
|
342
|
+
</div>
|
343
|
+
|
344
|
+
</body>
|
345
|
+
</html>
|