lib/ppcurses/menu/BaseMenu.rb in ppcurses-0.0.20 vs lib/ppcurses/menu/BaseMenu.rb in ppcurses-0.0.21

- old
+ new

@@ -1,19 +1,19 @@ class BaseMenu - def setSubMenu(menu) - @subMenu = menu + def set_sub_menu(menu) + @sub_menu = menu end def hide() @win.clear @win.refresh - @subMenu.hide() if @subMenu + @sub_menu.hide() if @sub_menu end - def getSelectedMenuName() - return @items[@selection] + def selected_menu_name() + @items[@selection] end end