Sha256: efb98962364254410d5cfa9878ba1bd98e71f880c865b3dec19a7bdbbe8c105d

Contents?: true

Size: 326 Bytes

Versions: 1

Compression:

Stored size: 326 Bytes

Contents

#!/usr/bin/env ruby

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

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

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

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ppcurses-0.0.21 test/getBooleanAction.rb