Class: TableScript::TableEntry

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

Instance Method Summary collapse

Constructor Details

#initialize(blk) ⇒ TableEntry

Returns a new instance of TableEntry.



22
23
24
# File 'lib/tablescript/table_entry.rb', line 22

def initialize( blk )
  @blk = blk
end

Instance Method Details

#evaluate(roll) ⇒ Object



26
27
28
# File 'lib/tablescript/table_entry.rb', line 26

def evaluate( roll )
  @blk.call( roll )
end