test/displayMenu.rb in ppcurses-0.0.20 vs test/displayMenu.rb in ppcurses-0.0.21

- old
+ new

@@ -1,15 +1,15 @@ #!/usr/bin/env ruby require 'rubygems' require_relative '../lib/ppcurses.rb' -def displayMenu() - mainMenu = PPCurses::Menu.new( [ "Press", "<ESCAPE>", "to Quit" ], nil ) - mainMenu.show() - mainMenu.getMenuSelection() - mainMenu.close() +def display_menu + main_menu = PPCurses::Menu.new( [ 'Press', '<ESCAPE>', 'to Quit'], nil ) + main_menu.show() + main_menu.menu_selection() + main_menu.close() end screen = PPCurses::Screen.new() -screen.run { displayMenu() } +screen.run { display_menu() }