Module: A1447llHpbd
- Defined in:
- lib/a1447ll_hpbd.rb,
lib/a1447ll_hpbd/version.rb
Constant Summary collapse
- VERSION =
"1.0.0"
Class Method Summary collapse
Class Method Details
.run ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/a1447ll_hpbd.rb', line 5 def self.run print "Input the someone's name who has birthday today: " n = gets.chomp s = n.upcase.split(%r{\s*}) name = "" for i in 0 .. s.length-2 do name = name + s[i] + "." end name = ".:" + name + s[-1] + ":." msg = Message.new name puts "" msg.draw puts "" return "Wish you a happy birthday! <3" end |