Class: Time

Inherits:
Object
  • Object
show all
Defined in:
lib/core_extensions.rb

Instance Method Summary collapse

Instance Method Details

#finishObject


90
# File 'lib/core_extensions.rb', line 90

def finish; self; end

#next_dayObject


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

def next_day
  self + 86_400
end

#prev_dayObject


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

def prev_day
  self - 86_400
end

#short_yearObject


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

def short_year
  strftime('%y').to_i
end

#startObject

Act like a Block.


89
# File 'lib/core_extensions.rb', line 89

def start; self; end