Class: Standard::Die
- Inherits:
-
DiceBag::Roll
- Object
- DiceBag::Roll
- Standard::Die
- Defined in:
- lib/dicebag/systems/standard.rb
Overview
Models a single, simple die.
Instance Attribute Summary
Attributes inherited from DiceBag::Roll
Instance Method Summary collapse
-
#initialize(sides) ⇒ Die
constructor
A new instance of Die.
Methods inherited from DiceBag::Roll
#average, #maximum, #minimum, #notes, #notes_to_s, #result, #roll
Methods included from RollString
Constructor Details
#initialize(sides) ⇒ Die
Returns a new instance of Die.
7 8 9 |
# File 'lib/dicebag/systems/standard.rb', line 7 def initialize(sides) super("1d#{sides}") end |