Class: Time

Inherits:
Object show all
Defined in:
lib/file_scheduler/time_mark.rb

Instance Method Summary collapse

Instance Method Details

#<=>(other) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/file_scheduler/time_mark.rb', line 7

def <=>(other)
  if FileScheduler::TimeMark === other
    -(other <=> self)
  else
    compare_to_without_time_mark_support other
  end
end

#compare_to_without_time_mark_supportObject



5
# File 'lib/file_scheduler/time_mark.rb', line 5

alias_method :compare_to_without_time_mark_support, :<=>