Sha256: 26aabfa376b94b4d86cc4c49cb94e0ed50dc521181ee7d072f6878140a6d13f5
Contents?: true
Size: 273 Bytes
Versions: 4
Compression:
Stored size: 273 Bytes
Contents
require "curses" class GetIntegerAction < PromptAction def execute() x = @parent.winPadding() y = @win.cury() begin @win.setpos(y,x) @win.clrtoeol() @win.addstr(@prompt) @data = @win.getstr() end while not @data =~ /^\d+$/ end end
Version data entries
4 entries across 4 versions & 1 rubygems