Class: LiarsDice::DiceRolledEvent
- Defined in:
- lib/liars_dice/event.rb
Instance Attribute Summary collapse
-
#dice ⇒ Object
Returns the value of attribute dice.
Attributes inherited from Event
Instance Method Summary collapse
-
#initialize(dice) ⇒ DiceRolledEvent
constructor
A new instance of DiceRolledEvent.
Constructor Details
#initialize(dice) ⇒ DiceRolledEvent
Returns a new instance of DiceRolledEvent.
33 34 35 36 |
# File 'lib/liars_dice/event.rb', line 33 def initialize(dice) self.dice = dice super("Dice rolled") end |
Instance Attribute Details
#dice ⇒ Object
Returns the value of attribute dice.
31 32 33 |
# File 'lib/liars_dice/event.rb', line 31 def dice @dice end |