Class: Wackelkoepfe::Die
- Inherits:
-
Object
- Object
- Wackelkoepfe::Die
- Includes:
- Auditable
- Defined in:
- lib/Wackelkoepfe/die.rb
Instance Attribute Summary collapse
-
#number ⇒ Object
readonly
Returns the value of attribute number.
Instance Method Summary collapse
Methods included from Auditable
Instance Attribute Details
#number ⇒ Object (readonly)
Returns the value of attribute number.
6 7 8 |
# File 'lib/Wackelkoepfe/die.rb', line 6 def number @number end |
Instance Method Details
#roll ⇒ Object
8 9 10 11 12 |
# File 'lib/Wackelkoepfe/die.rb', line 8 def roll @number = rand(1..6) audit @number end |