Class: Dicechucker::DiceDropHigh

Inherits:
DiceDropper show all
Defined in:
lib/dicechucker/dice.rb

Instance Attribute Summary

Attributes inherited from DiceDropper

#dropped

Attributes inherited from Dice

#modifier, #number_of_dice, #results, #sides, #total

Instance Method Summary collapse

Methods inherited from DiceDropper

#report, #roll

Methods inherited from Dice

#==, #initialize, #report, #roll

Constructor Details

This class inherits a constructor from Dicechucker::Dice

Instance Method Details

#drop_targetObject



74
75
76
# File 'lib/dicechucker/dice.rb', line 74

def drop_target
  @results.max
end