drydock 0.3.3 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.txt +19 -4
- data/README.rdoc +37 -28
- data/bin/example +43 -27
- data/drydock.gemspec +1 -25
- data/lib/drydock.rb +308 -119
- metadata +1 -25
- data/doc/classes/Drydock.html +0 -535
- data/doc/classes/Drydock/Command.html +0 -188
- data/doc/classes/Drydock/InvalidArgument.html +0 -118
- data/doc/classes/Drydock/MissingArgument.html +0 -88
- data/doc/classes/Drydock/NoCommandsDefined.html +0 -88
- data/doc/classes/Drydock/UnknownCommand.html +0 -118
- data/doc/created.rid +0 -1
- data/doc/files/CHANGES_txt.html +0 -123
- data/doc/files/LICENSE_txt.html +0 -87
- data/doc/files/README_rdoc.html +0 -127
- data/doc/files/bin/example.html +0 -90
- data/doc/files/lib/drydock_rb.html +0 -75
- data/doc/fr_class_index.html +0 -19
- data/doc/fr_file_index.html +0 -24
- data/doc/fr_method_index.html +0 -4457
- data/doc/index.html +0 -15
- data/doc/rdoc-style.css +0 -319
- data/test/command_test.rb +0 -40
@@ -1,188 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
2
|
-
<html lang='en'>
|
3
|
-
<head>
|
4
|
-
<title>Class: Drydock::Command [A seaworthy DSL for writing command line apps]</title>
|
5
|
-
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
|
6
|
-
<link href='../.././rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
|
7
|
-
<script type='text/javascript'>
|
8
|
-
//<![CDATA[
|
9
|
-
function popupCode(url) {
|
10
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
11
|
-
}
|
12
|
-
|
13
|
-
function toggleCode(id) {
|
14
|
-
var code = document.getElementById(id)
|
15
|
-
|
16
|
-
code.style.display = code.style.display != 'block' ? 'block' : 'none'
|
17
|
-
return true
|
18
|
-
}
|
19
|
-
|
20
|
-
// Make codeblocks hidden by default
|
21
|
-
document.writeln('<' + 'style type="text/css">.method .source pre { display: none }<\/style>')
|
22
|
-
//]]>
|
23
|
-
</script>
|
24
|
-
</head>
|
25
|
-
<body class='page'>
|
26
|
-
<div class='class' id='wrapper'>
|
27
|
-
<div class='header'>
|
28
|
-
<h1 class='name'>
|
29
|
-
<span class='type'>Class</span>
|
30
|
-
Drydock::Command
|
31
|
-
</h1>
|
32
|
-
<ol class='paths'>
|
33
|
-
<li>
|
34
|
-
<a href="../../files/lib/drydock_rb.html">lib/drydock.rb</a>
|
35
|
-
</li>
|
36
|
-
</ol>
|
37
|
-
<div class='parent'>
|
38
|
-
Parent:
|
39
|
-
<strong>Object</strong>
|
40
|
-
</div>
|
41
|
-
</div>
|
42
|
-
<div id='content'>
|
43
|
-
<div id='text'>
|
44
|
-
<div id='description'>
|
45
|
-
<p>
|
46
|
-
The base class for all command objects. There is an instance of this class
|
47
|
-
for every command defined. Global and command-specific options are added as
|
48
|
-
attributes to this class dynamically.
|
49
|
-
</p>
|
50
|
-
<p>
|
51
|
-
i.e. “example -v date -f yaml“
|
52
|
-
</p>
|
53
|
-
<pre>global_option :v, :verbose, "I want mooooore!"
option :f, :format, String, "Long date format"
command :date do |obj|
 puts obj.verbose #=> true
 puts obj.format #=> "yaml"
