tabletop 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. data/.gitignore +1 -0
  2. data/Rakefile +1 -1
  3. data/doc/Fixnum.html +313 -0
  4. data/doc/Tabletop/Coin.html +351 -0
  5. data/doc/Tabletop/Die.html +480 -0
  6. data/doc/Tabletop/FudgeDie.html +315 -0
  7. data/doc/Tabletop/NotEnoughTokensError.html +146 -0
  8. data/doc/Tabletop/Pool.html +770 -0
  9. data/doc/Tabletop/Possibility.html +235 -0
  10. data/doc/Tabletop/Roll.html +731 -0
  11. data/doc/Tabletop/TokenStack.html +394 -0
  12. data/doc/Tabletop.html +185 -0
  13. data/doc/created.rid +8 -0
  14. data/doc/images/brick.png +0 -0
  15. data/doc/images/brick_link.png +0 -0
  16. data/doc/images/bug.png +0 -0
  17. data/doc/images/bullet_black.png +0 -0
  18. data/doc/images/bullet_toggle_minus.png +0 -0
  19. data/doc/images/bullet_toggle_plus.png +0 -0
  20. data/doc/images/date.png +0 -0
  21. data/doc/images/find.png +0 -0
  22. data/doc/images/loadingAnimation.gif +0 -0
  23. data/doc/images/macFFBgHack.png +0 -0
  24. data/doc/images/package.png +0 -0
  25. data/doc/images/page_green.png +0 -0
  26. data/doc/images/page_white_text.png +0 -0
  27. data/doc/images/page_white_width.png +0 -0
  28. data/doc/images/plugin.png +0 -0
  29. data/doc/images/ruby.png +0 -0
  30. data/doc/images/tag_green.png +0 -0
  31. data/doc/images/wrench.png +0 -0
  32. data/doc/images/wrench_orange.png +0 -0
  33. data/doc/images/zoom.png +0 -0
  34. data/doc/index.html +167 -0
  35. data/doc/js/darkfish.js +116 -0
  36. data/doc/js/jquery.js +32 -0
  37. data/doc/js/quicksearch.js +114 -0
  38. data/doc/js/thickbox-compressed.js +10 -0
  39. data/doc/lib/fixnum_rb.html +54 -0
  40. data/doc/lib/tabletop/pool_rb.html +54 -0
  41. data/doc/lib/tabletop/randomizers_rb.html +52 -0
  42. data/doc/lib/tabletop/roll_rb.html +52 -0
  43. data/doc/lib/tabletop/token_rb.html +52 -0
  44. data/doc/lib/tabletop/version_rb.html +52 -0
  45. data/doc/lib/tabletop_rb.html +52 -0
  46. data/doc/rdoc.css +763 -0
  47. data/lib/fixnum.rb +8 -0
  48. data/lib/tabletop/pool.rb +32 -1
  49. data/lib/tabletop/randomizers.rb +22 -1
  50. data/lib/tabletop/roll.rb +65 -10
  51. data/lib/tabletop/token.rb +7 -4
  52. data/lib/tabletop/version.rb +1 -1
  53. data/spec/randomizers_spec.rb +6 -1
  54. data/spec/spec_helper.rb +1 -1
  55. data/tabletop.gemspec +1 -0
  56. metadata +60 -5
