class ActiveMocker::Queries::Sort::DESC

Attributes

r[R]

Public Class Methods

new(r) click to toggle source
# File lib/active_mocker/mock/queries.rb, line 333
def initialize(r)
  @r = r
end

Public Instance Methods

<=>(other) click to toggle source
# File lib/active_mocker/mock/queries.rb, line 337
def <=>(other)
  -(r <=> other.r) # Flip negative/positive result
end