class TheBoards::CLI
Public Instance Methods
call()
click to toggle source
# File lib/the_boards/cli.rb, line 3 def call list_songs menu goodbye end
goodbye()
click to toggle source
# File lib/the_boards/cli.rb, line 36 def goodbye puts "See you next week for more songs!!!" end
list_songs()
click to toggle source
# File lib/the_boards/cli.rb, line 9 def list_songs puts "Today's Hottest Songs:" @songs = TheBoards::Songs.today @songs.each.with_index(1) do |genre, i| puts "#{i}. #{genre.name}" end end