Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made the date return an actual date object
Improved tests
- Loading branch information
1 parent
cad1078
commit 6dae244
Showing
3 changed files
with
24 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
TODO: | ||
Fix Rakefile with your name and contact info | ||
Make the date return an actual date object | ||
Make a to_s method that returns a basic pure-string sauce |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,6 +61,10 @@ def group | |
end | ||
|
||
def date | ||
Date.parse(date_raw) | ||
end | ||
|
||
def date_raw | ||
@data[5] | ||
end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters