Sha256: 2e48243daffe23367cc257e0808e40df9d9a1e425fe340a7f288be6ccb5acfee
Contents?: true
Size: 466 Bytes
Versions: 4
Compression:
Stored size: 466 Bytes
Contents
#!/usr/bin/env ruby require 'rubygems' require_relative '../lib/ppcurses.rb' intAction = PPCurses::GetIntegerAction.new("Input Integer : "); stringAction = PPCurses::GetStringAction.new("Input your name: "); 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ppcurses-0.0.20 | test/getDataAction.rb |
ppcurses-0.0.19 | test/getDataAction.rb |
ppcurses-0.0.18 | test/getDataAction.rb |
ppcurses-0.0.17 | test/getDataAction.rb |