Class: BCDice::DiceTable::RangeTable::RollResult
- Inherits:
- 
      Struct
      
        - Object
- Struct
- BCDice::DiceTable::RangeTable::RollResult
 
- Defined in:
- lib/bcdice/dice_table/range_table.rb
Overview
表を振った結果を表す構造体
Instance Attribute Summary collapse
- 
  
    
      #content  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    選ばれた項目の内容. 
- 
  
    
      #formatted  ⇒ String 
    
    
      (also: #to_s)
    
  
  
  
  
    
    
  
  
  
  
  
  
    整形された結果. 
- 
  
    
      #sum  ⇒ Integer 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    出目の合計. 
- 
  
    
      #values  ⇒ Array<Integer> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    出目の配列. 
Instance Attribute Details
#content ⇒ Object
Returns 選ばれた項目の内容.
| 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 | 
#formatted ⇒ String Also known as: to_s
Returns 整形された結果.
| 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 | 
#sum ⇒ Integer
Returns 出目の合計.
| 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 | 
#values ⇒ Array<Integer>
Returns 出目の配列.
| 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 |