Class: RpgLib::RollDescriptor
- Inherits:
-
Object
- Object
- RpgLib::RollDescriptor
- Defined in:
- lib/rpg_lib/roll_descriptor.rb
Overview
RollDescriptor
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.
25 26 27 28 29 |
# File 'lib/rpg_lib/roll_descriptor.rb', line 25 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.
23 24 25 |
# File 'lib/rpg_lib/roll_descriptor.rb', line 23 def count @count end |
#die ⇒ Object (readonly)
Returns the value of attribute die.
23 24 25 |
# File 'lib/rpg_lib/roll_descriptor.rb', line 23 def die @die end |
#drop_highest ⇒ Object (readonly)
Returns the value of attribute drop_highest.
23 24 25 |
# File 'lib/rpg_lib/roll_descriptor.rb', line 23 def drop_highest @drop_highest end |
#drop_lowest ⇒ Object (readonly)
Returns the value of attribute drop_lowest.
23 24 25 |
# File 'lib/rpg_lib/roll_descriptor.rb', line 23 def drop_lowest @drop_lowest end |