Class: Ffprober::FfprobeVersion

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.invalid?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/ffprober/ffprobe_version.rb', line 9

def self.invalid?
  !new.valid?
end

.valid?Boolean

Returns:

  • (Boolean)


14
15
16
17
18
# File 'lib/ffprober/ffprobe_version.rb', line 14

def self.valid?
  new.valid?
rescue NoFfprobeFound
  false
end

.versionObject



26
27
28
# File 'lib/ffprober/ffprobe_version.rb', line 26

def self.version
  new.version
end

Instance Method Details

#valid?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/ffprober/ffprobe_version.rb', line 21

def valid?
  validator.valid?
end

#versionObject



31
32
33
# File 'lib/ffprober/ffprobe_version.rb', line 31

def version
  Ffprober::Ffmpeg::Version.new
end