Class: Date

Inherits:
Object
  • Object
show all
Defined in:
lib/russian_production_calendar/ext/date.rb

Instance Method Summary collapse

Instance Method Details

#gt_holidayObject



36
37
38
# File 'lib/russian_production_calendar/ext/date.rb', line 36

def gt_holiday
  RussianProductionCalendar.gt_holiday(self)
end

#gt_workdayObject



20
21
22
# File 'lib/russian_production_calendar/ext/date.rb', line 20

def gt_workday
  RussianProductionCalendar.gt_workday(self)
end

#gte_holidayObject



28
29
30
# File 'lib/russian_production_calendar/ext/date.rb', line 28

def gte_holiday
  RussianProductionCalendar.gte_holiday(self)
end

#gte_workdayObject



12
13
14
# File 'lib/russian_production_calendar/ext/date.rb', line 12

def gte_workday
  RussianProductionCalendar.gte_workday(self)
end

#holiday?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/russian_production_calendar/ext/date.rb', line 4

def holiday?
  RussianProductionCalendar.holiday?(self)
end

#lt_holidayObject



40
41
42
# File 'lib/russian_production_calendar/ext/date.rb', line 40

def lt_holiday
  RussianProductionCalendar.lt_holiday(self)
end

#lt_workdayObject



24
25
26
# File 'lib/russian_production_calendar/ext/date.rb', line 24

def lt_workday
  RussianProductionCalendar.lt_workday(self)
end

#lte_holidayObject



32
33
34
# File 'lib/russian_production_calendar/ext/date.rb', line 32

def lte_holiday
  RussianProductionCalendar.lte_holiday(self)
end

#lte_workdayObject



16
17
18
# File 'lib/russian_production_calendar/ext/date.rb', line 16

def lte_workday
  RussianProductionCalendar.lte_workday(self)
end

#workday?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/russian_production_calendar/ext/date.rb', line 8

def workday?
  RussianProductionCalendar.workday?(self)
end