Class: TableScript::TableEntry
- Inherits:
-
Object
- Object
- TableScript::TableEntry
- Defined in:
- lib/tablescript/table_entry.rb
Instance Method Summary collapse
- #evaluate(roll) ⇒ Object
-
#initialize(blk) ⇒ TableEntry
constructor
A new instance of TableEntry.
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 |