Sha256: 65de6ae7ee2c3b78844606db21e6dad53631ef25350a794542063c01de801d6f
Contents?: true
Size: 427 Bytes
Versions: 1
Compression:
Stored size: 427 Bytes
Contents
module Ffprober module Parsers class File def initialize(file_to_parse, exec=Ffprober::Ffmpeg::Exec.new) unless ::File.exist?(file_to_parse) fail ArgumentError.new("File not found #{file_to_parse}") end @file_to_parse = file_to_parse @exec = exec end def load Ffprober::Parsers::Json.new(@exec.json_output(@file_to_parse)) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ffprober-0.5.1 | lib/ffprober/parsers/file.rb |