Class: BCDice::DiceTable::RangeTable::RollResult

Inherits:
Struct
  • Object
show all
Defined in:
lib/bcdice/dice_table/range_table.rb

Overview

表を振った結果を表す構造体

Instance Attribute Summary collapse

Instance Attribute Details

#contentObject



44
45
46
# File 'lib/bcdice/dice_table/range_table.rb', line 44

RollResult = Struct.new(:sum, :values, :content, :formatted) do
  alias_method :to_s, :formatted
end

#formattedString Also known as: to_s



44
45
46
# File 'lib/bcdice/dice_table/range_table.rb', line 44

RollResult = Struct.new(:sum, :values, :content, :formatted) do
  alias_method :to_s, :formatted
end

#sumInteger



44
45
46
# File 'lib/bcdice/dice_table/range_table.rb', line 44

RollResult = Struct.new(:sum, :values, :content, :formatted) do
  alias_method :to_s, :formatted
end

#valuesArray<Integer>



44
45
46
# File 'lib/bcdice/dice_table/range_table.rb', line 44

RollResult = Struct.new(:sum, :values, :content, :formatted) do
  alias_method :to_s, :formatted
end