From 0ad86841743b2fb79bd3784f06bcf127ecc85855 Mon Sep 17 00:00:00 2001 From: Tam Vu Date: Sat, 19 Oct 2019 17:36:48 +0000 Subject: [PATCH] Done. --- app/application.rb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/app/application.rb b/app/application.rb index e69de29bb..463ba439b 100644 --- a/app/application.rb +++ b/app/application.rb @@ -0,0 +1,18 @@ +class Application + + def call(env) + resp = Rack::Response.new + + t = Time.now.hour + + + if t < 12 + resp.write "Good Morning!" + else + resp.write "Good Afternoon!" + end + + resp.finish + end + +end \ No newline at end of file