Class: AudioInfo
Overview
-
gem: ruby-audioinfo
Class Method Summary collapse
-
.file?(path) ⇒ Boolean
check if it is a audio file?.
-
.type(path) ⇒ String
get a file’s type.
Class Method Details
.file?(path) ⇒ Boolean
check if it is a audio file?
12 13 14 |
# File 'lib/tagen/audioinfo.rb', line 12 def file? path SUPPORTED_EXTENSIONS.include? File.extname(path) end |
.type(path) ⇒ String
get a file’s type
20 |
# File 'lib/tagen/audioinfo.rb', line 20 def type path; File.extname(path) end |