Sha256: 8b7dfdd5eccf905f27627642098be3fed3eaf4dd63e6d214398f9a1c0370b731

Contents?: true

Size: 587 Bytes

Versions: 5

Compression:

Stored size: 587 Bytes

Contents

# frozen_string_literal: true

require 'ehbrs/music/album'
require 'ehbrs/tools/runner/fs/selected'

module Ehbrs
  module Tools
    class Runner
      class Music
        class Selected < ::Ehbrs::Tools::Runner::Fs::Selected
          protected

          def directory_label(directory)
            path_to_album(directory).to_label
          end

          def directory_target_basename(directory)
            path_to_album(directory).id
          end

          def path_to_album(path)
            ::Ehbrs::Music::Album.new(path)
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ehbrs-tools-0.29.0 lib/ehbrs/tools/runner/music/selected.rb
ehbrs-tools-0.28.3 lib/ehbrs/tools/runner/music/selected.rb
ehbrs-tools-0.28.2 lib/ehbrs/tools/runner/music/selected.rb
ehbrs-tools-0.28.1 lib/ehbrs/tools/runner/music/selected.rb
ehbrs-tools-0.28.0 lib/ehbrs/tools/runner/music/selected.rb