Class: Time
- Inherits:
-
Object
- Object
- Time
- Defined in:
- lib/ignore_nsec.rb
Instance Method Summary collapse
Instance Method Details
#<=>(other) ⇒ Object
6 7 8 |
# File 'lib/ignore_nsec.rb', line 6 def <=>(other) other.respond_to?(:nsec) ? to_i <=> other.to_i : send('___<=>'.to_sym, other) end |