Class: Tabletop::Possibility

Inherits:
Object
  • Object
show all
Defined in:
lib/tabletop/roll.rb

Overview

:nodoc: all

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#conditionsObject (readonly)

Returns the value of attribute conditions.



8
9
10
# File 'lib/tabletop/roll.rb', line 8

def conditions
  @conditions
end

#outcomesObject (readonly)

Returns the value of attribute outcomes.



6
7
8
# File 'lib/tabletop/roll.rb', line 6

def outcomes
  @outcomes
end