Sha256: ee8561a1f384df3dfa97919599ea4ff530b74a8495fb5fd1b5a0f740cc3a3d16
Contents?: true
Size: 318 Bytes
Versions: 2
Compression:
Stored size: 318 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ppcurses-0.1.1 | test/getBooleanAction.rb |
ppcurses-0.1.0 | test/getBooleanAction.rb |