class SortedArray::ReverseSorter
Sorts and then reverse the array
Public Instance Methods
sort(array)
click to toggle source
@param [Object] array - must implement sort! and reverse! @return [Object] - the given object, sorted and reversed
Calls superclass method
SortedArray::DefaultSorter#sort
# File lib/sorted_array/reverse_sorter.rb, line 8 def sort(array) super array.reverse! end