sydney 0.0.1 → 0.0.2
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 +1 -2
- data/NEWS.md +6 -0
- data/README.md +21 -10
- data/doc/Gemfile.html +107 -0
- data/doc/LICENSE.html +125 -0
- data/doc/Rakefile.html +105 -0
- data/doc/Sydney.html +276 -0
- data/doc/SydneyAliasFile.html +141 -0
- data/doc/SydneyAliasFile/AliasComment.html +193 -0
- data/doc/SydneyAliasFile/AliasDefinition.html +259 -0
- data/doc/SydneyAliasFile/AliasEntry.html +257 -0
- data/doc/SydneyAliasFile/Document.html +193 -0
- data/doc/SydneyAliasFile/Section.html +225 -0
- data/doc/SydneyAliasFile/SectionComment.html +193 -0
- data/doc/SydneyAliasFile/SyntaxNode.html +193 -0
- data/doc/created.rid +15 -0
- data/doc/images/add.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +100 -0
- data/doc/js/darkfish.js +153 -0
- data/doc/js/jquery.js +18 -0
- data/doc/js/navigation.js +142 -0
- data/doc/js/search.js +94 -0
- data/doc/js/search_index.js +1 -0
- data/doc/js/searcher.js +228 -0
- data/doc/rdoc.css +543 -0
- data/doc/spec/fixtures/aliases.html +123 -0
- data/doc/table_of_contents.html +116 -0
- data/lib/sydney.rb +23 -1
- data/lib/sydney/sydney_alias_file/node_extensions.rb +18 -0
- data/lib/sydney/version.rb +1 -1
- data/spec/sydney_alias_file/alias_definition_spec.rb +6 -0
- data/spec/sydney_alias_file/alias_entry_spec.rb +1 -0
- data/spec/sydney_spec.rb +23 -8
- metadata +49 -1
@@ -0,0 +1,141 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>module SydneyAliasFile - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
10
|
+
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "./";
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
19
|
+
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
20
|
+
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
21
|
+
|
22
|
+
|
23
|
+
<body id="top" class="module">
|
24
|
+
<nav id="metadata">
|
25
|
+
<nav id="home-section" class="section">
|
26
|
+
<h3 class="section-header">
|
27
|
+
<a href="./index.html">Home</a>
|
28
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
29
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
30
|
+
</h3>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
+
</h3>
|
40
|
+
</form>
|
41
|
+
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
45
|
+
|
46
|
+
<div id="file-metadata">
|
47
|
+
<nav id="file-list-section" class="section">
|
48
|
+
<h3 class="section-header">Defined In</h3>
|
49
|
+
<ul>
|
50
|
+
<li>lib/sydney/sydney_alias_file/node_extensions.rb
|
51
|
+
</ul>
|
52
|
+
</nav>
|
53
|
+
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<div id="class-metadata">
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<div id="project-metadata">
|
65
|
+
<nav id="fileindex-section" class="section project-section">
|
66
|
+
<h3 class="section-header">Pages</h3>
|
67
|
+
|
68
|
+
<ul>
|
69
|
+
|
70
|
+
<li class="file"><a href="./Gemfile.html">Gemfile</a>
|
71
|
+
|
72
|
+
<li class="file"><a href="./LICENSE.html">LICENSE</a>
|
73
|
+
|
74
|
+
<li class="file"><a href="./Rakefile.html">Rakefile</a>
|
75
|
+
|
76
|
+
<li class="file"><a href="./spec/fixtures/aliases.html">aliases</a>
|
77
|
+
|
78
|
+
</ul>
|
79
|
+
</nav>
|
80
|
+
|
81
|
+
<nav id="classindex-section" class="section project-section">
|
82
|
+
<h3 class="section-header">Class and Module Index</h3>
|
83
|
+
|
84
|
+
<ul class="link-list">
|
85
|
+
|
86
|
+
<li><a href="./SydneyAliasFile.html">SydneyAliasFile</a>
|
87
|
+
|
88
|
+
<li><a href="./SydneyAliasFile/AliasComment.html">SydneyAliasFile::AliasComment</a>
|
89
|
+
|
90
|
+
<li><a href="./SydneyAliasFile/AliasDefinition.html">SydneyAliasFile::AliasDefinition</a>
|
91
|
+
|
92
|
+
<li><a href="./SydneyAliasFile/AliasEntry.html">SydneyAliasFile::AliasEntry</a>
|
93
|
+
|
94
|
+
<li><a href="./SydneyAliasFile/Document.html">SydneyAliasFile::Document</a>
|
95
|
+
|
96
|
+
<li><a href="./SydneyAliasFile/Section.html">SydneyAliasFile::Section</a>
|
97
|
+
|
98
|
+
<li><a href="./SydneyAliasFile/SectionComment.html">SydneyAliasFile::SectionComment</a>
|
99
|
+
|
100
|
+
<li><a href="./SydneyAliasFile/SyntaxNode.html">SydneyAliasFile::SyntaxNode</a>
|
101
|
+
|
102
|
+
<li><a href="./Sydney.html">Sydney</a>
|
103
|
+
|
104
|
+
</ul>
|
105
|
+
</nav>
|
106
|
+
|
107
|
+
</div>
|
108
|
+
</nav>
|
109
|
+
|
110
|
+
<div id="documentation">
|
111
|
+
<h1 class="module">module SydneyAliasFile</h1>
|
112
|
+
|
113
|
+
<div id="description" class="description">
|
114
|
+
|
115
|
+
</div><!-- description -->
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
<!-- Methods -->
|
130
|
+
|
131
|
+
</section><!-- 5Buntitled-5D -->
|
132
|
+
|
133
|
+
</div><!-- documentation -->
|
134
|
+
|
135
|
+
|
136
|
+
<footer id="validator-badges">
|
137
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
138
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
139
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
140
|
+
</footer>
|
141
|
+
|
@@ -0,0 +1,193 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>class SydneyAliasFile::AliasComment - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
|
10
|
+
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "../";
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
|
19
|
+
<script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
|
20
|
+
<script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
|
21
|
+
|
22
|
+
|
23
|
+
<body id="top" class="class">
|
24
|
+
<nav id="metadata">
|
25
|
+
<nav id="home-section" class="section">
|
26
|
+
<h3 class="section-header">
|
27
|
+
<a href="../index.html">Home</a>
|
28
|
+
<a href="../table_of_contents.html#classes">Classes</a>
|
29
|
+
<a href="../table_of_contents.html#methods">Methods</a>
|
30
|
+
</h3>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
+
</h3>
|
40
|
+
</form>
|
41
|
+
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
45
|
+
|
46
|
+
<div id="file-metadata">
|
47
|
+
<nav id="file-list-section" class="section">
|
48
|
+
<h3 class="section-header">Defined In</h3>
|
49
|
+
<ul>
|
50
|
+
<li>lib/sydney/sydney_alias_file/node_extensions.rb
|
51
|
+
</ul>
|
52
|
+
</nav>
|
53
|
+
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<div id="class-metadata">
|
58
|
+
|
59
|
+
<nav id="parent-class-section" class="section">
|
60
|
+
<h3 class="section-header">Parent</h3>
|
61
|
+
|
62
|
+
<p class="link"><a href="SyntaxNode.html">SydneyAliasFile::SyntaxNode</a>
|
63
|
+
|
64
|
+
</nav>
|
65
|
+
|
66
|
+
|
67
|
+
<!-- Method Quickref -->
|
68
|
+
<nav id="method-list-section" class="section">
|
69
|
+
<h3 class="section-header">Methods</h3>
|
70
|
+
|
71
|
+
<ul class="link-list">
|
72
|
+
|
73
|
+
<li><a href="#method-i-to_s">#to_s</a>
|
74
|
+
|
75
|
+
</ul>
|
76
|
+
</nav>
|
77
|
+
|
78
|
+
</div>
|
79
|
+
|
80
|
+
<div id="project-metadata">
|
81
|
+
<nav id="fileindex-section" class="section project-section">
|
82
|
+
<h3 class="section-header">Pages</h3>
|
83
|
+
|
84
|
+
<ul>
|
85
|
+
|
86
|
+
<li class="file"><a href="../Gemfile.html">Gemfile</a>
|
87
|
+
|
88
|
+
<li class="file"><a href="../LICENSE.html">LICENSE</a>
|
89
|
+
|
90
|
+
<li class="file"><a href="../Rakefile.html">Rakefile</a>
|
91
|
+
|
92
|
+
<li class="file"><a href="../spec/fixtures/aliases.html">aliases</a>
|
93
|
+
|
94
|
+
</ul>
|
95
|
+
</nav>
|
96
|
+
|
97
|
+
<nav id="classindex-section" class="section project-section">
|
98
|
+
<h3 class="section-header">Class and Module Index</h3>
|
99
|
+
|
100
|
+
<ul class="link-list">
|
101
|
+
|
102
|
+
<li><a href="../SydneyAliasFile.html">SydneyAliasFile</a>
|
103
|
+
|
104
|
+
<li><a href="../SydneyAliasFile/AliasComment.html">SydneyAliasFile::AliasComment</a>
|
105
|
+
|
106
|
+
<li><a href="../SydneyAliasFile/AliasDefinition.html">SydneyAliasFile::AliasDefinition</a>
|
107
|
+
|
108
|
+
<li><a href="../SydneyAliasFile/AliasEntry.html">SydneyAliasFile::AliasEntry</a>
|
109
|
+
|
110
|
+
<li><a href="../SydneyAliasFile/Document.html">SydneyAliasFile::Document</a>
|
111
|
+
|
112
|
+
<li><a href="../SydneyAliasFile/Section.html">SydneyAliasFile::Section</a>
|
113
|
+
|
114
|
+
<li><a href="../SydneyAliasFile/SectionComment.html">SydneyAliasFile::SectionComment</a>
|
115
|
+
|
116
|
+
<li><a href="../SydneyAliasFile/SyntaxNode.html">SydneyAliasFile::SyntaxNode</a>
|
117
|
+
|
118
|
+
<li><a href="../Sydney.html">Sydney</a>
|
119
|
+
|
120
|
+
</ul>
|
121
|
+
</nav>
|
122
|
+
|
123
|
+
</div>
|
124
|
+
</nav>
|
125
|
+
|
126
|
+
<div id="documentation">
|
127
|
+
<h1 class="class">class SydneyAliasFile::AliasComment</h1>
|
128
|
+
|
129
|
+
<div id="description" class="description">
|
130
|
+
|
131
|
+
</div><!-- description -->
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
<!-- Methods -->
|
146
|
+
|
147
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
148
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
149
|
+
|
150
|
+
|
151
|
+
<div id="method-i-to_s" class="method-detail ">
|
152
|
+
|
153
|
+
<div class="method-heading">
|
154
|
+
<span class="method-name">to_s</span><span
|
155
|
+
class="method-args">()</span>
|
156
|
+
<span class="method-click-advice">click to toggle source</span>
|
157
|
+
</div>
|
158
|
+
|
159
|
+
|
160
|
+
<div class="method-description">
|
161
|
+
|
162
|
+
<p>Return the comment without the preceding # and surrounding whitespace</p>
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
<div class="method-source-code" id="to_s-source">
|
167
|
+
<pre><span class="ruby-comment"># File lib/sydney/sydney_alias_file/node_extensions.rb, line 59</span>
|
168
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
|
169
|
+
<span class="ruby-identifier">comment_text</span>.<span class="ruby-identifier">text_value</span>.<span class="ruby-identifier">strip</span>
|
170
|
+
<span class="ruby-keyword">end</span></pre>
|
171
|
+
</div><!-- to_s-source -->
|
172
|
+
|
173
|
+
</div>
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
</div><!-- to_s-method -->
|
179
|
+
|
180
|
+
|
181
|
+
</section><!-- public-instance-method-details -->
|
182
|
+
|
183
|
+
</section><!-- 5Buntitled-5D -->
|
184
|
+
|
185
|
+
</div><!-- documentation -->
|
186
|
+
|
187
|
+
|
188
|
+
<footer id="validator-badges">
|
189
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
190
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
191
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
192
|
+
</footer>
|
193
|
+
|
@@ -0,0 +1,259 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>class SydneyAliasFile::AliasDefinition - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
|
10
|
+
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "../";
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
|
19
|
+
<script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
|
20
|
+
<script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
|
21
|
+
|
22
|
+
|
23
|
+
<body id="top" class="class">
|
24
|
+
<nav id="metadata">
|
25
|
+
<nav id="home-section" class="section">
|
26
|
+
<h3 class="section-header">
|
27
|
+
<a href="../index.html">Home</a>
|
28
|
+
<a href="../table_of_contents.html#classes">Classes</a>
|
29
|
+
<a href="../table_of_contents.html#methods">Methods</a>
|
30
|
+
</h3>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
+
</h3>
|
40
|
+
</form>
|
41
|
+
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
45
|
+
|
46
|
+
<div id="file-metadata">
|
47
|
+
<nav id="file-list-section" class="section">
|
48
|
+
<h3 class="section-header">Defined In</h3>
|
49
|
+
<ul>
|
50
|
+
<li>lib/sydney/sydney_alias_file/node_extensions.rb
|
51
|
+
</ul>
|
52
|
+
</nav>
|
53
|
+
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<div id="class-metadata">
|
58
|
+
|
59
|
+
<nav id="parent-class-section" class="section">
|
60
|
+
<h3 class="section-header">Parent</h3>
|
61
|
+
|
62
|
+
<p class="link"><a href="SyntaxNode.html">SydneyAliasFile::SyntaxNode</a>
|
63
|
+
|
64
|
+
</nav>
|
65
|
+
|
66
|
+
|
67
|
+
<!-- Method Quickref -->
|
68
|
+
<nav id="method-list-section" class="section">
|
69
|
+
<h3 class="section-header">Methods</h3>
|
70
|
+
|
71
|
+
<ul class="link-list">
|
72
|
+
|
73
|
+
<li><a href="#method-i-command">#command</a>
|
74
|
+
|
75
|
+
<li><a href="#method-i-shortcut">#shortcut</a>
|
76
|
+
|
77
|
+
<li><a href="#method-i-to_s">#to_s</a>
|
78
|
+
|
79
|
+
</ul>
|
80
|
+
</nav>
|
81
|
+
|
82
|
+
</div>
|
83
|
+
|
84
|
+
<div id="project-metadata">
|
85
|
+
<nav id="fileindex-section" class="section project-section">
|
86
|
+
<h3 class="section-header">Pages</h3>
|
87
|
+
|
88
|
+
<ul>
|
89
|
+
|
90
|
+
<li class="file"><a href="../Gemfile.html">Gemfile</a>
|
91
|
+
|
92
|
+
<li class="file"><a href="../LICENSE.html">LICENSE</a>
|
93
|
+
|
94
|
+
<li class="file"><a href="../Rakefile.html">Rakefile</a>
|
95
|
+
|
96
|
+
<li class="file"><a href="../spec/fixtures/aliases.html">aliases</a>
|
97
|
+
|
98
|
+
</ul>
|
99
|
+
</nav>
|
100
|
+
|
101
|
+
<nav id="classindex-section" class="section project-section">
|
102
|
+
<h3 class="section-header">Class and Module Index</h3>
|
103
|
+
|
104
|
+
<ul class="link-list">
|
105
|
+
|
106
|
+
<li><a href="../SydneyAliasFile.html">SydneyAliasFile</a>
|
107
|
+
|
108
|
+
<li><a href="../SydneyAliasFile/AliasComment.html">SydneyAliasFile::AliasComment</a>
|
109
|
+
|
110
|
+
<li><a href="../SydneyAliasFile/AliasDefinition.html">SydneyAliasFile::AliasDefinition</a>
|
111
|
+
|
112
|
+
<li><a href="../SydneyAliasFile/AliasEntry.html">SydneyAliasFile::AliasEntry</a>
|
113
|
+
|
114
|
+
<li><a href="../SydneyAliasFile/Document.html">SydneyAliasFile::Document</a>
|
115
|
+
|
116
|
+
<li><a href="../SydneyAliasFile/Section.html">SydneyAliasFile::Section</a>
|
117
|
+
|
118
|
+
<li><a href="../SydneyAliasFile/SectionComment.html">SydneyAliasFile::SectionComment</a>
|
119
|
+
|
120
|
+
<li><a href="../SydneyAliasFile/SyntaxNode.html">SydneyAliasFile::SyntaxNode</a>
|
121
|
+
|
122
|
+
<li><a href="../Sydney.html">Sydney</a>
|
123
|
+
|
124
|
+
</ul>
|
125
|
+
</nav>
|
126
|
+
|
127
|
+
</div>
|
128
|
+
</nav>
|
129
|
+
|
130
|
+
<div id="documentation">
|
131
|
+
<h1 class="class">class SydneyAliasFile::AliasDefinition</h1>
|
132
|
+
|
133
|
+
<div id="description" class="description">
|
134
|
+
|
135
|
+
</div><!-- description -->
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
<!-- Methods -->
|
150
|
+
|
151
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
152
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
153
|
+
|
154
|
+
|
155
|
+
<div id="method-i-command" class="method-detail ">
|
156
|
+
|
157
|
+
<div class="method-heading">
|
158
|
+
<span class="method-name">command</span><span
|
159
|
+
class="method-args">()</span>
|
160
|
+
<span class="method-click-advice">click to toggle source</span>
|
161
|
+
</div>
|
162
|
+
|
163
|
+
|
164
|
+
<div class="method-description">
|
165
|
+
|
166
|
+
<p>Return the command to be executed in place of the alias</p>
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
<div class="method-source-code" id="command-source">
|
171
|
+
<pre><span class="ruby-comment"># File lib/sydney/sydney_alias_file/node_extensions.rb, line 77</span>
|
172
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">command</span>
|
173
|
+
<span class="ruby-identifier">stripped_command</span> = <span class="ruby-identifier">aliased_command</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">strip</span>
|
174
|
+
<span class="ruby-identifier">stripped_command</span>[<span class="ruby-value">1</span>,<span class="ruby-identifier">stripped_command</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">-</span> <span class="ruby-value">2</span>]
|
175
|
+
<span class="ruby-keyword">end</span></pre>
|
176
|
+
</div><!-- command-source -->
|
177
|
+
|
178
|
+
</div>
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
</div><!-- command-method -->
|
184
|
+
|
185
|
+
|
186
|
+
<div id="method-i-shortcut" class="method-detail ">
|
187
|
+
|
188
|
+
<div class="method-heading">
|
189
|
+
<span class="method-name">shortcut</span><span
|
190
|
+
class="method-args">()</span>
|
191
|
+
<span class="method-click-advice">click to toggle source</span>
|
192
|
+
</div>
|
193
|
+
|
194
|
+
|
195
|
+
<div class="method-description">
|
196
|
+
|
197
|
+
<p>Return the command line shortcut (alias)</p>
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
<div class="method-source-code" id="shortcut-source">
|
202
|
+
<pre><span class="ruby-comment"># File lib/sydney/sydney_alias_file/node_extensions.rb, line 72</span>
|
203
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">shortcut</span>
|
204
|
+
<span class="ruby-identifier">prefix</span>.<span class="ruby-identifier">text_value</span>.<span class="ruby-identifier">strip</span>
|
205
|
+
<span class="ruby-keyword">end</span></pre>
|
206
|
+
</div><!-- shortcut-source -->
|
207
|
+
|
208
|
+
</div>
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
</div><!-- shortcut-method -->
|
214
|
+
|
215
|
+
|
216
|
+
<div id="method-i-to_s" class="method-detail ">
|
217
|
+
|
218
|
+
<div class="method-heading">
|
219
|
+
<span class="method-name">to_s</span><span
|
220
|
+
class="method-args">()</span>
|
221
|
+
<span class="method-click-advice">click to toggle source</span>
|
222
|
+
</div>
|
223
|
+
|
224
|
+
|
225
|
+
<div class="method-description">
|
226
|
+
|
227
|
+
<p>Return the alias definition without the preceding ‘alias’ and surrounding
|
228
|
+
whitespace</p>
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
<div class="method-source-code" id="to_s-source">
|
233
|
+
<pre><span class="ruby-comment"># File lib/sydney/sydney_alias_file/node_extensions.rb, line 67</span>
|
234
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
|
235
|
+
<span class="ruby-node">"#{shortcut} = #{command}"</span>
|
236
|
+
<span class="ruby-keyword">end</span></pre>
|
237
|
+
</div><!-- to_s-source -->
|
238
|
+
|
239
|
+
</div>
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
</div><!-- to_s-method -->
|
245
|
+
|
246
|
+
|
247
|
+
</section><!-- public-instance-method-details -->
|
248
|
+
|
249
|
+
</section><!-- 5Buntitled-5D -->
|
250
|
+
|
251
|
+
</div><!-- documentation -->
|
252
|
+
|
253
|
+
|
254
|
+
<footer id="validator-badges">
|
255
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
256
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
257
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
258
|
+
</footer>
|
259
|
+
|