class DiceBag::StaticPart
This represents a static, non-random number part of the dice string.
Public Class Methods
new(num)
click to toggle source
# File lib/dicebag/static_part.rb, line 5 def initialize(num) num = num.to_i if num.is_a?(String) @value = num end
Public Instance Methods
to_s()
click to toggle source
# File lib/dicebag/static_part.rb, line 14 def to_s value.to_s end
total()
click to toggle source
# File lib/dicebag/static_part.rb, line 10 def total value end