@@ -0,0 +1,235 @@
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::Possibility</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/roll_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
38
+ class="thickbox" title="lib/tabletop/roll.rb">lib/tabletop/roll.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
+ </ul>
71
+ </div>
72
+
73
+
74
+
75
+ </div>
76
+
77
+ <div id="project-metadata">
78
+
79
+
80
+
81
+ <div id="classindex-section" class="section project-section">
82
+ <h3 class="section-header">Class/Module Index
83
+ <span class="search-toggle"><img src="../images/find.png"
84
+ height="16" width="16" alt="[+]"
85
+ title="show/hide quicksearch" /></span></h3>
86
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
87
+ <fieldset>
88
+ <legend>Quicksearch</legend>
89
+ <input type="text" name="quicksearch" value=""
90
+ class="quicksearch-field" />
91
+ </fieldset>
92
+ </form>
93
+
94
+ <ul class="link-list">
95
+
96
+ <li><a href="../Tabletop.html">Tabletop</a></li>
97
+
98
+ <li><a href="../Tabletop/Coin.html">Tabletop::Coin</a></li>
99
+
100
+ <li><a href="../Tabletop/Die.html">Tabletop::Die</a></li>
101
+
102
+ <li><a href="../Tabletop/FudgeDie.html">Tabletop::FudgeDie</a></li>
103
+
104
+ <li><a href="../Tabletop/NotEnoughTokensError.html">Tabletop::NotEnoughTokensError</a></li>
105
+
106
+ <li><a href="../Tabletop/Pool.html">Tabletop::Pool</a></li>
107
+
108
+ <li><a href="../Tabletop/Possibility.html">Tabletop::Possibility</a></li>
109
+
110
+ <li><a href="../Tabletop/Roll.html">Tabletop::Roll</a></li>
111
+
112
+ <li><a href="../Tabletop/TokenStack.html">Tabletop::TokenStack</a></li>
113
+
114
+ <li><a href="../Fixnum.html">Fixnum</a></li>
115
+
116
+ </ul>
117
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
118
+ </div>
119
+
120
+
121
+ </div>
122
+ </div>
123
+
124
+ <div id="documentation">
125
+ <h1 class="class">Tabletop::Possibility</h1>
126
+
127
+ <div id="description" class="description">
128
+
129
+ </div><!-- description -->
130
+
131
+
132
+
133
+
134
+ <div id="5Buntitled-5D" class="documentation-section">
135
+
136
+
137
+
138
+
139
+
140
+
141
+
142
+ <!-- Attributes -->
143
+ <div id="attribute-method-details" class="method-section section">
144
+ <h3 class="section-header">Attributes</h3>
145
+
146
+
147
+ <div id="conditions-attribute-method" class="method-detail">
148
+ <a name="conditions"></a>
149
+
150
+ <div class="method-heading attribute-method-heading">
151
+ <span class="method-name">conditions</span><span
152
+ class="attribute-access-type">[R]</span>
153
+ </div>
154
+
155
+ <div class="method-description">
156
+
157
+ <p>A hash indexed by symbols (:&gt;, :&lt;, :=, :&gt;=, :&lt;=) to the values
158
+ to be compared.</p>
159
+
160
+ </div>
161
+ </div>
162
+
163
+ <div id="outcomes-attribute-method" class="method-detail">
164
+ <a name="outcomes"></a>
165
+
166
+ <div class="method-heading attribute-method-heading">
167
+ <span class="method-name">outcomes</span><span
168
+ class="attribute-access-type">[R]</span>
169
+ </div>
170
+
171
+ <div class="method-description">
172
+
173
+ <p>An array of values to output if the conditions are met.</p>
174
+
175
+ </div>
176
+ </div>
177
+
178
+ </div><!-- attribute-method-details -->
179
+
180
+
181
+ <!-- Methods -->
182
+
183
+ <div id="public-class-method-details" class="method-section section">
184
+ <h3 class="section-header">Public Class Methods</h3>
185
+
186
+
187
+ <div id="new-method" class="method-detail ">
188
+ <a name="method-c-new"></a>
189
+
190
+
191
+ <div class="method-heading">
192
+ <span class="method-name">new</span><span
193
+ class="method-args">(outcomes, conditions)</span>
194
+ <span class="method-click-advice">click to toggle source</span>
195
+ </div>
196
+
197
+
198
+ <div class="method-description">
199
+
200
+
201
+
202
+
203
+
204
+ <div class="method-source-code" id="new-source">
205
+ <pre>
206
+ <span class="ruby-comment"># File lib/tabletop/roll.rb, line 13</span>
207
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">outcomes</span>, <span class="ruby-identifier">conditions</span>)
208
+ <span class="ruby-ivar">@outcomes</span>, <span class="ruby-ivar">@conditions</span> = <span class="ruby-identifier">outcomes</span>, <span class="ruby-identifier">conditions</span>
209
+ <span class="ruby-keyword">end</span></pre>
210
+ </div><!-- new-source -->
211
+
212
+ </div>
213
+
214
+
215
+
216
+
217
+ </div><!-- new-method -->
218
+
219
+
220
+ </div><!-- public-class-method-details -->
221
+
222
+ </div><!-- 5Buntitled-5D -->
223
+
224
+
225
+ </div><!-- documentation -->
226
+
227
+ <div id="validator-badges">
228
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
229
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
230
+ Rdoc Generator</a> 2</small>.</p>
231
+ </div>
232
+
233
+ </body>
234
+ </html>
235
+