Class: ReverseSortedUniqueArray
- Defined in:
- lib/dated_backup/extensions/reverse_sorted_unique_array.rb
Overview
A subclass of Array, but it calls uniq!, sort!, and reverse! (in that order) after the instance is created
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(*args, &blk) ⇒ ReverseSortedUniqueArray
constructor
A new instance of ReverseSortedUniqueArray.
Methods inherited from Array
Constructor Details
#initialize(*args, &blk) ⇒ ReverseSortedUniqueArray
Returns a new instance of ReverseSortedUniqueArray.
7 8 9 10 11 12 |
# File 'lib/dated_backup/extensions/reverse_sorted_unique_array.rb', line 7 def initialize *args, &blk super *args, &blk uniq! sort! reverse! end |