No release in over a year
This gem display a message with the phrase Good morning if it is in the morning, Good afternoon if it is in the afternoon, Good evening if it is in the evening, Good night if it is at night
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies
 Project Readme

📗 Table of Contents

  • 📗 Table of Contents
  • 📖 time_greeting_message
    • Installation
      • Usage
    • 👥 Authors
    • 🤝 Contributing
    • ⭐️ Show your support

📖 time_greeting_message

This is a simple gem to display a message with the phrase Good Morning if it is in the morning, Good Afternoon if it is in the afternoon, Good Evening if it is in the evening, Good Night if it is at night

Installation

Add the following code to you Gemfile

gem 'time_greeting_message'

or

install the gem on your terminal

gem install time_greeting_message

Usage

require the gem in your ruby code.

For example you can do this on your employee.rb file


require 'time_greeting_message'
class Employee

  def welcome(full_name)
    "#{Greeting.new.greeting_message} #{full_name}"
  end

end

employee = Employee.new
puts employee.welcome("Melashu Amare)

The above code will display either of the message below, based on the curent time.

Good Morning Melashu Amare

Good Afternoon Melashu Amare

Good Evening Melashu Amare

Good Night Melashu Amare

👥 Authors

👤 Melashu Amare

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

⭐️ Show your support

Give a star if you like this project!

(back to top)