Method: NycToday::CLI#end_of_list

Defined in:
lib/nyc_today/cli.rb

#end_of_listObject



179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
# File 'lib/nyc_today/cli.rb', line 179

def end_of_list
  puts "\nYou've reached the end of the #{category} events list. Would you like to see it again? (Y/n)"
  input = gets.strip.downcase
  if input == "y" || input == "yes"
    @@set_no = 0
    list_events
  elsif input == "n" || input == "no"
    puts "\nReturning to main menu..."
    sleep 1
    reset_menu
  else
    error
    end_of_list
  end
end