Class: Time

Inherits:
Object
  • Object
show all
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_compareObject



32
# File 'lib/loki/time.rb', line 32

alias loki_original_compare :<=>

#to_sObject



42
43
44
# File 'lib/loki/time.rb', line 42

def to_s
  strftime("%m-%d-%Y %H:%M:%S")
end