Sha256: 8cc56429a5401cebee8519bf6a86cdd8811d89ceaf3a64b65ff712ec066543dd
Contents?: true
Size: 317 Bytes
Versions: 2
Compression:
Stored size: 317 Bytes
Contents
#!/usr/bin/env ruby require 'rubygems' require_relative '../lib/ppcurses.rb' action = PPCurses::GetIntegerAction.new('Input Integer : ') 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}"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ppcurses-0.1.1 | test/getIntegerAction.rb |
ppcurses-0.1.0 | test/getIntegerAction.rb |