Skip to content

Commit

Permalink
Add Time.parse() back for now
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Oct 28, 2013
1 parent 72e6f32 commit e292b33
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions corelib/time.rb
Expand Up @@ -129,6 +129,10 @@ def self.now
`new Date()`
end

def self.parse(str)
`Date.parse(str)`
end

def +(other)
if Time === other
raise TypeError, "time + time?"
Expand Down

0 comments on commit e292b33

Please sign in to comment.