Class: Dice

Inherits:
Object
  • Object
show all
Defined in:
lib/objects/dice.rb

Overview

This object represents an animated emoji that displays a random value.

Instance Method Summary collapse

Constructor Details

#initialize(dice) ⇒ Dice

:nodoc:



8
9
10
# File 'lib/objects/dice.rb', line 8

def initialize(dice) # :nodoc:
  @dice = dice
end

Instance Method Details

#emojiObject

Emoji on which the dice throw animation is based.



13
14
15
# File 'lib/objects/dice.rb', line 13

def emoji
  @dice.emoji
end

#valueObject

Value of the dice



18
19
20
# File 'lib/objects/dice.rb', line 18

def value
  @dice.value
end