class ActiveEnumerable::Order::DESC
Attributes
r[R]
Public Class Methods
new(r)
click to toggle source
# File lib/active_enumerable/order.rb, line 39 def initialize(r) @r = r end
Public Instance Methods
<=>(other)
click to toggle source
# File lib/active_enumerable/order.rb, line 43 def <=>(other) -(r <=> other.r) # Flip negative/positive result end