class Tablescript::TableEntry

TableEntry

Attributes

blk[R]
id[R]
roll[R]

Public Class Methods

new(id, roll, blk) click to toggle source
# File lib/tablescript/table_entry.rb, line 25
def initialize(id, roll, blk)
  @id = id
  @roll = roll
  @blk = blk
end

Public Instance Methods

evaluate(roll, table) click to toggle source
# File lib/tablescript/table_entry.rb, line 31
def evaluate(roll, table)
  table.instance_exec(RollContext.new(roll, table, self), &@blk)
end