Module: Zip::DOSTime::JRubyCMP

Included in:
Zip::DOSTime
Defined in:
lib/zip/dos_time.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#<(other) ⇒ Object



65
66
67
# File 'lib/zip/dos_time.rb', line 65

def <(other)
  (self <=> other).negative?
end

#<=(other) ⇒ Object



69
70
71
# File 'lib/zip/dos_time.rb', line 69

def <=(other)
  (self <=> other) <= 0
end

#==(other) ⇒ Object



61
62
63
# File 'lib/zip/dos_time.rb', line 61

def ==(other)
  (self <=> other).zero?
end

#>(other) ⇒ Object



73
74
75
# File 'lib/zip/dos_time.rb', line 73

def >(other)
  (self <=> other).positive?
end

#>=(other) ⇒ Object



77
78
79
# File 'lib/zip/dos_time.rb', line 77

def >=(other)
  (self <=> other) >= 0
end