From 98740aab19b308e373161a5cd1cc630354bf2ed9 Mon Sep 17 00:00:00 2001 From: alejandra cantu Date: Thu, 7 Jan 2021 01:50:40 +0000 Subject: [PATCH] Done. --- app/application.rb | 19 +++++++++++++++++++ test.rb | 6 ++++++ 2 files changed, 25 insertions(+) create mode 100644 test.rb diff --git a/app/application.rb b/app/application.rb index e69de29bb..0ea03f017 100644 --- a/app/application.rb +++ b/app/application.rb @@ -0,0 +1,19 @@ + +class Application + +def call(env) + resp = Rack::Response.new + time = Time.now.hour + + + + if time <= 12 + resp.write "Good Morning!" + else + resp.write "Good Afternoon" + end + + resp.finish + end + +end diff --git a/test.rb b/test.rb new file mode 100644 index 000000000..995ef88c7 --- /dev/null +++ b/test.rb @@ -0,0 +1,6 @@ +require 'pry' +def time +time = Time.now + puts "Current Time : " + time.inspect + binding.pry + end