README.md in what_date-0.1.1 vs README.md in what_date-0.1.2
- old
+ new
@@ -1,7 +1,7 @@
# WhatDate
-
+Simple solution to such questions as "What date is next Monday?"
## Installation
Add this line to your application's Gemfile:
```ruby
@@ -21,22 +21,26 @@
```
## initialize client
$client = WhatDate.client
## get dates
-$client.friday
-$client.tuesday(Date.new(2018,2,3)) ##date of tuesday in the week of the given date
-$client.prev_tuesday
-$client.next_tuesday
+client.friday
+client.tuesday(Date.new(2018,2,3)) ##date of tuesday in the week of the given date
+client.prev_tuesday
+client.next_tuesday
```
-You can also ask for the date of a particular day of a given month. Use ordinals such as first, second and up to fifth. But'last' does not work yet.
+You can also ask for the date of a particular day of a given month. Use ordinals such as first, second and up to fifth. You can enquire the last date too.
```
-$client.first_monday_of_june_2018
-$##4 June 2018
-$client.third_tuesday_of_may_2018
-$##19 June 2018
+client.first_monday_of_june_2018
+##4 June 2018
+
+client.third_tuesday_of_may_2018
+##19 June 2018
+
+client.last_monday_of_may_2018
+##28 May 2018
```
## Development