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



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

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

#<=(other) ⇒ Object



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

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

#==(other) ⇒ Object



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

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

#>(other) ⇒ Object



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

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

#>=(other) ⇒ Object



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

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