Class: Dice
- Inherits:
-
Object
- Object
- Dice
- Defined in:
- lib/objects/dice.rb
Overview
This object represents an animated emoji that displays a random value.
Instance Method Summary collapse
-
#emoji ⇒ Object
Emoji on which the dice throw animation is based.
-
#initialize(dice) ⇒ Dice
constructor
:nodoc:.
-
#value ⇒ Object
Value of the dice.
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
#emoji ⇒ Object
Emoji on which the dice throw animation is based.
13 14 15 |
# File 'lib/objects/dice.rb', line 13 def emoji @dice.emoji end |
#value ⇒ Object
Value of the dice
18 19 20 |
# File 'lib/objects/dice.rb', line 18 def value @dice.value end |