Class: Date
Constant Summary
WeekOfMonth::Constant::DAYS_IN_SEQUENCE, WeekOfMonth::Constant::MONTH_WITH_DAY, WeekOfMonth::Constant::MONTH_WITH_SEQUENCE, WeekOfMonth::Constant::WEEK_OF_MONTH_IN_ENG, WeekOfMonth::Constant::WEEK_OF_MONTH_IN_FR, WeekOfMonth::Constant::WEEK_OF_MONTH_IN_GER, WeekOfMonth::Constant::WEEK_OF_MONTH_IN_JAP
Instance Method Summary
collapse
included
#beginning_of_week, #const, #current_week, #days_left_in_week, #days_past_in_week, #end_of_week, #first_week?, #general_week_of_month, #last_week?, #next_week, #previous_week, #second_week?, #total_weeks, #week_end?, #week_of_month, #week_split, #working_day?
#beginning_of_month, #day_name, #end_of_month, #last_day_of_month, #month_name, #name_of_month
#days_array, #name_of_week_day
Instance Method Details
#friday? ⇒ Boolean
27
|
# File 'lib/week_of_month.rb', line 27
def friday? ; self.wday == 5; end
|
#monday? ⇒ Boolean
23
|
# File 'lib/week_of_month.rb', line 23
def monday? ; self.wday == 1; end
|
#saturday? ⇒ Boolean
28
|
# File 'lib/week_of_month.rb', line 28
def saturday? ; self.wday == 6; end
|
#sunday? ⇒ Boolean
22
|
# File 'lib/week_of_month.rb', line 22
def sunday? ; self.wday == 0; end
|
#thursday? ⇒ Boolean
26
|
# File 'lib/week_of_month.rb', line 26
def thursday? ; self.wday == 4; end
|
#to_date ⇒ Object
16
17
18
|
# File 'lib/week_of_month.rb', line 16
def to_date
::Date.new(year, month, day)
end
|
#tuesday? ⇒ Boolean
24
|
# File 'lib/week_of_month.rb', line 24
def tuesday? ; self.wday == 2; end
|
#wednesday? ⇒ Boolean
25
|
# File 'lib/week_of_month.rb', line 25
def wednesday? ; self.wday == 3; end
|