Class: Ehbrs::Tools::Runner::Music::Spread

Inherits:
Object
  • Object
show all
Defined in:
lib/ehbrs/tools/runner/music/spread.rb

Instance Method Summary collapse

Instance Method Details

#albumsObject



31
32
33
34
35
# File 'lib/ehbrs/tools/runner/music/spread.rb', line 31

def albums
  parsed.albums.map do |path|
    ::EhbrsRubyUtils::Music::Ous::Album.new(path)
  end
end

#runObject



17
18
19
20
21
22
23
24
25
# File 'lib/ehbrs/tools/runner/music/spread.rb', line 17

def run
  spreader.result.each do |album|
    if parsed.ids?
      out("#{album.id}\n")
    else
      puts album.to_label
    end
  end
end

#spreader_uncachedObject



27
28
29
# File 'lib/ehbrs/tools/runner/music/spread.rb', line 27

def spreader_uncached
  ::EhbrsRubyUtils::CircularListSpreader.new(albums)
end