class AudioFeedManager::Id3Tags
Public Instance Methods
read(file_name)
click to toggle source
# File lib/audio_feed_manager/id3_tags.rb, line 5 def read(file_name) return Tags.blank unless File.exist?(file_name) File.open(file_name, "rb") do |f| tags = ID3Tag.read(f) return Tags.new(title: tags.title, artist: tags.artist) end end