-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove DateTime implementation, remove Delegation
DateTime inherits from Date, so we don't need to implement in both. And the DateTime implementation was wrong, anyway. Using SimpleDelegation for Gigaseconds was a bad idea as delegation wasn't needed. Imagine this code: ```ruby d = Gigasecond.new(Date.today) irb(main):011:0> d.date irb(main):012:0> d.to_time ``` `date` returns a date 32 years in the future, while `to_time` returns today. Bad idea.
- Loading branch information
Showing
2 changed files
with
10 additions
and
8 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
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