Class: Tabletop::Possibility
- Inherits:
-
Object
- Object
- Tabletop::Possibility
- Defined in:
- lib/tabletop/roll.rb
Overview
:nodoc: all
Instance Attribute Summary collapse
-
#conditions ⇒ Object
readonly
Returns the value of attribute conditions.
-
#outcomes ⇒ Object
readonly
Returns the value of attribute outcomes.
Instance Method Summary collapse
-
#initialize(outcomes, conditions) ⇒ Possibility
constructor
A new instance of Possibility.
Constructor Details
#initialize(outcomes, conditions) ⇒ Possibility
Returns a new instance of Possibility.
10 11 12 |
# File 'lib/tabletop/roll.rb', line 10 def initialize(outcomes, conditions) @outcomes, @conditions = outcomes, conditions end |
Instance Attribute Details
#conditions ⇒ Object (readonly)
Returns the value of attribute conditions.
8 9 10 |
# File 'lib/tabletop/roll.rb', line 8 def conditions @conditions end |
#outcomes ⇒ Object (readonly)
Returns the value of attribute outcomes.
6 7 8 |
# File 'lib/tabletop/roll.rb', line 6 def outcomes @outcomes end |