Class: MonthItoS::MonthtoName

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

Class Method Summary collapse

Class Method Details

.convertMonth(a) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# File 'lib/monthItoS.rb', line 3

def self.convertMonth(a)
 case a
  when 1
    return_month = "JANUARY"
    
  when 2
  return_month = "FEBRUARY"

  when 3
  return_month = "MARCH"

  when 4
  return_month = "APRIL"

  when 5
  return_month = "MAY"

  when 6
  return_month = "JUNE"

  when 7
  return_month = "JULY"

  when 8
  return_month = "AUGUST"

  when 9
  return_month = "SEPTEMBER"

  when 10
  return_month = "OCTOBER"

    when 11
  return_month = "NOVEMBER"

  when 12
  return_month = "DECEMBER"

  else
    return_month = "I have no idea what to do with that."
 end
    return return_month
end