Class: Time
- Inherits:
-
Object
- Object
- Time
- Defined in:
- lib/loki/time.rb
Instance Method Summary collapse
Instance Method Details
#<=>(other) ⇒ Object
33 34 35 36 37 38 39 |
# File 'lib/loki/time.rb', line 33 def <=>(other) if Loki::Primeval === other - other.<=>(self) else loki_original_compare(other) end end |
#loki_original_compare ⇒ Object
32 |
# File 'lib/loki/time.rb', line 32 alias loki_original_compare :<=> |
#to_s ⇒ Object
42 43 44 |
# File 'lib/loki/time.rb', line 42 def to_s strftime("%m-%d-%Y %H:%M:%S") end |