class StudioGame::Die
Attributes
number[R]
Public Instance Methods
roll()
click to toggle source
# File lib/studio_game/die.rb, line 10 def roll #method that rolls the die @number = rand(1..6) # gets a random number between 1-6 inclusive audit #method from the mixin auditable.rb @number #returns number on die end