libastag 0.0.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.
Files changed (96) hide show
  1. data/CHANGES +7 -0
  2. data/MIT-LICENSE +19 -0
  3. data/README +65 -0
  4. data/Rakefile +276 -0
  5. data/TODO +7 -0
  6. data/doc/classes/Helpers/REXML/Attributes.html +179 -0
  7. data/doc/classes/Helpers/REXML.html +115 -0
  8. data/doc/classes/Helpers.html +181 -0
  9. data/doc/classes/Libastag/Rabbit.html +462 -0
  10. data/doc/classes/Libastag/RabitEar.html +120 -0
  11. data/doc/classes/Libastag/RabitLed.html +120 -0
  12. data/doc/classes/Libastag.html +141 -0
  13. data/doc/classes/Request/Action.html +213 -0
  14. data/doc/classes/Request/Base/Event.html +226 -0
  15. data/doc/classes/Request/Base/EventCollection.html +246 -0
  16. data/doc/classes/Request/Base.html +134 -0
  17. data/doc/classes/Request/GET_EARS_POSITION.html +151 -0
  18. data/doc/classes/Request/Query.html +244 -0
  19. data/doc/classes/Request/SetEarsPosition.html +213 -0
  20. data/doc/classes/Request/TtsMessage.html +235 -0
  21. data/doc/classes/Request.html +414 -0
  22. data/doc/classes/Response/AbuseSending.html +165 -0
  23. data/doc/classes/Response/Base/BadServerRsp.html +163 -0
  24. data/doc/classes/Response/Base/GoodServerRsp.html +161 -0
  25. data/doc/classes/Response/Base/ServerRsp.html +347 -0
  26. data/doc/classes/Response/Base.html +162 -0
  27. data/doc/classes/Response/Blacklist.html +165 -0
  28. data/doc/classes/Response/ChorNotSend.html +166 -0
  29. data/doc/classes/Response/ChorSend.html +165 -0
  30. data/doc/classes/Response/CommandSend.html +168 -0
  31. data/doc/classes/Response/EarPositionNotSend.html +165 -0
  32. data/doc/classes/Response/EarPositionSend.html +165 -0
  33. data/doc/classes/Response/EmptyServerRsp.html +161 -0
  34. data/doc/classes/Response/LangListUser.html +166 -0
  35. data/doc/classes/Response/LinkPreview.html +165 -0
  36. data/doc/classes/Response/ListFriend.html +165 -0
  37. data/doc/classes/Response/ListReceivedMsg.html +165 -0
  38. data/doc/classes/Response/MessageNotSend.html +165 -0
  39. data/doc/classes/Response/MessageSend.html +165 -0
  40. data/doc/classes/Response/NabCastNotSend.html +169 -0
  41. data/doc/classes/Response/NabCastSend.html +165 -0
  42. data/doc/classes/Response/NoCorrectParameters.html +165 -0
  43. data/doc/classes/Response/NoGoodTokenOrSerial.html +165 -0
  44. data/doc/classes/Response/NotV2Rabbit.html +165 -0
  45. data/doc/classes/Response/PositionEar.html +166 -0
  46. data/doc/classes/Response/ProtocolExcepion.html +164 -0
  47. data/doc/classes/Response/RabbitName.html +164 -0
  48. data/doc/classes/Response/RabbitSleep.html +164 -0
  49. data/doc/classes/Response/RabbitVersion.html +164 -0
  50. data/doc/classes/Response/Signature.html +164 -0
  51. data/doc/classes/Response/Timezone.html +164 -0
  52. data/doc/classes/Response/TtsNotSend.html +168 -0
  53. data/doc/classes/Response/TtsSend.html +165 -0
  54. data/doc/classes/Response/VoiceListTts.html +165 -0
  55. data/doc/classes/Response/WebRadioNotSend.html +165 -0
  56. data/doc/classes/Response/WebRadioSend.html +165 -0
  57. data/doc/classes/Response.html +337 -0
  58. data/doc/classes/VioletAPI.html +118 -0
  59. data/doc/created.rid +1 -0
  60. data/doc/dot/f_0.dot +14 -0
  61. data/doc/dot/f_0.png +0 -0
  62. data/doc/dot/f_4.dot +57 -0
  63. data/doc/dot/f_4.png +0 -0
  64. data/doc/dot/f_5.dot +489 -0
  65. data/doc/dot/f_5.png +0 -0
  66. data/doc/dot/f_6.dot +55 -0
  67. data/doc/dot/f_6.png +0 -0
  68. data/doc/dot/f_7.dot +30 -0
  69. data/doc/dot/f_7.png +0 -0
  70. data/doc/dot/f_8.dot +142 -0
  71. data/doc/dot/f_8.png +0 -0
  72. data/doc/files/CHANGES.html +126 -0
  73. data/doc/files/MIT-LICENSE.html +134 -0
  74. data/doc/files/README.html +192 -0
  75. data/doc/files/TODO.html +126 -0
  76. data/doc/files/lib/libastag_rb.html +116 -0
  77. data/doc/files/lib/violet/helpers_rb.html +123 -0
  78. data/doc/files/lib/violet/request_rb.html +133 -0
  79. data/doc/files/lib/violet/response_rb.html +220 -0
  80. data/doc/files/lib/violet/violetapi_rb.html +114 -0
  81. data/doc/fr_class_index.html +79 -0
  82. data/doc/fr_file_index.html +35 -0
  83. data/doc/fr_method_index.html +56 -0
  84. data/doc/index.html +24 -0
  85. data/doc/rdoc-style.css +208 -0
  86. data/lib/libastag.rb +116 -0
  87. data/lib/violet/helpers.rb +48 -0
  88. data/lib/violet/request.rb +301 -0
  89. data/lib/violet/response.rb +412 -0
  90. data/lib/violet/violetapi.rb +14 -0
  91. data/test/fake_violet_srv.rb +94 -0
  92. data/test/test_helpers.rb +31 -0
  93. data/test/test_request.rb +20 -0
  94. data/test/test_response.rb +295 -0
  95. data/test/test_send.rb +137 -0
  96. metadata +264 -0
