Sha256: 535fb627a48c16c59c1b3cabfd6656303ff1ecd67ddc137b7cbc73a29ad5268c

Contents?: true

Size: 480 Bytes

Versions: 5

Compression:

Stored size: 480 Bytes

Contents

#!/usr/bin/env ruby

require 'rubygems'
require_relative '../lib/ppcurses.rb'

integer_action = PPCurses::GetIntegerAction.new("Input Integer : ")
string_action = PPCurses::GetStringAction.new("Input your name: ")

action = PPCurses::GetDataAction.new( [integer_action, string_action] )

def do_integer_action(action)
  action.show()
  action.execute()
end

screen = PPCurses::Screen.new()
screen.run { do_integer_action(action) }

puts 'Value input was: ' + action.data().to_s()

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ppcurses-0.0.25 test/getDataAction.rb
ppcurses-0.0.24 test/getDataAction.rb
ppcurses-0.0.23 test/getDataAction.rb
ppcurses-0.0.22 test/getDataAction.rb
ppcurses-0.0.21 test/getDataAction.rb