Sha256: 6fb5f5235b156c60fb5b893c1dcb32c276600155bb2a981fb2437b627ddec75c

Contents?: true

Size: 447 Bytes

Versions: 2

Compression:

Stored size: 447 Bytes

Contents

module Tagomatic

  class TagSetter

    def initialize(options)
      @options = options
    end

    def process(tags_hash)
      tags_hash[:a] if @options[:artist]
      tags_hash[:b] if @options[:album]
      tags_hash[:d] if @options[:discnum]
      tags_hash[:g] if @options[:genre]
      tags_hash[:n] if @options[:tracknum]
      tags_hash[:t] if @options[:title]
      tags_hash[:y] if @options[:year]
      tags_hash
    end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tagomatic-0.1.9 lib/tagomatic/tag_setter.rb
tagomatic-0.1.8 lib/tagomatic/tag_setter.rb