Sha256: 448996e2279cdb757adf1d5cdac69a1d8165dbde780e200aa8067d4511984398
Contents?: true
Size: 374 Bytes
Versions: 16
Compression:
Stored size: 374 Bytes
Contents
require "audioinfo" =begin * **gem**: ruby-audioinfo =end class AudioInfo class << self # check if it is a audio file? # # @param [String] path # @return [Boolean] def file? path SUPPORTED_EXTENSIONS.include? File.extname(path) end # get a file's type # # @param [String] path # @return [String] def type path; File.extname(path) end end end
Version data entries
16 entries across 16 versions & 1 rubygems