README.md in format_time-0.1.1 vs README.md in format_time-0.1.2

- old
+ new

@@ -1,11 +1,9 @@ # FormatTime Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/format_time`. To experiment with that code, run `bin/console` for an interactive prompt. -TODO: Delete this and the text above, and describe your gem - ## Installation Add this line to your application's Gemfile: ```ruby @@ -20,10 +18,24 @@ $ gem install format_time ## Usage -TODO: Write usage instructions here +Add this line to your class where you gonna use this gem: + +```ruby +include FormatTime +``` + +then use it: + +```ruby +date = Date.parse('2020/01/01') + +format_relative_time(date) + +format_absolute_time(date) +``` ## Development After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.