Class: Date

Inherits:
Object
  • Object
show all
Defined in:
lib/utopia/extensions/date.rb

Instance Method Summary collapse

Instance Method Details

#<=>(other) ⇒ Object



41
42
43
44
45
46
47
# File 'lib/utopia/extensions/date.rb', line 41

def <=>(other)
	if Time === other
		self.to_datetime <=> other.to_datetime
	else
		old_compare(other)
	end
end

#old_compareObject



39
# File 'lib/utopia/extensions/date.rb', line 39

alias_method :old_compare, :<=>