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



94
95
96
# File 'lib/zip/dos_time.rb', line 94

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

#<=(other) ⇒ Object



98
99
100
# File 'lib/zip/dos_time.rb', line 98

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

#==(other) ⇒ Object



90
91
92
# File 'lib/zip/dos_time.rb', line 90

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

#>(other) ⇒ Object



102
103
104
# File 'lib/zip/dos_time.rb', line 102

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

#>=(other) ⇒ Object



106
107
108
# File 'lib/zip/dos_time.rb', line 106

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