Class: Dice::D8
Overview
Implements a standard 8-sided dice with a roll value range of 1-8
Instance Attribute Summary
Attributes inherited from Dice
Instance Method Summary collapse
-
#initialize ⇒ D8
constructor
A new instance of D8.
Methods inherited from Dice
#*, #+, #-, #/, #coerce, coerce, #roll
Constructor Details
#initialize ⇒ D8
Returns a new instance of D8.
5 6 7 |
# File 'lib/dice/d8.rb', line 5 def initialize super 1, 8 end |