class Ffprober::Parsers::FileParser
Public Class Methods
new(file_to_parse, exec = Ffprober::Ffmpeg::Exec.new)
click to toggle source
# File lib/ffprober/parsers/file.rb, line 15 def initialize(file_to_parse, exec = Ffprober::Ffmpeg::Exec.new) raise ArgumentError, "File not found #{file_to_parse}" unless ::File.exist?(file_to_parse) @file_to_parse = file_to_parse @exec = exec end
Public Instance Methods
load()
click to toggle source
# File lib/ffprober/parsers/file.rb, line 23 def load JsonParser.new(@exec.json_output(@file_to_parse)) end