Class: Tablescript::LookupStrategy
- Inherits:
-
Object
- Object
- Tablescript::LookupStrategy
- Defined in:
- lib/tablescript/lookup_strategy.rb
Overview
LookupStrategy
Instance Method Summary collapse
-
#initialize(table, roll) ⇒ LookupStrategy
constructor
A new instance of LookupStrategy.
- #value ⇒ Object
Constructor Details
#initialize(table, roll) ⇒ LookupStrategy
Returns a new instance of LookupStrategy.
23 24 25 26 27 |
# File 'lib/tablescript/lookup_strategy.rb', line 23 def initialize(table, roll) @table = table @roll = roll @value = nil end |
Instance Method Details
#value ⇒ Object
29 30 31 32 |
# File 'lib/tablescript/lookup_strategy.rb', line 29 def value evaluate @value end |