@@ -0,0 +1,181 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Module: Helpers</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Module</strong></td>
53
+ <td class="class-name-in-header">Helpers</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../files/lib/violet/helpers_rb.html">
59
+ lib/violet/helpers.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ </table>
66
+ </div>
67
+ <!-- banner header -->
68
+
69
+ <div id="bodyContent">
70
+
71
+
72
+
73
+ <div id="contextContent">
74
+ <div id="diagram">
75
+ <map id="map" name="map">
76
+ <area shape="rect" coords="53,85,128,133" href="Helpers/REXML/Attributes.html" alt="Attributes" />
77
+ <area shape="rect" coords="43,51,165,144" href="Helpers/REXML.html" alt="REXML" />
78
+ <area shape="rect" coords="16,16,176,155" href="Helpers.html" alt="Helpers" />
79
+ </map>
80
+ <img src="../dot/f_6.png" usemap="#map" border="0" alt="dot/f_6.png">
81
+ </div>
82
+
83
+ <div id="description">
84
+ <h2>violet/helpers.rb</h2>
85
+ <p>
86
+ some handy class/methods and modifications.
87
+ </p>
88
+
89
+ </div>
90
+
91
+
92
+ </div>
93
+
94
+ <div id="method-list">
95
+ <h3 class="section-bar">Methods</h3>
96
+
97
+ <div class="name-list">
98
+ <a href="#M000001">constantize</a>&nbsp;&nbsp;
99
+ </div>
100
+ </div>
101
+
102
+ </div>
103
+
104
+
105
+ <!-- if includes -->
106
+
107
+ <div id="section">
108
+
109
+ <div id="class-list">
110
+ <h3 class="section-bar">Classes and Modules</h3>
111
+
112
+ Module <a href="Helpers/REXML.html" class="link">Helpers::REXML</a><br />
113
+
114
+ </div>
115
+
116
+
117
+
118
+
119
+
120
+
121
+
122
+ <!-- if method_list -->
123
+ <div id="methods">
124
+ <h3 class="section-bar">Public Class methods</h3>
125
+
126
+ <div id="method-M000001" class="method-detail">
127
+ <a name="M000001"></a>
128
+
129
+ <div class="method-heading">
130
+ <a href="#M000001" class="method-signature">
131
+ <span class="method-name">constantize</span><span class="method-args">(camel_cased_word)</span>
132
+ </a>
133
+ </div>
134
+
135
+ <div class="method-description">
136
+ <h2>Credits</h2>
137
+ <p>
138
+ taken from active_support/inflector.rb, see <a
139
+ href="http://rubyforge.org/projects/activesupport">rubyforge.org/projects/activesupport</a>
140
+ </p>
141
+ <h2>Summary</h2>
142
+ <p>
143
+ Constantize tries to find a declared constant with the name specified in
144
+ the string. It raises a NameError when the name is not in CamelCase or is
145
+ not initialized.
146
+ </p>
147
+ <h2>Examples</h2>
148
+ <pre>
149
+ Helpers.constantize(&quot;Module&quot;) #=&gt; Module
150
+ Helpers.constantize(&quot;Class&quot;) #=&gt; Class
151
+ </pre>
152
+ <p><a class="source-toggle" href="#"
153
+ onclick="toggleCode('M000001-source');return false;">[Source]</a></p>
154
+ <div class="method-source-code" id="M000001-source">
155
+ <pre>
156
+ <span class="ruby-comment cmt"># File lib/violet/helpers.rb, line 39</span>
157
+ 39: <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Helpers</span>.<span class="ruby-identifier">constantize</span>(<span class="ruby-identifier">camel_cased_word</span>)
158
+ 40: <span class="ruby-keyword kw">unless</span> <span class="ruby-regexp re">/\A(?:::)?([A-Z]\w*(?:::[A-Z]\w*)*)\z/</span> <span class="ruby-operator">=~</span> <span class="ruby-identifier">camel_cased_word</span>
159
+ 41: <span class="ruby-identifier">raise</span> <span class="ruby-constant">NameError</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">&quot;#{camel_cased_word.inspect} is not a valid constant name!&quot;</span>)
160
+ 42: <span class="ruby-keyword kw">end</span>
161
+ 43:
162
+ 44: <span class="ruby-constant">Object</span>.<span class="ruby-identifier">module_eval</span>(<span class="ruby-node">&quot;::#{$1}&quot;</span>, <span class="ruby-keyword kw">__FILE__</span>, <span class="ruby-keyword kw">__LINE__</span>)
163
+ 45: <span class="ruby-keyword kw">end</span>
164
+ </pre>
165
+ </div>
166
+ </div>
167
+ </div>
168
+
169
+
170
+ </div>
171
+
172
+
173
+ </div>
174
+
175
+
176
+ <div id="validator-badges">
177
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
178
+ </div>
179
+
180
+ </body>
181
+ </html>
@@ -0,0 +1,462 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: Libastag::Rabbit</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">Libastag::Rabbit</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/libastag_rb.html">
59
+ lib/libastag.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ Object
69
+ </td>
70
+ </tr>
71
+ </table>
72
+ </div>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+
77
+
78
+
79
+ <div id="contextContent">
80
+ <div id="diagram">
81
+ <map id="map" name="map">
82
+ <area shape="rect" coords="219,51,291,99" href="RabitEar.html" alt="RabitEar" />
83
+ <area shape="rect" coords="123,51,195,99" href="RabitLed.html" alt="RabitLed" />
84
+ <area shape="rect" coords="27,51,99,99" href="Rabbit.html" alt="Rabbit" />
85
+ <area shape="rect" coords="16,16,328,109" href="../Libastag.html" alt="Libastag" />
86
+ </map>
87
+ <img src="../../dot/f_4.png" usemap="#map" border="0" alt="dot/f_4.png">
88
+ </div>
89
+
90
+ <div id="description">
91
+ <p>
92
+ this class store all attribute of a Nabaztag. it receive events and
93
+ retrieve information from your user account or your <a
94
+ href="Rabbit.html">Rabbit</a> (see public methods).
95
+ </p>
96
+
97
+ </div>
98
+
99
+
100
+ </div>
101
+
102
+ <div id="method-list">
103
+ <h3 class="section-bar">Methods</h3>
104
+
105
+ <div class="name-list">
106
+ <a href="#M000010">asleep?</a>&nbsp;&nbsp;
107
+ <a href="#M000012">awake?</a>&nbsp;&nbsp;
108
+ <a href="#M000009">name</a>&nbsp;&nbsp;
109
+ <a href="#M000008">new</a>&nbsp;&nbsp;
110
+ <a href="#M000011">sleep!</a>&nbsp;&nbsp;
111
+ <a href="#M000014">version</a>&nbsp;&nbsp;
112
+ <a href="#M000013">wakeup!</a>&nbsp;&nbsp;
113
+ </div>
114
+ </div>
115
+
116
+ </div>
117
+
118
+
119
+ <!-- if includes -->
120
+
121
+ <div id="section">
122
+
123
+
124
+ <div id="constants-list">
125
+ <h3 class="section-bar">Constants</h3>
126
+
127
+ <div class="name-list">
128
+ <table summary="Constants">
129
+ <tr class="top-aligned-row context-row">
130
+ <td class="context-item-name">SERIAL_MATCHER</td>
131
+ <td>=</td>
132
+ <td class="context-item-value">/^[0-9A-F]+$/i</td>
133
+ <td width="3em">&nbsp;</td>
134
+ <td class="context-item-desc">
135
+ used to check serial
136
+
137
+ </td>
138
+ </tr>
139
+ <tr class="top-aligned-row context-row">
140
+ <td class="context-item-name">TOKEN_MATCHER</td>
141
+ <td>=</td>
142
+ <td class="context-item-value">/^[0-9]+$/</td>
143
+ <td width="3em">&nbsp;</td>
144
+ <td class="context-item-desc">
145
+ used to check token
146
+
147
+ </td>
148
+ </tr>
149
+ </table>
150
+ </div>
151
+ </div>
152
+
153
+
154
+
155
+ <div id="attribute-list">
156
+ <h3 class="section-bar">Attributes</h3>
157
+
158
+ <div class="name-list">
159
+ <table>
160
+ <tr class="top-aligned-row context-row">
161
+ <td class="context-item-name">bottom_led</td>
162
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
163
+ <td class="context-item-desc">
164
+ object that handle bottom led, see RabbitLed.
165
+
166
+ </td>
167
+ </tr>
168
+ <tr class="top-aligned-row context-row">
169
+ <td class="context-item-name">left_ear</td>
170
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
171
+ <td class="context-item-desc">
172
+ object that handle left ear, see RabbitEar.
173
+
174
+ </td>
175
+ </tr>
176
+ <tr class="top-aligned-row context-row">
177
+ <td class="context-item-name">left_led</td>
178
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
179
+ <td class="context-item-desc">
180
+ object that handle left led, see RabbitLed.
181
+
182
+ </td>
183
+ </tr>
184
+ <tr class="top-aligned-row context-row">
185
+ <td class="context-item-name">middle_led</td>
186
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
187
+ <td class="context-item-desc">
188
+ object that handle middle led, see RabbitLed.
189
+
190
+ </td>
191
+ </tr>
192
+ <tr class="top-aligned-row context-row">
193
+ <td class="context-item-name">right_ear</td>
194
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
195
+ <td class="context-item-desc">
196
+ object that handle right ear, see RabbitEar.
197
+
198
+ </td>
199
+ </tr>
200
+ <tr class="top-aligned-row context-row">
201
+ <td class="context-item-name">right_led</td>
202
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
203
+ <td class="context-item-desc">
204
+ object that handle right led, see RabbitLed.
205
+
206
+ </td>
207
+ </tr>
208
+ <tr class="top-aligned-row context-row">
209
+ <td class="context-item-name">serial</td>
210
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
211
+ <td class="context-item-desc">
212
+ Serial number of the Nabaztag that will receive events
213
+
214
+ </td>
215
+ </tr>
216
+ <tr class="top-aligned-row context-row">
217
+ <td class="context-item-name">token</td>
218
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
219
+ <td class="context-item-desc">
220
+ The token is a series of digits given when you activate the Nabaztag
221
+ receiver. This extra identification limits the risks of spam, since, in
222
+ order to send a message, you need to know both the serial number and the
223
+ toke
224
+
225
+ </td>
226
+ </tr>
227
+ <tr class="top-aligned-row context-row">
228
+ <td class="context-item-name">top_led</td>
229
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
230
+ <td class="context-item-desc">
231
+ object that handle top led, see RabbitLed.
232
+
233
+ </td>
234
+ </tr>
235
+ </table>
236
+ </div>
237
+ </div>
238
+
239
+
240
+
241
+ <!-- if method_list -->
242
+ <div id="methods">
243
+ <h3 class="section-bar">Public Class methods</h3>
244
+
245
+ <div id="method-M000008" class="method-detail">
246
+ <a name="M000008"></a>
247
+
248
+ <div class="method-heading">
249
+ <a href="#M000008" class="method-signature">
250
+ <span class="method-name">new</span><span class="method-args">(serial, token)</span>
251
+ </a>
252
+ </div>
253
+
254
+ <div class="method-description">
255
+ <p>
256
+ create a <a href="Rabbit.html#M000008">new</a> <a
257
+ href="Rabbit.html">Rabbit</a> with given <tt>serial</tt> and
258
+ <tt>token</tt>. make a <b>basic</b> syntax check of <tt>serial</tt> and
259
+ <tt>token</tt> (see SERIAL_MATCHER and TOKEN_MATCHER), but it doesn&#8216;t
260
+ mean that they are valid.
261
+ </p>
262
+ <p><a class="source-toggle" href="#"
263
+ onclick="toggleCode('M000008-source');return false;">[Source]</a></p>
264
+ <div class="method-source-code" id="M000008-source">
265
+ <pre>
266
+ <span class="ruby-comment cmt"># File lib/libastag.rb, line 46</span>
267
+ 46: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> <span class="ruby-identifier">serial</span>, <span class="ruby-identifier">token</span>
268
+ 47: <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">&quot;bad serial : #{serial}&quot;</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">serial</span> <span class="ruby-operator">=~</span> <span class="ruby-constant">SERIAL_MATCHER</span>
269
+ 48: <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">&quot;bad token : #{token }&quot;</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">token</span> <span class="ruby-operator">=~</span> <span class="ruby-constant">TOKEN_MATCHER</span>
270
+ 49: <span class="ruby-ivar">@serial</span> = <span class="ruby-identifier">serial</span>.<span class="ruby-identifier">upcase</span>
271
+ 50: <span class="ruby-ivar">@token</span> = <span class="ruby-identifier">token</span>.<span class="ruby-identifier">to_i</span>
272
+ 51: <span class="ruby-comment cmt"># _________ _________</span>
273
+ 52: <span class="ruby-comment cmt"># / \ / @right_ear, @left_ear = RabbitEar.new(:right), RabbitEar.new(:left)</span>
274
+ 53: <span class="ruby-comment cmt"># | | | |</span>
275
+ 54: <span class="ruby-comment cmt"># | | | |</span>
276
+ 55: <span class="ruby-comment cmt"># | | | |</span>
277
+ 56: <span class="ruby-comment cmt"># | | | |</span>
278
+ 57: <span class="ruby-comment cmt"># | | | |</span>
279
+ 58: <span class="ruby-comment cmt"># | | | |</span>
280
+ 59: <span class="ruby-comment cmt"># | | | |</span>
281
+ 60: <span class="ruby-comment cmt"># | | | |</span>
282
+ 61: <span class="ruby-comment cmt"># | |_________________| |</span>
283
+ 62: <span class="ruby-comment cmt"># | | | |</span>
284
+ 63: <span class="ruby-comment cmt"># | | | |</span>
285
+ 64: <span class="ruby-comment cmt"># | |</span>
286
+ 65: <span class="ruby-comment cmt"># | |</span>
287
+ 66: <span class="ruby-comment cmt"># | | | |</span>
288
+ 67: <span class="ruby-comment cmt"># | |</span>
289
+ 68: <span class="ruby-comment cmt"># | ___ |</span>
290
+ 69: <span class="ruby-ivar">@top_led</span> = <span class="ruby-constant">RabbitLed</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">:top</span>)
291
+ 70: <span class="ruby-comment cmt"># | | |</span>
292
+ 71: <span class="ruby-comment cmt"># | |</span>
293
+ 72: <span class="ruby-comment cmt"># | |</span>
294
+ 73: <span class="ruby-comment cmt"># | |</span>
295
+ 74: <span class="ruby-ivar">@right_led</span>, <span class="ruby-ivar">@middle_led</span>, <span class="ruby-ivar">@left_led</span> = <span class="ruby-constant">RabbitLed</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">:right</span>), <span class="ruby-constant">RabbitLed</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">:middle</span>), <span class="ruby-constant">RabbitLed</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">:left</span>)
296
+ 75: <span class="ruby-comment cmt"># | |</span>
297
+ 76: <span class="ruby-comment cmt"># | |</span>
298
+ 77: <span class="ruby-comment cmt"># | |</span>
299
+ 78: <span class="ruby-comment cmt"># | |</span>
300
+ 79: <span class="ruby-comment cmt"># | |</span>
301
+ 80: <span class="ruby-comment cmt"># | | |</span>
302
+ 81: <span class="ruby-comment cmt"># / @bottom_led = RabbitLed.new :bottom</span>
303
+ 82: <span class="ruby-comment cmt"># -----------------------------------------------</span>
304
+ 83: <span class="ruby-keyword kw">end</span>
305
+ </pre>
306
+ </div>
307
+ </div>
308
+ </div>
309
+
310
+ <h3 class="section-bar">Public Instance methods</h3>
311
+
312
+ <div id="method-M000010" class="method-detail">
313
+ <a name="M000010"></a>
314
+
315
+ <div class="method-heading">
316
+ <a href="#M000010" class="method-signature">
317
+ <span class="method-name">asleep?</span><span class="method-args">()</span>
318
+ </a>
319
+ </div>
320
+
321
+ <div class="method-description">
322
+ <p><a class="source-toggle" href="#"
323
+ onclick="toggleCode('M000010-source');return false;">[Source]</a></p>
324
+ <div class="method-source-code" id="M000010-source">
325
+ <pre>
326
+ <span class="ruby-comment cmt"># File lib/libastag.rb, line 91</span>
327
+ 91: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">asleep?</span>
328
+ 92: <span class="ruby-comment cmt"># TODO</span>
329
+ 93: <span class="ruby-keyword kw">end</span>
330
+ </pre>
331
+ </div>
332
+ </div>
333
+ </div>
334
+
335
+ <div id="method-M000012" class="method-detail">
336
+ <a name="M000012"></a>
337
+
338
+ <div class="method-heading">
339
+ <a href="#M000012" class="method-signature">
340
+ <span class="method-name">awake?</span><span class="method-args">()</span>
341
+ </a>
342
+ </div>
343
+
344
+ <div class="method-description">
345
+ <p><a class="source-toggle" href="#"
346
+ onclick="toggleCode('M000012-source');return false;">[Source]</a></p>
347
+ <div class="method-source-code" id="M000012-source">
348
+ <pre>
349
+ <span class="ruby-comment cmt"># File lib/libastag.rb, line 97</span>
350
+ 97: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">awake?</span>
351
+ 98: <span class="ruby-comment cmt"># TODO</span>
352
+ 99: <span class="ruby-keyword kw">end</span>
353
+ </pre>
354
+ </div>
355
+ </div>
356
+ </div>
357
+
358
+ <div id="method-M000009" class="method-detail">
359
+ <a name="M000009"></a>
360
+
361
+ <div class="method-heading">
362
+ <a href="#M000009" class="method-signature">
363
+ <span class="method-name">name</span><span class="method-args">()</span>
364
+ </a>
365
+ </div>
366
+
367
+ <div class="method-description">
368
+ <p><a class="source-toggle" href="#"
369
+ onclick="toggleCode('M000009-source');return false;">[Source]</a></p>
370
+ <div class="method-source-code" id="M000009-source">
371
+ <pre>
372
+ <span class="ruby-comment cmt"># File lib/libastag.rb, line 88</span>
373
+ 88: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">name</span>
374
+ 89: <span class="ruby-comment cmt"># TODO</span>
375
+ 90: <span class="ruby-keyword kw">end</span>
376
+ </pre>
377
+ </div>
378
+ </div>
379
+ </div>
380
+
381
+ <div id="method-M000011" class="method-detail">
382
+ <a name="M000011"></a>
383
+
384
+ <div class="method-heading">
385
+ <a href="#M000011" class="method-signature">
386
+ <span class="method-name">sleep!</span><span class="method-args">()</span>
387
+ </a>
388
+ </div>
389
+
390
+ <div class="method-description">
391
+ <p><a class="source-toggle" href="#"
392
+ onclick="toggleCode('M000011-source');return false;">[Source]</a></p>
393
+ <div class="method-source-code" id="M000011-source">
394
+ <pre>
395
+ <span class="ruby-comment cmt"># File lib/libastag.rb, line 94</span>
396
+ 94: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sleep!</span>
397
+ 95: <span class="ruby-comment cmt"># TODO</span>
398
+ 96: <span class="ruby-keyword kw">end</span>
399
+ </pre>
400
+ </div>
401
+ </div>
402
+ </div>
403
+
404
+ <div id="method-M000014" class="method-detail">
405
+ <a name="M000014"></a>
406
+
407
+ <div class="method-heading">
408
+ <a href="#M000014" class="method-signature">
409
+ <span class="method-name">version</span><span class="method-args">()</span>
410
+ </a>
411
+ </div>
412
+
413
+ <div class="method-description">
414
+ <p><a class="source-toggle" href="#"
415
+ onclick="toggleCode('M000014-source');return false;">[Source]</a></p>
416
+ <div class="method-source-code" id="M000014-source">
417
+ <pre>
418
+ <span class="ruby-comment cmt"># File lib/libastag.rb, line 103</span>
419
+ 103: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">version</span>
420
+ 104: <span class="ruby-comment cmt"># TODO</span>
421
+ 105: <span class="ruby-keyword kw">end</span>
422
+ </pre>
423
+ </div>
424
+ </div>
425
+ </div>
426
+
427
+ <div id="method-M000013" class="method-detail">
428
+ <a name="M000013"></a>
429
+
430
+ <div class="method-heading">
431
+ <a href="#M000013" class="method-signature">
432
+ <span class="method-name">wakeup!</span><span class="method-args">()</span>
433
+ </a>
434
+ </div>
435
+
436
+ <div class="method-description">
437
+ <p><a class="source-toggle" href="#"
438
+ onclick="toggleCode('M000013-source');return false;">[Source]</a></p>
439
+ <div class="method-source-code" id="M000013-source">
440
+ <pre>
441
+ <span class="ruby-comment cmt"># File lib/libastag.rb, line 100</span>
442
+ 100: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">wakeup!</span>
443
+ 101: <span class="ruby-comment cmt"># TODO</span>
444
+ 102: <span class="ruby-keyword kw">end</span>
445
+ </pre>
446
+ </div>
447
+ </div>
448
+ </div>
449
+
450
+
451
+ </div>
452
+
453
+
454
+ </div>
455
+
456
+
457
+ <div id="validator-badges">
458
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
459
+ </div>
460
+
461
+ </body>
462
+ </html>