Class: Time

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

Instance Method Summary collapse

Instance Method Details

#prekin?Boolean

Returns:

  • (Boolean)


2
3
4
5
6
7
# File 'lib/prekin/extend_time_class.rb', line 2

def prekin?
  next_week = self + (60 * 60 * 24 * 7)
  next_month = month + 1

  friday? && (next_week.month == next_month)
end