Sha256: 57aaf5c6aa7a1c2d61e2e76824e1d0e030b0363f28a87d9209dc8524c84bbcbd
Contents?: true
Size: 446 Bytes
Versions: 1
Compression:
Stored size: 446 Bytes
Contents
#!/usr/bin/env ruby require 'rubygems' require 'ppcurses' intAction = PPCurses::GetIntegerAction.new("Input Integer : "); stringAction = PPCurses::GetStringAction.new("Input your nme: "); action = PPCurses::GetDataAction.new( [intAction, stringAction] ) def doIntegerAction(action) action.show() action.execute() end screen = PPCurses::Screen.new() screen.run { doIntegerAction(action) } puts "Value input was: " + action.data().to_s()
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ppcurses-0.0.14 | test/getDataAction.rb |