Skip to content

Commit f162ac4

Browse files
julianpz21t2013anurag
authored andcommitted
Added isHalloween.rb (hacktoberfest17#1392)
1 parent 32dcf02 commit f162ac4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

halloween/isHalloween.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
require 'date'
2+
3+
date = Date.today
4+
5+
if date.mon == 10 and date.day == 31
6+
puts "Happy Halloween!"
7+
elsif date.mon == 10
8+
puts "It's October, but today is not Halloween!"
9+
else
10+
puts "It's not October"
11+
end

0 commit comments

Comments
 (0)