module Utopia::Extensions::TimeDateComparison
Provides comparison operator extensions.
Public Instance Methods
<=>(other)
click to toggle source
Calls superclass method
# File lib/utopia/extensions/date_comparisons.rb, line 29 def <=>(other) if Date === other or DateTime === other self.to_datetime <=> other else super end end