Class: Randsum::HighDropper

Inherits:
Dropper
  • Object
show all
Defined in:
lib/randsum/filters/droppers/high_dropper.rb

Instance Attribute Summary

Attributes inherited from Dropper

#quantity, #roll

Instance Method Summary collapse

Methods inherited from Dropper

#filter, for, #initialize

Constructor Details

This class inherits a constructor from Randsum::Dropper

Instance Method Details

#orderedObject



3
4
5
# File 'lib/randsum/filters/droppers/high_dropper.rb', line 3

def ordered
  roll.result.sort { |a, b| a <=> b }
end