class Rollio::Roller
Public Class Methods
new(text)
click to toggle source
# File lib/rollio/roller.rb, line 5 def initialize(text) @text = text end
Public Instance Methods
render()
click to toggle source
# File lib/rollio/roller.rb, line 13 def render puts "#{@text}\tResult" end
roll!()
click to toggle source
# File lib/rollio/roller.rb, line 9 def roll! Dice.roll(@text) end