class Rollio::Range::RollOn
Attributes
with[R]
Public Class Methods
new(roll_on:, **kwargs)
click to toggle source
Calls superclass method
Rollio::Range::Base::new
# File lib/rollio/range.rb, line 78 def initialize(roll_on:, **kwargs) super(**kwargs) @roll_on = roll_on @with = kwargs[:with] end
Public Instance Methods
result()
click to toggle source
# File lib/rollio/range.rb, line 88 def result "Roll on #{@roll_on}" end
roll!()
click to toggle source
# File lib/rollio/range.rb, line 84 def roll! (1..times).map { table_set.roll_on(@roll_on, with: with) } end