class Rollio::Range::InnerTable
Public Class Methods
new(inner_table:, **kwargs)
click to toggle source
Calls superclass method
Rollio::Range::Base::new
# File lib/rollio/range.rb, line 105 def initialize(inner_table:, **kwargs) super(**kwargs) @table.table_set.add(key, &inner_table) end
Public Instance Methods
result()
click to toggle source
# File lib/rollio/range.rb, line 114 def result "Roll on #{key}" end
roll!()
click to toggle source
# File lib/rollio/range.rb, line 110 def roll! (1..times).map { table_set.roll_on(key) } end