Class: Tablescript::LookupStrategy

Inherits:
Object
  • Object
show all
Defined in:
lib/tablescript/lookup_strategy.rb

Overview

LookupStrategy

Instance Method Summary collapse

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

#valueObject



29
30
31
32
# File 'lib/tablescript/lookup_strategy.rb', line 29

def value
  evaluate
  @value
end