Sha256: a0c50766990e62a49cd6b40c36143af4232c85d3b2ce810343b0643f811f3229

Contents?: true

Size: 324 Bytes

Versions: 2

Compression:

Stored size: 324 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

2 entries across 2 versions & 1 rubygems

Version Path
ppcurses-0.1.1 test/getEnumStringAction.rb
ppcurses-0.1.0 test/getEnumStringAction.rb