Module: AskYearMonth::MonthNameHelper

Defined in:
lib/ask_year_month/month_name_helper.rb

Instance Method Summary collapse

Instance Method Details

#april?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/ask_year_month/month_name_helper.rb', line 15

def april?
  month == 4
end

#august?Boolean

Returns:

  • (Boolean)


31
32
33
# File 'lib/ask_year_month/month_name_helper.rb', line 31

def august?
  month == 8
end

#december?Boolean

Returns:

  • (Boolean)


47
48
49
# File 'lib/ask_year_month/month_name_helper.rb', line 47

def december?
  month == 12
end

#february?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/ask_year_month/month_name_helper.rb', line 7

def february?
  month == 2
end

#january?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/ask_year_month/month_name_helper.rb', line 3

def january?
  month == 1
end

#july?Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/ask_year_month/month_name_helper.rb', line 27

def july?
  month == 7
end

#june?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/ask_year_month/month_name_helper.rb', line 23

def june?
  month == 6
end

#march?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/ask_year_month/month_name_helper.rb', line 11

def march?
  month == 3
end

#may?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/ask_year_month/month_name_helper.rb', line 19

def may?
  month == 5
end

#november?Boolean

Returns:

  • (Boolean)


43
44
45
# File 'lib/ask_year_month/month_name_helper.rb', line 43

def november?
  month == 11
end

#october?Boolean

Returns:

  • (Boolean)


39
40
41
# File 'lib/ask_year_month/month_name_helper.rb', line 39

def october?
  month == 10
end

#september?Boolean

Returns:

  • (Boolean)


35
36
37
# File 'lib/ask_year_month/month_name_helper.rb', line 35

def september?
  month == 9
end