src/classes.rb
def options_menu(noteboard)
    @start_prompt = TTY::Prompt.new
        @start_prompt.select("What do you want to do now?") do |menu|
            menu.choice "Load existing noteboards", -> {noteboard_menu}
            menu.choice "Add new note", -> {Noteboard.noteboard_add(add_note)}
            menu.choice "Delete note", -> {Noteboard.noteboard_delete(delete_note)}
            menu.choice "Back", -> {StartMenu.new}
        end
end
# Options menu that methods should loop back into
Options menu that methods should loop back into
Options menu that methods should loop back into
def options_menu(noteboard)
    @start_prompt = TTY::Prompt.new
        @start_prompt.select("What do you want to do now?") do |menu|
            menu.choice "Load existing noteboards", -> {noteboard_menu}
            menu.choice "Add new note", -> {Noteboard.noteboard_add(add_note)}
            menu.choice "Delete note", -> {Noteboard.noteboard_delete(delete_note)}
            menu.choice "Back", -> {StartMenu.new}
        end
end
def options_menu ( noteboard ) @start_prompt = TTY :: Prompt . new @start_prompt . select ( "What do you want to do now?" ) do | menu | menu . choice "Load existing noteboards" , -> { noteboard_menu } menu . choice "Add new note" , -> { Noteboard . noteboard_add ( add_note ) } menu . choice "Delete note" , -> { Noteboard . noteboard_delete ( delete_note ) } menu . choice "Back" , -> { StartMenu . new } end end
Options menu that methods should loop back into
Options menu that methods should loop back into
noteboard