Class: Standard::Die

Inherits:
DiceBag::Roll show all
Defined in:
lib/dicebag/systems/standard.rb

Overview

Models a single, simple die.

Instance Attribute Summary

Attributes inherited from DiceBag::Roll

#dstr, #tree

Instance Method Summary collapse

Methods inherited from DiceBag::Roll

#average, #maximum, #minimum, #notes, #notes_to_s, #result, #roll

Methods included from RollString

#inspect, #to_s

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