class Date

Attributes

sortsign[RW]

Public Instance Methods

-@() click to toggle source
# File lib/budgetcrmod/budget.rb, line 14
def -@
  #@sortsign ? @sortsign *= -1 : (@sortsign=-1)
  newdate = dup
  newdate.sortsign = -1
  newdate
end
<=>(other) click to toggle source
# File lib/budgetcrmod/budget.rb, line 21
def <=>(other)
  oldres = oldcompare(other)
  oldres *= -1 if @sortsign==-1        and other.sortsign == -1
  oldres
end
Also aliased as: oldcompare
oldcompare(other)
Alias for: <=>