class DiceBag::SimplePart
The most simplest of a part. If a given part of a dice string is not a Label, Fixnum, or a xDx part it will be an instance of this class, which simply returns the value given to it.
Attributes
value[R]
Public Class Methods
new(part)
click to toggle source
# File lib/dicebag/simple_part.rb, line 9 def initialize(part) @value = part end
Public Instance Methods
result()
click to toggle source
# File lib/dicebag/simple_part.rb, line 13 def result value end
to_s()
click to toggle source
# File lib/dicebag/simple_part.rb, line 17 def to_s value end