Sha256: 3251251b20905eb73fd0e6d8f08ef56b44f7cb6cd0e29c90a90124a37a0b71de

Contents?: true

Size: 325 Bytes

Versions: 4

Compression:

Stored size: 325 Bytes

Contents

#!/usr/bin/env ruby

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

action = PPCurses::GetBooleanAction.new("Is the sky blue? ");

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

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

puts "Value input was: " + action.data()  

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ppcurses-0.0.20 test/getBooleanAction.rb
ppcurses-0.0.19 test/getBooleanAction.rb
ppcurses-0.0.18 test/getBooleanAction.rb
ppcurses-0.0.17 test/getBooleanAction.rb