Method: Timecode#-
- Defined in:
- lib/timecode.rb
#-(arg) ⇒ Object
Subtract a number of frames
316 317 318 319 320 321 322 323 324 |
# File 'lib/timecode.rb', line 316 def -(arg) if (arg.is_a?(Timecode) && framerate_in_delta(arg.fps, @fps)) self.class.new(@total-arg.total, @fps) elsif (arg.is_a?(Timecode)) raise WrongFramerate, "You are calculating timecodes with different framerates" else self.class.new(@total-arg, @fps) end end |