module MovieMasher::AV

potential combinations of audio and video

Constants

AUDIO_ONLY
BOTH
NEITHER
VIDEO_ONLY

Public Class Methods

includes?(has, desired) click to toggle source
# File lib/constant/av.rb, line 9
def self.includes?(has, desired)
  (BOTH == desired) || (BOTH == has) || (desired == has)
end
merge(type1, type2) click to toggle source
# File lib/constant/av.rb, line 12
def self.merge(type1, type2)
  return type1 unless type2 && type1 != type2
  BOTH
end