Sha256: 90be7dae57abdf185151b1ed246ac0a1ce1b6e3ed86bc41cd3687f328a38b76d

Contents?: true

Size: 470 Bytes

Versions: 2

Compression:

Stored size: 470 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

2 entries across 2 versions & 1 rubygems

Version Path
ppcurses-0.1.1 test/getDataAction.rb
ppcurses-0.1.0 test/getDataAction.rb