class DiceBox::Dice::Side

Representation of the side of a dice

Attributes

value[RW]

@!attribute [rw] value @return [Integer] the actual value of the Side

weight[RW]

@!attribute [rw] weight @return [Float] the weight of the Side

Public Class Methods

new(value, weight = 1.0) click to toggle source

@param value [Integer] the actual value of the Side @param weight [Float] the weight of the Side

# File lib/dice_box/dice/side.rb, line 15
def initialize(value, weight = 1.0)
  @value = value
  @weight = weight
end