Guest User

Untitled

a guest
Feb 20th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. class Time
  2. class << self
  3. alias_method :parse, :parse_without_new_stuff
  4.  
  5. def parse(str)
  6. if(string_is_in_your_format)
  7. #do your parsing
  8. else
  9. parse_without_new_stuff(str)
  10. end
  11. end
  12. end
  13. end
Add Comment
Please, Sign In to add comment