Sha256: daaf280ad47ef6cf5b5b314306f3f13c4291d500ffd694766bf4fe6af454f81f

Contents?: true

Size: 616 Bytes

Versions: 15

Compression:

Stored size: 616 Bytes

Contents

# frozen_string_literal: true

require 'ehbrs_ruby_utils/music/ous/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)
            ::EhbrsRubyUtils::Music::Ous::Album.new(path)
          end
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
ehbrs-tools-0.43.0 lib/ehbrs/tools/runner/music/selected.rb
ehbrs-tools-0.42.0 lib/ehbrs/tools/runner/music/selected.rb
ehbrs-tools-0.39.1 lib/ehbrs/tools/runner/music/selected.rb
ehbrs-tools-0.39.0 lib/ehbrs/tools/runner/music/selected.rb
ehbrs-tools-0.38.0 lib/ehbrs/tools/runner/music/selected.rb
ehbrs-tools-0.37.0 lib/ehbrs/tools/runner/music/selected.rb
ehbrs-tools-0.36.0 lib/ehbrs/tools/runner/music/selected.rb
ehbrs-tools-0.35.1 lib/ehbrs/tools/runner/music/selected.rb
ehbrs-tools-0.35.0 lib/ehbrs/tools/runner/music/selected.rb
ehbrs-tools-0.34.0 lib/ehbrs/tools/runner/music/selected.rb
ehbrs-tools-0.33.0 lib/ehbrs/tools/runner/music/selected.rb
ehbrs-tools-0.32.0 lib/ehbrs/tools/runner/music/selected.rb
ehbrs-tools-0.31.1 lib/ehbrs/tools/runner/music/selected.rb
ehbrs-tools-0.31.0 lib/ehbrs/tools/runner/music/selected.rb
ehbrs-tools-0.30.0 lib/ehbrs/tools/runner/music/selected.rb