monthItoS 0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/monthItoS.rb +47 -0
- metadata +64 -0
data/lib/monthItoS.rb
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
module MonthItoS
|
2
|
+
class MonthtoName
|
3
|
+
def self.convertMonth(a)
|
4
|
+
case a
|
5
|
+
when 1
|
6
|
+
return_month = "JANUARY"
|
7
|
+
|
8
|
+
when 2
|
9
|
+
return_month = "FEBRUARY"
|
10
|
+
|
11
|
+
when 3
|
12
|
+
return_month = "MARCH"
|
13
|
+
|
14
|
+
when 4
|
15
|
+
return_month = "APRIL"
|
16
|
+
|
17
|
+
when 5
|
18
|
+
return_month = "MAY"
|
19
|
+
|
20
|
+
when 6
|
21
|
+
return_month = "JUNE"
|
22
|
+
|
23
|
+
when 7
|
24
|
+
return_month = "JULY"
|
25
|
+
|
26
|
+
when 8
|
27
|
+
return_month = "AUGUST"
|
28
|
+
|
29
|
+
when 9
|
30
|
+
return_month = "SEPTEMBER"
|
31
|
+
|
32
|
+
when 10
|
33
|
+
return_month = "OCTOBER"
|
34
|
+
|
35
|
+
when 11
|
36
|
+
return_month = "NOVEMBER"
|
37
|
+
|
38
|
+
when 12
|
39
|
+
return_month = "DECEMBER"
|
40
|
+
|
41
|
+
else
|
42
|
+
return_month = "I have no idea what to do with that."
|
43
|
+
end
|
44
|
+
return return_month
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
metadata
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: monthItoS
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
version: 0.0.0
|
10
|
+
platform: ruby
|
11
|
+
authors:
|
12
|
+
- Amvishnu
|
13
|
+
autorequire:
|
14
|
+
bindir: bin
|
15
|
+
cert_chain: []
|
16
|
+
|
17
|
+
date: 2013-09-11 00:00:00 +05:30
|
18
|
+
default_executable:
|
19
|
+
dependencies: []
|
20
|
+
|
21
|
+
description: A simple gem to convert month(day) to corresponding Name
|
22
|
+
email: vgrkrishnan@gmail.com
|
23
|
+
executables: []
|
24
|
+
|
25
|
+
extensions: []
|
26
|
+
|
27
|
+
extra_rdoc_files: []
|
28
|
+
|
29
|
+
files:
|
30
|
+
- lib/monthItoS.rb
|
31
|
+
has_rdoc: true
|
32
|
+
homepage:
|
33
|
+
licenses: []
|
34
|
+
|
35
|
+
post_install_message:
|
36
|
+
rdoc_options: []
|
37
|
+
|
38
|
+
require_paths:
|
39
|
+
- lib
|
40
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
segments:
|
46
|
+
- 0
|
47
|
+
version: "0"
|
48
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
segments:
|
54
|
+
- 0
|
55
|
+
version: "0"
|
56
|
+
requirements: []
|
57
|
+
|
58
|
+
rubyforge_project:
|
59
|
+
rubygems_version: 1.3.7
|
60
|
+
signing_key:
|
61
|
+
specification_version: 3
|
62
|
+
summary: monthItoS
|
63
|
+
test_files: []
|
64
|
+
|