lib/nhl_teams/cli.rb
def nhl_team_list
        Team.all.each.with_index(1) do |team, i|
            puts "#{i}. #{team.name}"
        end
        nhl_team_selection
    end
# print out a list of all nhl teams
print out a list of all nhl teams
print out a list of all nhl teams
def nhl_team_list
        Team.all.each.with_index(1) do |team, i|
            puts "#{i}. #{team.name}"
        end
        nhl_team_selection
    end
def nhl_team_list Team . all . each . with_index ( 1 ) do | team , i | puts "#{i}. #{team.name}" end nhl_team_selection end
print out a list of all nhl teams
print out a list of all nhl teams