Method: ASSLine#convert_time
- Defined in:
- lib/vtt2ass/ass_line.rb
#convert_time(time) ⇒ Object
This method validates the time format and sends the matching time to be converted
-
Requires
str, a VTT formatted time string.
58 59 60 61 |
# File 'lib/vtt2ass/ass_line.rb', line 58 def convert_time(time) matched_time = time.match(/([\d:]*)\.?(\d*)/) to_subs_time(matched_time[0]) end |