Method: Subber::Subtitle#shift!

Defined in:
lib/subber/subtitle.rb

#shift!(ms) ⇒ Object

mutates the current subtitle’s start and end time by ms

Parameters:

  • miliseconds (Integer)

    Can be both positive and negative



38
39
40
41
# File 'lib/subber/subtitle.rb', line 38

def shift!(ms)
  @start_time += ms
  @end_time += ms
end