# File lib/modules/menus/submenu_help.rb, line 18 def self.show_choices_sub_menu Menu.request_input_for_menu("sub_help") user_input = "" while not EXIT_SUB_MENU_OPTIONS.include? user_input user_input = gets.chomp case user_input when "0" Menu.show_choices_main_menu when "1" puts "Sub-set - ⊆" MenuHelpers.request_input_continue_for_menu("sub_help") SubmenuHelp.show_choices_sub_menu else MenuHelpers.validate_input_for_menu_kind("sub_help") SubmenuHelp.show_choices_sub_menu end end end
# File lib/modules/menus/submenu_help.rb, line 7 def self.show_sub_menu table = MenuHelpers.terminal_table do |t| t.title = 'Select a number' t.add_row [0, 'Back to main menu'] t.add_row [1, 'Symbols'] t.style = { all_separators: true } end puts table puts '' end