Class: Ffprober::Ffmpeg::VersionValidator
- Inherits:
-
Object
- Object
- Ffprober::Ffmpeg::VersionValidator
- 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
-
#initialize(ffmpeg_version) ⇒ VersionValidator
constructor
A new instance of VersionValidator.
- #valid? ⇒ Boolean
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
17 18 19 |
# File 'lib/ffprober/ffmpeg/version_validator.rb', line 17 def valid? ffmpeg_version.nightly? || version_requirement_statisfied? end |