end</pre>
|
54
|
-
<p>
|
55
|
-
You can inherit from this class to create your own: EatFood < <a
|
56
|
-
href="Command.html">Drydock::Command</a>. And then specific your class in
|
57
|
-
the command definition:
|
58
|
-
</p>
|
59
|
-
<pre>command :eat => EatFood do |obj|; ...; end</pre>
|
60
|
-
</div>
|
61
|
-
<div id='method-list'>
|
62
|
-
<h2>Methods</h2>
|
63
|
-
<h3>public class</h3>
|
64
|
-
<ol>
|
65
|
-
<li><a href="#M000026">new</a></li>
|
66
|
-
</ol>
|
67
|
-
<h3>public instance</h3>
|
68
|
-
<ol>
|
69
|
-
<li><a href="#M000027">call</a></li>
|
70
|
-
<li><a href="#M000028">to_s</a></li>
|
71
|
-
</ol>
|
72
|
-
</div>
|
73
|
-
<div id='section'>
|
74
|
-
<div id='attribute-list'>
|
75
|
-
<h2 class='section-bar'>Attributes</h2>
|
76
|
-
<div class='name-list'>
|
77
|
-
<table>
|
78
|
-
<tr class='top-aligned-row context-row'>
|
79
|
-
<td class='context-item-name'>alias</td>
|
80
|
-
<td class='context-item-value'>[R]</td>
|
81
|
-
<td class='context-item-desc'></td>
|
82
|
-
</tr>
|
83
|
-
<tr class='top-aligned-row context-row'>
|
84
|
-
<td class='context-item-name'>cmd</td>
|
85
|
-
<td class='context-item-value'>[R]</td>
|
86
|
-
<td class='context-item-desc'></td>
|
87
|
-
</tr>
|
88
|
-
</table>
|
89
|
-
</div>
|
90
|
-
</div>
|
91
|
-
<div id='methods'>
|
92
|
-
<h2>Public class methods</h2>
|
93
|
-
<div class='public-class method' id='method-M000026'>
|
94
|
-
<a name='M000026'> </a>
|
95
|
-
<div class='synopsis'>
|
96
|
-
<span class='name'>new</span>
|
97
|
-
<span class='arguments'>(cmd, &b)</span>
|
98
|
-
</div>
|
99
|
-
<div class='description'>
|
100
|
-
<p>
|
101
|
-
The default constructor sets the short name of the command and stores a
|
102
|
-
reference to the block (if supplied). You don’t need to override this
|
103
|
-
method to add functionality to your custom <a
|
104
|
-
href="Command.html">Command</a> classes. Define an <tt>init</tt> method
|
105
|
-
instead. It will be called just before the block is executed. <tt>cmd</tt>
|
106
|
-
is the short name of this command. <tt>b</tt> is the block associated to
|
107
|
-
this command.
|
108
|
-
</p>
|
109
|
-
</div>
|
110
|
-
<div class='source'>
|
111
|
-
<a class='source-toggle' href='#' onclick="toggleCode('M000026-source'); return false">
|
112
|
-
[show source]
|
113
|
-
</a>
|
114
|
-
<pre id='M000026-source'> <span class="ruby-comment cmt"># File lib/drydock.rb, line 35</span>
35: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">cmd</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">b</span>)
36: <span class="ruby-ivar">@cmd</span> = (<span class="ruby-identifier">cmd</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Symbol</span>)) <span class="ruby-operator">?</span> <span class="ruby-identifier">cmd</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">cmd</span>.<span class="ruby-identifier">to_sym</span>
37: <span class="ruby-ivar">@b</span> = <span class="ruby-identifier">b</span>
38: <span class="ruby-keyword kw">end</span></pre>
|
115
|
-
</div>
|
116
|
-
</div>
|
117
|
-
<h2>Public instance methods</h2>
|
118
|
-
<div class='public-instance method' id='method-M000027'>
|
119
|
-
<a name='M000027'> </a>
|
120
|
-
<div class='synopsis'>
|
121
|
-
<span class='name'>call</span>
|
122
|
-
<span class='arguments'>(cmd_str=nil, argv=[], stdin=[], global_options={}, options={})</span>
|
123
|
-
</div>
|
124
|
-
<div class='description'>
|
125
|
-
<p>
|
126
|
-
Execute the block.
|
127
|
-
</p>
|
128
|
-
<p>
|
129
|
-
Calls self.init before calling the block. Implement this method when
|
130
|
-
</p>
|
131
|
-
<p>
|
132
|
-
<tt>cmd_str</tt> is the short name used to evoke this command. It will
|
133
|
-
equal @cmd unless an alias was used used to evoke this command.
|
134
|
-
<tt>argv</tt> an array of unnamed arguments. If ignore :options was
|
135
|
-
declared this will contain the arguments exactly as they were defined on
|
136
|
-
the command-line. <tt>stdin</tt> contains the output of stdin do; …;
|
137
|
-
end otherwise it’s a STDIN IO handle. <tt>global_options</tt> a hash
|
138
|
-
of the global options specified on the command-line <tt>options</tt> a hash
|
139
|
-
of the command-specific options specific on the command-line.
|
140
|
-
</p>
|
141
|
-
</div>
|
142
|
-
<div class='source'>
|
143
|
-
<a class='source-toggle' href='#' onclick="toggleCode('M000027-source'); return false">
|
144
|
-
[show source]
|
145
|
-
</a>
|
146
|
-
<pre id='M000027-source'> <span class="ruby-comment cmt"># File lib/drydock.rb, line 51</span>
51: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">call</span>(<span class="ruby-identifier">cmd_str</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">argv</span>=[], <span class="ruby-identifier">stdin</span>=[], <span class="ruby-identifier">global_options</span>={}, <span class="ruby-identifier">options</span>={})
52: <span class="ruby-ivar">@alias</span> = <span class="ruby-identifier">cmd_str</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-value">? </span><span class="ruby-ivar">@cmd</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">cmd_str</span>
53: <span class="ruby-identifier">global_options</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">options</span>).<span class="ruby-identifier">each_pair</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">n</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
54: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">send</span>(<span class="ruby-node">"#{n}="</span>, <span class="ruby-identifier">v</span>)
55: <span class="ruby-keyword kw">end</span>
56: 
57: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">init</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">respond_to?</span> <span class="ruby-identifier">:init</span>
58: 
59: <span class="ruby-identifier">block_args</span> = [<span class="ruby-keyword kw">self</span>, <span class="ruby-identifier">argv</span>, <span class="ruby-identifier">stdin</span>] <span class="ruby-comment cmt"># TODO: review order</span>
60: <span class="ruby-ivar">@b</span>.<span class="ruby-identifier">call</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">block_args</span>[<span class="ruby-value">0</span><span class="ruby-operator">..</span>(<span class="ruby-ivar">@b</span>.<span class="ruby-identifier">arity</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>)]) <span class="ruby-comment cmt"># send only as many args as defined</span>
61: <span class="ruby-keyword kw">end</span></pre>
|
147
|
-
</div>
|
148
|
-
</div>
|
149
|
-
<div class='public-instance method' id='method-M000028'>
|
150
|
-
<a name='M000028'> </a>
|
151
|
-
<div class='synopsis'>
|
152
|
-
<span class='name'>to_s</span>
|
153
|
-
<span class='arguments'>()</span>
|
154
|
-
</div>
|
155
|
-
<div class='description'>
|
156
|
-
<p>
|
157
|
-
The name of the command
|
158
|
-
</p>
|
159
|
-
</div>
|
160
|
-
<div class='source'>
|
161
|
-
<a class='source-toggle' href='#' onclick="toggleCode('M000028-source'); return false">
|
162
|
-
[show source]
|
163
|
-
</a>
|
164
|
-
<pre id='M000028-source'> <span class="ruby-comment cmt"># File lib/drydock.rb, line 64</span>
64: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
65: <span class="ruby-ivar">@cmd</span>.<span class="ruby-identifier">to_s</span>
66: <span class="ruby-keyword kw">end</span></pre>
|
165
|
-
</div>
|
166
|
-
</div>
|
167
|
-
</div>
|
168
|
-
</div>
|
169
|
-
</div>
|
170
|
-
</div>
|
171
|
-
<div id='footer-push'></div>
|
172
|
-
</div>
|
173
|
-
<div id='footer'>
|
174
|
-
<a href="http://github.com/mislav/hanna/tree/master"><strong>Hanna</strong> RDoc template</a>
|
175
|
-
<script type='text/javascript'>
|
176
|
-
//<![CDATA[
|
177
|
-
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
|
178
|
-
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/scr
|
179
|
-
|
180
|
-
try {
|
181
|
-
var pageTracker = _gat._getTracker("UA-4642735-10");
|
182
|
-
pageTracker._trackPageview();
|
183
|
-
} catch(err) {}
|
184
|
-
//]]>
|
185
|
-
</script>
|
186
|
-
</div>
|
187
|
-
</body>
|
188
|
-
</html>
|
@@ -1,118 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
2
|
-
<html lang='en'>
|
3
|
-
<head>
|
4
|
-
<title>Class: Drydock::InvalidArgument [A seaworthy DSL for writing command line apps]</title>
|
5
|
-
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
|
6
|
-
<link href='../.././rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
|
7
|
-
<script type='text/javascript'>
|
8
|
-
//<![CDATA[
|
9
|
-
function popupCode(url) {
|
10
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
11
|
-
}
|
12
|
-
|
13
|
-
function toggleCode(id) {
|
14
|
-
var code = document.getElementById(id)
|
15
|
-
|
16
|
-
code.style.display = code.style.display != 'block' ? 'block' : 'none'
|
17
|
-
return true
|
18
|
-
}
|
19
|
-
|
20
|
-
// Make codeblocks hidden by default
|
21
|
-
document.writeln('<' + 'style type="text/css">.method .source pre { display: none }<\/style>')
|
22
|
-
//]]>
|
23
|
-
</script>
|
24
|
-
</head>
|
25
|
-
<body class='page'>
|
26
|
-
<div class='class' id='wrapper'>
|
27
|
-
<div class='header'>
|
28
|
-
<h1 class='name'>
|
29
|
-
<span class='type'>Class</span>
|
30
|
-
Drydock::InvalidArgument
|
31
|
-
</h1>
|
32
|
-
<ol class='paths'>
|
33
|
-
<li>
|
34
|
-
<a href="../../files/lib/drydock_rb.html">lib/drydock.rb</a>
|
35
|
-
</li>
|
36
|
-
</ol>
|
37
|
-
<div class='parent'>
|
38
|
-
Parent:
|
39
|
-
<strong>RuntimeError</strong>
|
40
|
-
</div>
|
41
|
-
</div>
|
42
|
-
<div id='content'>
|
43
|
-
<div id='text'>
|
44
|
-
<div id='method-list'>
|
45
|
-
<h2>Methods</h2>
|
46
|
-
<h3>public class</h3>
|
47
|
-
<ol>
|
48
|
-
<li><a href="#M000023">new</a></li>
|
49
|
-
</ol>
|
50
|
-
<h3>public instance</h3>
|
51
|
-
<ol>
|
52
|
-
<li><a href="#M000024">message</a></li>
|
53
|
-
</ol>
|
54
|
-
</div>
|
55
|
-
<div id='section'>
|
56
|
-
<div id='attribute-list'>
|
57
|
-
<h2 class='section-bar'>Attributes</h2>
|
58
|
-
<div class='name-list'>
|
59
|
-
<table>
|
60
|
-
<tr class='top-aligned-row context-row'>
|
61
|
-
<td class='context-item-name'>args</td>
|
62
|
-
<td class='context-item-value'>[RW]</td>
|
63
|
-
<td class='context-item-desc'></td>
|
64
|
-
</tr>
|
65
|
-
</table>
|
66
|
-
</div>
|
67
|
-
</div>
|
68
|
-
<div id='methods'>
|
69
|
-
<h2>Public class methods</h2>
|
70
|
-
<div class='public-class method' id='method-M000023'>
|
71
|
-
<a name='M000023'> </a>
|
72
|
-
<div class='synopsis'>
|
73
|
-
<span class='name'>new</span>
|
74
|
-
<span class='arguments'>(args)</span>
|
75
|
-
</div>
|
76
|
-
<div class='source'>
|
77
|
-
<a class='source-toggle' href='#' onclick="toggleCode('M000023-source'); return false">
|
78
|
-
[show source]
|
79
|
-
</a>
|
80
|
-
<pre id='M000023-source'> <span class="ruby-comment cmt"># File lib/drydock.rb, line 87</span>
87: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">args</span>)
88: <span class="ruby-ivar">@args</span> = <span class="ruby-identifier">args</span> <span class="ruby-operator">||</span> []
89: <span class="ruby-keyword kw">end</span></pre>
|
81
|
-
</div>
|
82
|
-
</div>
|
83
|
-
<h2>Public instance methods</h2>
|
84
|
-
<div class='public-instance method' id='method-M000024'>
|
85
|
-
<a name='M000024'> </a>
|
86
|
-
<div class='synopsis'>
|
87
|
-
<span class='name'>message</span>
|
88
|
-
<span class='arguments'>()</span>
|
89
|
-
</div>
|
90
|
-
<div class='source'>
|
91
|
-
<a class='source-toggle' href='#' onclick="toggleCode('M000024-source'); return false">
|
92
|
-
[show source]
|
93
|
-
</a>
|
94
|
-
<pre id='M000024-source'> <span class="ruby-comment cmt"># File lib/drydock.rb, line 90</span>
90: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">message</span>
91: <span class="ruby-node">"Unknown option: #{@args.join(", ")}"</span>
92: <span class="ruby-keyword kw">end</span></pre>
|
95
|
-
</div>
|
96
|
-
</div>
|
97
|
-
</div>
|
98
|
-
</div>
|
99
|
-
</div>
|
100
|
-
</div>
|
101
|
-
<div id='footer-push'></div>
|
102
|
-
</div>
|
103
|
-
<div id='footer'>
|
104
|
-
<a href="http://github.com/mislav/hanna/tree/master"><strong>Hanna</strong> RDoc template</a>
|
105
|
-
<script type='text/javascript'>
|
106
|
-
//<![CDATA[
|
107
|
-
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
|
108
|
-
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/scr
|
109
|
-
|
110
|
-
try {
|
111
|
-
var pageTracker = _gat._getTracker("UA-4642735-10");
|
112
|
-
pageTracker._trackPageview();
|
113
|
-
} catch(err) {}
|
114
|
-
//]]>
|
115
|
-
</script>
|
116
|
-
</div>
|
117
|
-
</body>
|
118
|
-
</html>
|
@@ -1,88 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
2
|
-
<html lang='en'>
|
3
|
-
<head>
|
4
|
-
<title>Class: Drydock::MissingArgument [A seaworthy DSL for writing command line apps]</title>
|
5
|
-
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
|
6
|
-
<link href='../.././rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
|
7
|
-
<script type='text/javascript'>
|
8
|
-
//<![CDATA[
|
9
|
-
function popupCode(url) {
|
10
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
11
|
-
}
|
12
|
-
|
13
|
-
function toggleCode(id) {
|
14
|
-
var code = document.getElementById(id)
|
15
|
-
|
16
|
-
code.style.display = code.style.display != 'block' ? 'block' : 'none'
|
17
|
-
return true
|
18
|
-
}
|
19
|
-
|
20
|
-
// Make codeblocks hidden by default
|
21
|
-
document.writeln('<' + 'style type="text/css">.method .source pre { display: none }<\/style>')
|
22
|
-
//]]>
|
23
|
-
</script>
|
24
|
-
</head>
|
25
|
-
<body class='page'>
|
26
|
-
<div class='class' id='wrapper'>
|
27
|
-
<div class='header'>
|
28
|
-
<h1 class='name'>
|
29
|
-
<span class='type'>Class</span>
|
30
|
-
Drydock::MissingArgument
|
31
|
-
</h1>
|
32
|
-
<ol class='paths'>
|
33
|
-
<li>
|
34
|
-
<a href="../../files/lib/drydock_rb.html">lib/drydock.rb</a>
|
35
|
-
</li>
|
36
|
-
</ol>
|
37
|
-
<div class='parent'>
|
38
|
-
Parent:
|
39
|
-
<strong><a href="InvalidArgument.html">Drydock::InvalidArgument</a></strong>
|
40
|
-
</div>
|
41
|
-
</div>
|
42
|
-
<div id='content'>
|
43
|
-
<div id='text'>
|
44
|
-
<div id='method-list'>
|
45
|
-
<h2>Methods</h2>
|
46
|
-
<h3>public instance</h3>
|
47
|
-
<ol>
|
48
|
-
<li><a href="#M000029">message</a></li>
|
49
|
-
</ol>
|
50
|
-
</div>
|
51
|
-
<div id='section'>
|
52
|
-
<div id='methods'>
|
53
|
-
<h2>Public instance methods</h2>
|
54
|
-
<div class='public-instance method' id='method-M000029'>
|
55
|
-
<a name='M000029'> </a>
|
56
|
-
<div class='synopsis'>
|
57
|
-
<span class='name'>message</span>
|
58
|
-
<span class='arguments'>()</span>
|
59
|
-
</div>
|
60
|
-
<div class='source'>
|
61
|
-
<a class='source-toggle' href='#' onclick="toggleCode('M000029-source'); return false">
|
62
|
-
[show source]
|
63
|
-
</a>
|
64
|
-
<pre id='M000029-source'> <span class="ruby-comment cmt"># File lib/drydock.rb, line 95</span>
95: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">message</span>
96: <span class="ruby-node">"Option requires a value: #{@args.join(", ")}"</span>
97: <span class="ruby-keyword kw">end</span></pre>
|
65
|
-
</div>
|
66
|
-
</div>
|
67
|
-
</div>
|
68
|
-
</div>
|
69
|
-
</div>
|
70
|
-
</div>
|
71
|
-
<div id='footer-push'></div>
|
72
|
-
</div>
|
73
|
-
<div id='footer'>
|
74
|
-
<a href="http://github.com/mislav/hanna/tree/master"><strong>Hanna</strong> RDoc template</a>
|
75
|
-
<script type='text/javascript'>
|
76
|
-
//<![CDATA[
|
77
|
-
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
|
78
|
-
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/scr
|
79
|
-
|
80
|
-
try {
|
81
|
-
var pageTracker = _gat._getTracker("UA-4642735-10");
|
82
|
-
pageTracker._trackPageview();
|
83
|
-
} catch(err) {}
|
84
|
-
//]]>
|
85
|
-
</script>
|
86
|
-
</div>
|
87
|
-
</body>
|
88
|
-
</html>
|
@@ -1,88 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
2
|
-
<html lang='en'>
|
3
|
-
<head>
|
4
|
-
<title>Class: Drydock::NoCommandsDefined [A seaworthy DSL for writing command line apps]</title>
|
5
|
-
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
|
6
|
-
<link href='../.././rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
|
7
|
-
<script type='text/javascript'>
|
8
|
-
//<![CDATA[
|
9
|
-
function popupCode(url) {
|
10
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
11
|
-
}
|
12
|
-
|
13
|
-
function toggleCode(id) {
|
14
|
-
var code = document.getElementById(id)
|
15
|
-
|
16
|
-
code.style.display = code.style.display != 'block' ? 'block' : 'none'
|
17
|
-
return true
|
18
|
-
}
|
19
|
-
|
20
|
-
// Make codeblocks hidden by default
|
21
|
-
document.writeln('<' + 'style type="text/css">.method .source pre { display: none }<\/style>')
|
22
|
-
//]]>
|
23
|
-
</script>
|
24
|
-
</head>
|
25
|
-
<body class='page'>
|
26
|
-
<div class='class' id='wrapper'>
|
27
|
-
<div class='header'>
|
28
|
-
<h1 class='name'>
|
29
|
-
<span class='type'>Class</span>
|
30
|
-
Drydock::NoCommandsDefined
|
31
|
-
</h1>
|
32
|
-
<ol class='paths'>
|
33
|
-
<li>
|
34
|
-
<a href="../../files/lib/drydock_rb.html">lib/drydock.rb</a>
|
35
|
-
</li>
|
36
|
-
</ol>
|
37
|
-
<div class='parent'>
|
38
|
-
Parent:
|
39
|
-
<strong>RuntimeError</strong>
|
40
|
-
</div>
|
41
|
-
</div>
|
42
|
-
<div id='content'>
|
43
|
-
<div id='text'>
|
44
|
-
<div id='method-list'>
|
45
|
-
<h2>Methods</h2>
|
46
|
-
<h3>public instance</h3>
|
47
|
-
<ol>
|
48
|
-
<li><a href="#M000025">message</a></li>
|
49
|
-
</ol>
|
50
|
-
</div>
|
51
|
-
<div id='section'>
|
52
|
-
<div id='methods'>
|
53
|
-
<h2>Public instance methods</h2>
|
54
|
-
<div class='public-instance method' id='method-M000025'>
|
55
|
-
<a name='M000025'> </a>
|
56
|
-
<div class='synopsis'>
|
57
|
-
<span class='name'>message</span>
|
58
|
-
<span class='arguments'>()</span>
|
59
|
-
</div>
|
60
|
-
<div class='source'>
|
61
|
-
<a class='source-toggle' href='#' onclick="toggleCode('M000025-source'); return false">
|
62
|
-
[show source]
|
63
|
-
</a>
|
64
|
-
<pre id='M000025-source'> <span class="ruby-comment cmt"># File lib/drydock.rb, line 81</span>
81: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">message</span>
82: <span class="ruby-value str">"No commands defined"</span>
83: <span class="ruby-keyword kw">end</span></pre>
|
65
|
-
</div>
|
66
|
-
</div>
|
67
|
-
</div>
|
68
|
-
</div>
|
69
|
-
</div>
|
70
|
-
</div>
|
71
|
-
<div id='footer-push'></div>
|
72
|
-
</div>
|
73
|
-
<div id='footer'>
|
74
|
-
<a href="http://github.com/mislav/hanna/tree/master"><strong>Hanna</strong> RDoc template</a>
|
75
|
-
<script type='text/javascript'>
|
76
|
-
//<![CDATA[
|
77
|
-
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
|
78
|
-
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/scr
|
79
|
-
|
80
|
-
try {
|
81
|
-
var pageTracker = _gat._getTracker("UA-4642735-10");
|
82
|
-
pageTracker._trackPageview();
|
83
|
-
} catch(err) {}
|
84
|
-
//]]>
|
85
|
-
</script>
|
86
|
-
</div>
|
87
|
-
</body>
|
88
|
-
</html>
|