class FLACsmith::Metadata::Builder
Builds metadata for all file of a given path.
Attributes
paths[R]
Public Class Methods
new(path)
click to toggle source
# File lib/flacsmith/metadata/builder.rb, line 13 def initialize path @paths = path.files "**/*.flac" end
Public Instance Methods
call(= files.each { |file| Tagger.new(file).update file.tags })
click to toggle source
# File lib/flacsmith/metadata/builder.rb, line 17 def call = files.each { |file| Tagger.new(file).update file.tags } private def files = paths.map { |path| File.new path } end end
files(= paths.map { |path| File.new path })
click to toggle source
# File lib/flacsmith/metadata/builder.rb, line 21 def files = paths.map { |path| File.new path } end