lib/ffprober/ffprobe_version.rb in ffprober-0.4.6 vs lib/ffprober/ffprobe_version.rb in ffprober-0.5.1

- old
+ new

@@ -1,21 +1,31 @@ module Ffprober class FfprobeVersion + def self.invalid? + !new.valid? + end + def self.valid? new.valid? + rescue NoFfprobeFound + false end def valid? validator.valid? end - private - - def validator - Ffprober::Ffmpeg::VersionValidator.new(version) + def self.version + new.version end def version Ffprober::Ffmpeg::Version.new + end + + private + + def validator + Ffprober::Ffmpeg::VersionValidator.new(version) end end end