The code below is not working the way I’d like and I can’t figure out
It returns the error “undefined local variable or method `triggers’”.
But I have defined triggers as an array. What am I not getting?
triggers = Array.new
puts “Please enter program that you want to trigger the power
puts “Do you have other programs you want to trigger the power
management switch? [y/n]”
answer = gets.chomp.downcase
if answer == “y”
puts “Okay, triggering progams list is complete.”