Sha256: fe99431c9c996de255b82f6ac2cbb544d8230e5ef10e31668fc98fa81728d5e4

Contents?: true

Size: 332 Bytes

Versions: 5

Compression:

Stored size: 332 Bytes

Contents

#!/usr/bin/env ruby

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

action = PPCurses::GetEnumeratedStringAction.new('Media Type? ', %w(CD Vinyl MP3))

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

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ppcurses-0.0.25 test/getEnumStringAction.rb
ppcurses-0.0.24 test/getEnumStringAction.rb
ppcurses-0.0.23 test/getEnumStringAction.rb
ppcurses-0.0.22 test/getEnumStringAction.rb
ppcurses-0.0.21 test/getEnumStringAction.rb