class AlbumGenerator::CLI

Public Instance Methods

generate(song_count = 5) click to toggle source
# File lib/album_generator/cli.rb, line 7
def generate(song_count = 5)
  @generated = Generator.generate(song_count)

  puts "Album Title:  #{@generated.album_title}"
  puts "Artist Name:  #{@generated.artist_name}"
  puts "Artwork File: #{@generated.artwork_file}"
  puts "Songs:"
  @generated.song_names.each_with_index do |song,i|
    puts "#{i}: #{song}"
  end
end