class CrowdFund::Die

Attributes

number[R]

Public Class Methods

new() click to toggle source
# File lib/crowdfund/die.rb, line 5
def initialize
  roll
end

Public Instance Methods

roll() click to toggle source
# File lib/crowdfund/die.rb, line 9
def roll
  @number = rand(1..6)
end