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



75
76
77
# File 'lib/zip/dos_time.rb', line 75

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

#<=(other) ⇒ Object



79
80
81
# File 'lib/zip/dos_time.rb', line 79

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

#==(other) ⇒ Object



71
72
73
# File 'lib/zip/dos_time.rb', line 71

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

#>(other) ⇒ Object



83
84
85
# File 'lib/zip/dos_time.rb', line 83

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

#>=(other) ⇒ Object



87
88
89
# File 'lib/zip/dos_time.rb', line 87

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