Class: Time

Inherits:
Object
  • Object
show all
Defined in:
lib/axiom/core_ext/time.rb

Overview

Extend Time with methods to find the previous Time

Instance Method Summary collapse

Instance Method Details

#predTime

Decrement the Time by one second

Examples:

previous_second = time.pred

Returns:



15
16
17
# File 'lib/axiom/core_ext/time.rb', line 15

def pred
  self - 1
end