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

Version Path
tagen-1.1.7 lib/tagen/audioinfo.rb
tagen-1.1.6 lib/tagen/audioinfo.rb
tagen-1.1.5 lib/tagen/audioinfo.rb
tagen-1.1.4 lib/tagen/audioinfo.rb
tagen-1.1.3 lib/tagen/audioinfo.rb
tagen-1.1.2 lib/tagen/audioinfo.rb
tagen-1.1.1 lib/tagen/audioinfo.rb
tagen-1.1.0 lib/tagen/audioinfo.rb
tagen-1.0.4 lib/tagen/audioinfo.rb
tagen-1.0.3 lib/tagen/audioinfo.rb
tagen-1.0.2 lib/tagen/audioinfo.rb
tagen-1.0.1 lib/tagen/audioinfo.rb
tagen-1.0.0 lib/tagen/audioinfo.rb
tagen-0.2.5 lib/tagen/audioinfo.rb
tagen-0.2.4 lib/tagen/audioinfo.rb
tagen-0.2.3 lib/tagen/audioinfo.rb