Class: TableScript::RollDescriptor
- Inherits:
-
Object
- Object
- TableScript::RollDescriptor
- Defined in:
- lib/tablescript/roll_descriptor.rb
Instance Attribute Summary collapse
-
#count ⇒ Object
readonly
Returns the value of attribute count.
-
#die ⇒ Object
readonly
Returns the value of attribute die.
-
#drop_highest ⇒ Object
readonly
Returns the value of attribute drop_highest.
-
#drop_lowest ⇒ Object
readonly
Returns the value of attribute drop_lowest.
Instance Method Summary collapse
-
#initialize(match) ⇒ RollDescriptor
constructor
A new instance of RollDescriptor.
Constructor Details
#initialize(match) ⇒ RollDescriptor
Returns a new instance of RollDescriptor.
24 25 26 27 28 |
# File 'lib/tablescript/roll_descriptor.rb', line 24 def initialize( match ) initialize_die( match ) initialize_count( match ) initialize_dropped_dice( match ) end |
Instance Attribute Details
#count ⇒ Object (readonly)
Returns the value of attribute count.
22 23 24 |
# File 'lib/tablescript/roll_descriptor.rb', line 22 def count @count end |
#die ⇒ Object (readonly)
Returns the value of attribute die.
22 23 24 |
# File 'lib/tablescript/roll_descriptor.rb', line 22 def die @die end |
#drop_highest ⇒ Object (readonly)
Returns the value of attribute drop_highest.
22 23 24 |
# File 'lib/tablescript/roll_descriptor.rb', line 22 def drop_highest @drop_highest end |
#drop_lowest ⇒ Object (readonly)
Returns the value of attribute drop_lowest.
22 23 24 |
# File 'lib/tablescript/roll_descriptor.rb', line 22 def drop_lowest @drop_lowest end |