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