Class: Ffprober::Ffmpeg::VersionValidator

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/ffprober/ffmpeg/version_validator.rb

Constant Summary collapse

MIN_VERSION =
T.let(Gem::Version.new('0.9.0'), Gem::Version)

Instance Method Summary collapse

Constructor Details

#initialize(ffmpeg_version) ⇒ VersionValidator

Returns a new instance of VersionValidator.



12
13
14
# File 'lib/ffprober/ffmpeg/version_validator.rb', line 12

def initialize(ffmpeg_version)
  @ffmpeg_version = ffmpeg_version
end

Instance Method Details

#valid?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/ffprober/ffmpeg/version_validator.rb', line 17

def valid?
  ffmpeg_version.nightly? || version_requirement_statisfied?
end