tabletop 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +1 -0
- data/Rakefile +1 -1
- data/doc/Fixnum.html +313 -0
- data/doc/Tabletop/Coin.html +351 -0
- data/doc/Tabletop/Die.html +480 -0
- data/doc/Tabletop/FudgeDie.html +315 -0
- data/doc/Tabletop/NotEnoughTokensError.html +146 -0
- data/doc/Tabletop/Pool.html +770 -0
- data/doc/Tabletop/Possibility.html +235 -0
- data/doc/Tabletop/Roll.html +731 -0
- data/doc/Tabletop/TokenStack.html +394 -0
- data/doc/Tabletop.html +185 -0
- data/doc/created.rid +8 -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/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_green.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 +167 -0
- data/doc/js/darkfish.js +116 -0
- data/doc/js/jquery.js +32 -0
- data/doc/js/quicksearch.js +114 -0
- data/doc/js/thickbox-compressed.js +10 -0
- data/doc/lib/fixnum_rb.html +54 -0
- data/doc/lib/tabletop/pool_rb.html +54 -0
- data/doc/lib/tabletop/randomizers_rb.html +52 -0
- data/doc/lib/tabletop/roll_rb.html +52 -0
- data/doc/lib/tabletop/token_rb.html +52 -0
- data/doc/lib/tabletop/version_rb.html +52 -0
- data/doc/lib/tabletop_rb.html +52 -0
- data/doc/rdoc.css +763 -0
- data/lib/fixnum.rb +8 -0
- data/lib/tabletop/pool.rb +32 -1
- data/lib/tabletop/randomizers.rb +22 -1
- data/lib/tabletop/roll.rb +65 -10
- data/lib/tabletop/token.rb +7 -4
- data/lib/tabletop/version.rb +1 -1
- data/spec/randomizers_spec.rb +6 -1
- data/spec/spec_helper.rb +1 -1
- data/tabletop.gemspec +1 -0
- metadata +60 -5
|
@@ -0,0 +1,394 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
5
|
+
<head>
|
|
6
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
|
7
|
+
|
|
8
|
+
<title>Class: Tabletop::TokenStack</title>
|
|
9
|
+
|
|
10
|
+
<link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
|
|
11
|
+
|
|
12
|
+
<script src="../js/jquery.js" type="text/javascript" charset="utf-8"></script>
|
|
13
|
+
<script src="../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
|
|
14
|
+
<script src="../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
|
|
15
|
+
<script src="../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
|
|
16
|
+
|
|
17
|
+
</head>
|
|
18
|
+
<body id="top" class="class">
|
|
19
|
+
|
|
20
|
+
<div id="metadata">
|
|
21
|
+
<div id="home-metadata">
|
|
22
|
+
<div id="home-section" class="section">
|
|
23
|
+
<h3 class="section-header">
|
|
24
|
+
<a href="../index.html">Home</a>
|
|
25
|
+
<a href="../index.html#classes">Classes</a>
|
|
26
|
+
<a href="../index.html#methods">Methods</a>
|
|
27
|
+
</h3>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
<div id="file-metadata">
|
|
32
|
+
<div id="file-list-section" class="section">
|
|
33
|
+
<h3 class="section-header">In Files</h3>
|
|
34
|
+
<div class="section-body">
|
|
35
|
+
<ul>
|
|
36
|
+
|
|
37
|
+
<li><a href="../lib/tabletop/token_rb.html?TB_iframe=true&height=550&width=785"
|
|
38
|
+
class="thickbox" title="lib/tabletop/token.rb">lib/tabletop/token.rb</a></li>
|
|
39
|
+
|
|
40
|
+
</ul>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
</div>
|
|
46
|
+
|
|
47
|
+
<div id="class-metadata">
|
|
48
|
+
|
|
49
|
+
<!-- Parent Class -->
|
|
50
|
+
<div id="parent-class-section" class="section">
|
|
51
|
+
<h3 class="section-header">Parent</h3>
|
|
52
|
+
|
|
53
|
+
<p class="link">Object</p>
|
|
54
|
+
|
|
55
|
+
</div>
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
<!-- Method Quickref -->
|
|
64
|
+
<div id="method-list-section" class="section">
|
|
65
|
+
<h3 class="section-header">Methods</h3>
|
|
66
|
+
<ul class="link-list">
|
|
67
|
+
|
|
68
|
+
<li><a href="#method-c-new">::new</a></li>
|
|
69
|
+
|
|
70
|
+
<li><a href="#method-i-3C-3D-3E">#<=></a></li>
|
|
71
|
+
|
|
72
|
+
<li><a href="#method-i-add">#add</a></li>
|
|
73
|
+
|
|
74
|
+
<li><a href="#method-i-move">#move</a></li>
|
|
75
|
+
|
|
76
|
+
<li><a href="#method-i-remove">#remove</a></li>
|
|
77
|
+
|
|
78
|
+
</ul>
|
|
79
|
+
</div>
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
<!-- Included Modules -->
|
|
84
|
+
<div id="includes-section" class="section">
|
|
85
|
+
<h3 class="section-header">Included Modules</h3>
|
|
86
|
+
<ul class="link-list">
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
<li><span class="include">Comparable</span></li>
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
</ul>
|
|
93
|
+
</div>
|
|
94
|
+
|
|
95
|
+
</div>
|
|
96
|
+
|
|
97
|
+
<div id="project-metadata">
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
<div id="classindex-section" class="section project-section">
|
|
102
|
+
<h3 class="section-header">Class/Module Index
|
|
103
|
+
<span class="search-toggle"><img src="../images/find.png"
|
|
104
|
+
height="16" width="16" alt="[+]"
|
|
105
|
+
title="show/hide quicksearch" /></span></h3>
|
|
106
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
|
107
|
+
<fieldset>
|
|
108
|
+
<legend>Quicksearch</legend>
|
|
109
|
+
<input type="text" name="quicksearch" value=""
|
|
110
|
+
class="quicksearch-field" />
|
|
111
|
+
</fieldset>
|
|
112
|
+
</form>
|
|
113
|
+
|
|
114
|
+
<ul class="link-list">
|
|
115
|
+
|
|
116
|
+
<li><a href="../Tabletop.html">Tabletop</a></li>
|
|
117
|
+
|
|
118
|
+
<li><a href="../Tabletop/Coin.html">Tabletop::Coin</a></li>
|
|
119
|
+
|
|
120
|
+
<li><a href="../Tabletop/Die.html">Tabletop::Die</a></li>
|
|
121
|
+
|
|
122
|
+
<li><a href="../Tabletop/FudgeDie.html">Tabletop::FudgeDie</a></li>
|
|
123
|
+
|
|
124
|
+
<li><a href="../Tabletop/NotEnoughTokensError.html">Tabletop::NotEnoughTokensError</a></li>
|
|
125
|
+
|
|
126
|
+
<li><a href="../Tabletop/Pool.html">Tabletop::Pool</a></li>
|
|
127
|
+
|
|
128
|
+
<li><a href="../Tabletop/Roll.html">Tabletop::Roll</a></li>
|
|
129
|
+
|
|
130
|
+
<li><a href="../Tabletop/TokenStack.html">Tabletop::TokenStack</a></li>
|
|
131
|
+
|
|
132
|
+
<li><a href="../Fixnum.html">Fixnum</a></li>
|
|
133
|
+
|
|
134
|
+
</ul>
|
|
135
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
|
136
|
+
</div>
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
</div>
|
|
140
|
+
</div>
|
|
141
|
+
|
|
142
|
+
<div id="documentation">
|
|
143
|
+
<h1 class="class">Tabletop::TokenStack</h1>
|
|
144
|
+
|
|
145
|
+
<div id="description" class="description">
|
|
146
|
+
|
|
147
|
+
</div><!-- description -->
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
<div id="5Buntitled-5D" class="documentation-section">
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
<!-- Attributes -->
|
|
161
|
+
<div id="attribute-method-details" class="method-section section">
|
|
162
|
+
<h3 class="section-header">Attributes</h3>
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
<div id="count-attribute-method" class="method-detail">
|
|
166
|
+
<a name="count"></a>
|
|
167
|
+
|
|
168
|
+
<a name="count="></a>
|
|
169
|
+
|
|
170
|
+
<div class="method-heading attribute-method-heading">
|
|
171
|
+
<span class="method-name">count</span><span
|
|
172
|
+
class="attribute-access-type">[RW]</span>
|
|
173
|
+
</div>
|
|
174
|
+
|
|
175
|
+
<div class="method-description">
|
|
176
|
+
|
|
177
|
+
<p>The number of tokens in the Stack</p>
|
|
178
|
+
|
|
179
|
+
</div>
|
|
180
|
+
</div>
|
|
181
|
+
|
|
182
|
+
</div><!-- attribute-method-details -->
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
<!-- Methods -->
|
|
186
|
+
|
|
187
|
+
<div id="public-class-method-details" class="method-section section">
|
|
188
|
+
<h3 class="section-header">Public Class Methods</h3>
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
<div id="new-method" class="method-detail ">
|
|
192
|
+
<a name="method-c-new"></a>
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
<div class="method-heading">
|
|
196
|
+
<span class="method-name">new</span><span
|
|
197
|
+
class="method-args">(num_tokens = 1)</span>
|
|
198
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
199
|
+
</div>
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
<div class="method-description">
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
<div class="method-source-code" id="new-source">
|
|
209
|
+
<pre>
|
|
210
|
+
<span class="ruby-comment"># File lib/tabletop/token.rb, line 12</span>
|
|
211
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">num_tokens</span> = <span class="ruby-value">1</span>)
|
|
212
|
+
<span class="ruby-ivar">@count</span> = <span class="ruby-identifier">num_tokens</span>
|
|
213
|
+
<span class="ruby-keyword">end</span></pre>
|
|
214
|
+
</div><!-- new-source -->
|
|
215
|
+
|
|
216
|
+
</div>
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
</div><!-- new-method -->
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
</div><!-- public-class-method-details -->
|
|
225
|
+
|
|
226
|
+
<div id="public-instance-method-details" class="method-section section">
|
|
227
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
<div id="3C-3D-3E-method" class="method-detail ">
|
|
231
|
+
<a name="method-i-3C-3D-3E"></a>
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
<div class="method-heading">
|
|
235
|
+
<span class="method-name"><=></span><span
|
|
236
|
+
class="method-args">(operand)</span>
|
|
237
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
238
|
+
</div>
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
<div class="method-description">
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
<div class="method-source-code" id="3C-3D-3E-source">
|
|
248
|
+
<pre>
|
|
249
|
+
<span class="ruby-comment"># File lib/tabletop/token.rb, line 16</span>
|
|
250
|
+
<span class="ruby-keyword">def</span> <span class="ruby-operator"><=></span>(<span class="ruby-identifier">operand</span>)
|
|
251
|
+
<span class="ruby-identifier">count</span> <span class="ruby-operator"><=></span> <span class="ruby-identifier">operand</span>.<span class="ruby-identifier">to_int</span>
|
|
252
|
+
<span class="ruby-keyword">end</span></pre>
|
|
253
|
+
</div><!-- 3C-3D-3E-source -->
|
|
254
|
+
|
|
255
|
+
</div>
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
</div><!-- 3C-3D-3E-method -->
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
<div id="add-method" class="method-detail ">
|
|
264
|
+
<a name="method-i-add"></a>
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
<div class="method-heading">
|
|
268
|
+
<span class="method-name">add</span><span
|
|
269
|
+
class="method-args">(n = 1)</span>
|
|
270
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
271
|
+
</div>
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
<div class="method-description">
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
<div class="method-source-code" id="add-source">
|
|
281
|
+
<pre>
|
|
282
|
+
<span class="ruby-comment"># File lib/tabletop/token.rb, line 20</span>
|
|
283
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">add</span>(<span class="ruby-identifier">n</span> = <span class="ruby-value">1</span>)
|
|
284
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">n</span>.<span class="ruby-identifier">instance_of?</span>(<span class="ruby-constant">Fixnum</span>) <span class="ruby-keyword">and</span> <span class="ruby-identifier">n</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>
|
|
285
|
+
<span class="ruby-ivar">@count</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">n</span>
|
|
286
|
+
<span class="ruby-keyword">end</span></pre>
|
|
287
|
+
</div><!-- add-source -->
|
|
288
|
+
|
|
289
|
+
</div>
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
</div><!-- add-method -->
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
<div id="move-method" class="method-detail ">
|
|
298
|
+
<a name="method-i-move"></a>
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
<div class="method-heading">
|
|
302
|
+
<span class="method-name">move</span><span
|
|
303
|
+
class="method-args">(n, opts)</span>
|
|
304
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
305
|
+
</div>
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
<div class="method-description">
|
|
309
|
+
|
|
310
|
+
<p>Removes N tokens from the receiver stack, then adds them to the stack in
|
|
311
|
+
<a href="http://:to">opts</a></p>
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
<div class="method-source-code" id="move-source">
|
|
316
|
+
<pre>
|
|
317
|
+
<span class="ruby-comment"># File lib/tabletop/token.rb, line 44</span>
|
|
318
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">move</span>(<span class="ruby-identifier">n</span>, <span class="ruby-identifier">opts</span>)
|
|
319
|
+
<span class="ruby-identifier">raise</span>(<span class="ruby-constant">ArgumentError</span>, <span class="ruby-node">"target is #{opts[:to].class}, not TokenStack"</span>) <span class="ruby-keyword">unless</span> <span class="ruby-identifier">opts</span>[<span class="ruby-value">:to</span>].<span class="ruby-identifier">instance_of?</span>(<span class="ruby-constant">TokenStack</span>)
|
|
320
|
+
<span class="ruby-identifier">remove</span>(<span class="ruby-identifier">n</span>)
|
|
321
|
+
<span class="ruby-identifier">opts</span>[<span class="ruby-value">:to</span>].<span class="ruby-identifier">add</span>(<span class="ruby-identifier">n</span>)
|
|
322
|
+
<span class="ruby-keyword">end</span></pre>
|
|
323
|
+
</div><!-- move-source -->
|
|
324
|
+
|
|
325
|
+
</div>
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
</div><!-- move-method -->
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
<div id="remove-method" class="method-detail ">
|
|
334
|
+
<a name="method-i-remove"></a>
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
<div class="method-heading">
|
|
338
|
+
<span class="method-name">remove</span><span
|
|
339
|
+
class="method-args">(n=1)</span>
|
|
340
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
341
|
+
</div>
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
<div class="method-description">
|
|
345
|
+
|
|
346
|
+
<p>Raises <a href="NotEnoughTokensError.html">NotEnoughTokensError</a> if
|
|
347
|
+
there aren’t enough tokens to remove</p>
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
<div class="method-source-code" id="remove-source">
|
|
352
|
+
<pre>
|
|
353
|
+
<span class="ruby-comment"># File lib/tabletop/token.rb, line 26</span>
|
|
354
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">remove</span>(<span class="ruby-identifier">n</span>=<span class="ruby-value">1</span>)
|
|
355
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">n</span>.<span class="ruby-identifier">instance_of?</span>(<span class="ruby-constant">Fixnum</span>) <span class="ruby-keyword">and</span> <span class="ruby-identifier">n</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>
|
|
356
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">n</span> <span class="ruby-operator">></span> <span class="ruby-ivar">@count</span>
|
|
357
|
+
<span class="ruby-identifier">n_t</span>, <span class="ruby-identifier">c_t</span> = <span class="ruby-string">"token"</span>, <span class="ruby-string">"token"</span>
|
|
358
|
+
|
|
359
|
+
<span class="ruby-identifier">n_t</span> <span class="ruby-operator"><<</span> <span class="ruby-string">"s"</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">n</span> <span class="ruby-operator">></span> <span class="ruby-value">1</span> <span class="ruby-keyword">or</span> <span class="ruby-identifier">n</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
|
|
360
|
+
|
|
361
|
+
<span class="ruby-identifier">c_t</span> <span class="ruby-operator"><<</span> <span class="ruby-string">"s"</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@count</span> <span class="ruby-operator">></span> <span class="ruby-value">1</span> <span class="ruby-keyword">or</span> <span class="ruby-ivar">@count</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
|
|
362
|
+
|
|
363
|
+
<span class="ruby-identifier">c</span> = <span class="ruby-ivar">@count</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span> <span class="ruby-operator">?</span> <span class="ruby-ivar">@count</span> <span class="ruby-operator">:</span> <span class="ruby-string">"no"</span>
|
|
364
|
+
<span class="ruby-identifier">errmsg</span> = <span class="ruby-node">"tried to remove #{n} #{n_t} from a stack with #{c} #{c_t}"</span>
|
|
365
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">NotEnoughTokensError</span>, <span class="ruby-identifier">errmsg</span>
|
|
366
|
+
<span class="ruby-keyword">end</span>
|
|
367
|
+
<span class="ruby-ivar">@count</span> <span class="ruby-operator">-=</span> <span class="ruby-identifier">n</span>
|
|
368
|
+
<span class="ruby-keyword">end</span></pre>
|
|
369
|
+
</div><!-- remove-source -->
|
|
370
|
+
|
|
371
|
+
</div>
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
</div><!-- remove-method -->
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
</div><!-- public-instance-method-details -->
|
|
380
|
+
|
|
381
|
+
</div><!-- 5Buntitled-5D -->
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
</div><!-- documentation -->
|
|
385
|
+
|
|
386
|
+
<div id="validator-badges">
|
|
387
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
388
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
|
389
|
+
Rdoc Generator</a> 2</small>.</p>
|
|
390
|
+
</div>
|
|
391
|
+
|
|
392
|
+
</body>
|
|
393
|
+
</html>
|
|
394
|
+
|
data/doc/Tabletop.html
ADDED
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
5
|
+
<head>
|
|
6
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
|
7
|
+
|
|
8
|
+
<title>Module: Tabletop</title>
|
|
9
|
+
|
|
10
|
+
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
|
|
11
|
+
|
|
12
|
+
<script src="./js/jquery.js" type="text/javascript" charset="utf-8"></script>
|
|
13
|
+
<script src="./js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
|
|
14
|
+
<script src="./js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
|
|
15
|
+
<script src="./js/darkfish.js" type="text/javascript" charset="utf-8"></script>
|
|
16
|
+
|
|
17
|
+
</head>
|
|
18
|
+
<body id="top" class="module">
|
|
19
|
+
|
|
20
|
+
<div id="metadata">
|
|
21
|
+
<div id="home-metadata">
|
|
22
|
+
<div id="home-section" class="section">
|
|
23
|
+
<h3 class="section-header">
|
|
24
|
+
<a href="./index.html">Home</a>
|
|
25
|
+
<a href="./index.html#classes">Classes</a>
|
|
26
|
+
<a href="./index.html#methods">Methods</a>
|
|
27
|
+
</h3>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
<div id="file-metadata">
|
|
32
|
+
<div id="file-list-section" class="section">
|
|
33
|
+
<h3 class="section-header">In Files</h3>
|
|
34
|
+
<div class="section-body">
|
|
35
|
+
<ul>
|
|
36
|
+
|
|
37
|
+
<li><a href="./lib/tabletop/pool_rb.html?TB_iframe=true&height=550&width=785"
|
|
38
|
+
class="thickbox" title="lib/tabletop/pool.rb">lib/tabletop/pool.rb</a></li>
|
|
39
|
+
|
|
40
|
+
<li><a href="./lib/tabletop/randomizers_rb.html?TB_iframe=true&height=550&width=785"
|
|
41
|
+
class="thickbox" title="lib/tabletop/randomizers.rb">lib/tabletop/randomizers.rb</a></li>
|
|
42
|
+
|
|
43
|
+
<li><a href="./lib/tabletop/roll_rb.html?TB_iframe=true&height=550&width=785"
|
|
44
|
+
class="thickbox" title="lib/tabletop/roll.rb">lib/tabletop/roll.rb</a></li>
|
|
45
|
+
|
|
46
|
+
<li><a href="./lib/tabletop/token_rb.html?TB_iframe=true&height=550&width=785"
|
|
47
|
+
class="thickbox" title="lib/tabletop/token.rb">lib/tabletop/token.rb</a></li>
|
|
48
|
+
|
|
49
|
+
<li><a href="./lib/tabletop/version_rb.html?TB_iframe=true&height=550&width=785"
|
|
50
|
+
class="thickbox" title="lib/tabletop/version.rb">lib/tabletop/version.rb</a></li>
|
|
51
|
+
|
|
52
|
+
</ul>
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
</div>
|
|
58
|
+
|
|
59
|
+
<div id="class-metadata">
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
<!-- Namespace Contents -->
|
|
66
|
+
<div id="namespace-list-section" class="section">
|
|
67
|
+
<h3 class="section-header">Namespace</h3>
|
|
68
|
+
<ul class="link-list">
|
|
69
|
+
|
|
70
|
+
<li><span class="type">CLASS</span> <a href="Tabletop/Coin.html">Tabletop::Coin</a></li>
|
|
71
|
+
|
|
72
|
+
<li><span class="type">CLASS</span> <a href="Tabletop/Die.html">Tabletop::Die</a></li>
|
|
73
|
+
|
|
74
|
+
<li><span class="type">CLASS</span> <a href="Tabletop/FudgeDie.html">Tabletop::FudgeDie</a></li>
|
|
75
|
+
|
|
76
|
+
<li><span class="type">CLASS</span> <a href="Tabletop/NotEnoughTokensError.html">Tabletop::NotEnoughTokensError</a></li>
|
|
77
|
+
|
|
78
|
+
<li><span class="type">CLASS</span> <a href="Tabletop/Pool.html">Tabletop::Pool</a></li>
|
|
79
|
+
|
|
80
|
+
<li><span class="type">CLASS</span> <a href="Tabletop/Roll.html">Tabletop::Roll</a></li>
|
|
81
|
+
|
|
82
|
+
<li><span class="type">CLASS</span> <a href="Tabletop/TokenStack.html">Tabletop::TokenStack</a></li>
|
|
83
|
+
|
|
84
|
+
</ul>
|
|
85
|
+
</div>
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
</div>
|
|
92
|
+
|
|
93
|
+
<div id="project-metadata">
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
<div id="classindex-section" class="section project-section">
|
|
98
|
+
<h3 class="section-header">Class/Module Index
|
|
99
|
+
<span class="search-toggle"><img src="./images/find.png"
|
|
100
|
+
height="16" width="16" alt="[+]"
|
|
101
|
+
title="show/hide quicksearch" /></span></h3>
|
|
102
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
|
103
|
+
<fieldset>
|
|
104
|
+
<legend>Quicksearch</legend>
|
|
105
|
+
<input type="text" name="quicksearch" value=""
|
|
106
|
+
class="quicksearch-field" />
|
|
107
|
+
</fieldset>
|
|
108
|
+
</form>
|
|
109
|
+
|
|
110
|
+
<ul class="link-list">
|
|
111
|
+
|
|
112
|
+
<li><a href="./Tabletop.html">Tabletop</a></li>
|
|
113
|
+
|
|
114
|
+
<li><a href="./Tabletop/Coin.html">Tabletop::Coin</a></li>
|
|
115
|
+
|
|
116
|
+
<li><a href="./Tabletop/Die.html">Tabletop::Die</a></li>
|
|
117
|
+
|
|
118
|
+
<li><a href="./Tabletop/FudgeDie.html">Tabletop::FudgeDie</a></li>
|
|
119
|
+
|
|
120
|
+
<li><a href="./Tabletop/NotEnoughTokensError.html">Tabletop::NotEnoughTokensError</a></li>
|
|
121
|
+
|
|
122
|
+
<li><a href="./Tabletop/Pool.html">Tabletop::Pool</a></li>
|
|
123
|
+
|
|
124
|
+
<li><a href="./Tabletop/Roll.html">Tabletop::Roll</a></li>
|
|
125
|
+
|
|
126
|
+
<li><a href="./Tabletop/TokenStack.html">Tabletop::TokenStack</a></li>
|
|
127
|
+
|
|
128
|
+
<li><a href="./Fixnum.html">Fixnum</a></li>
|
|
129
|
+
|
|
130
|
+
</ul>
|
|
131
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
|
132
|
+
</div>
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
</div>
|
|
136
|
+
</div>
|
|
137
|
+
|
|
138
|
+
<div id="documentation">
|
|
139
|
+
<h1 class="module">Tabletop</h1>
|
|
140
|
+
|
|
141
|
+
<div id="description" class="description">
|
|
142
|
+
|
|
143
|
+
</div><!-- description -->
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
<div id="5Buntitled-5D" class="documentation-section">
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
<!-- Constants -->
|
|
155
|
+
<div id="constants-list" class="section">
|
|
156
|
+
<h3 class="section-header">Constants</h3>
|
|
157
|
+
<dl>
|
|
158
|
+
|
|
159
|
+
<dt><a name="VERSION">VERSION</a></dt>
|
|
160
|
+
|
|
161
|
+
<dd class="description"></dd>
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
</dl>
|
|
165
|
+
</div>
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
<!-- Methods -->
|
|
171
|
+
|
|
172
|
+
</div><!-- 5Buntitled-5D -->
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
</div><!-- documentation -->
|
|
176
|
+
|
|
177
|
+
<div id="validator-badges">
|
|
178
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
179
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
|
180
|
+
Rdoc Generator</a> 2</small>.</p>
|
|
181
|
+
</div>
|
|
182
|
+
|
|
183
|
+
</body>
|
|
184
|
+
</html>
|
|
185
|
+
|
data/doc/created.rid
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
Fri, 19 Aug 2011 11:46:34 -0700
|
|
2
|
+
lib/fixnum.rb Fri, 19 Aug 2011 10:23:23 -0700
|
|
3
|
+
lib/tabletop/pool.rb Fri, 19 Aug 2011 10:05:58 -0700
|
|
4
|
+
lib/tabletop/randomizers.rb Thu, 18 Aug 2011 18:58:55 -0700
|
|
5
|
+
lib/tabletop/roll.rb Fri, 19 Aug 2011 11:46:20 -0700
|
|
6
|
+
lib/tabletop/token.rb Thu, 18 Aug 2011 18:58:55 -0700
|
|
7
|
+
lib/tabletop/version.rb Thu, 18 Aug 2011 15:32:10 -0700
|
|
8
|
+
lib/tabletop.rb Thu, 18 Aug 2011 15:32:10 -0700
|
|
Binary file
|
|
Binary file
|
data/doc/images/bug.png
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/doc/images/date.png
ADDED
|
Binary file
|
data/doc/images/find.png
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/doc/images/ruby.png
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/doc/images/zoom.png
ADDED
|
Binary file
|