lib/ppcurses/actions/GetIntegerAction.rb in ppcurses-0.0.20 vs lib/ppcurses/actions/GetIntegerAction.rb in ppcurses-0.0.21

- old
+ new

@@ -1,17 +1,18 @@ require_relative 'PromptAction.rb' +#noinspection RubyResolve module PPCurses class GetIntegerAction < PromptAction - def execute() + def execute y = @win.cury() - @data = "" + @data = '' begin - @win.setpos(y,xPadding()) + @win.setpos(y,x_padding()) @win.clrtoeol() - @win.box("|", "-") + @win.box('|', '-') @win.addstr(@prompt) echo @data = @win.getstr() noecho end while not @data =~ /^\d+$/