Class: Wackelkoepfe::LoadedDie
- Inherits:
-
Object
- Object
- Wackelkoepfe::LoadedDie
- Includes:
- Auditable
- Defined in:
- lib/Wackelkoepfe/loaded_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.
7 8 9 |
# File 'lib/Wackelkoepfe/loaded_die.rb', line 7 def number @number end |
Instance Method Details
#roll ⇒ Object
9 10 11 12 13 14 |
# File 'lib/Wackelkoepfe/loaded_die.rb', line 9 def roll numbers = [1,1,2,5,6,6] @number = numbers.sample audit @number end |