test/getEnumStringAction.rb in ppcurses-0.0.20 vs test/getEnumStringAction.rb in ppcurses-0.0.21

- old
+ new

@@ -1,17 +1,16 @@ #!/usr/bin/env ruby require 'rubygems' require_relative '../lib/ppcurses.rb' -action = PPCurses::GetEnumeratedStringAction.new("Media Type? ", - ["CD", "Vinyl", "MP3"] ); +action = PPCurses::GetEnumeratedStringAction.new('Media Type? ', %w(CD Vinyl MP3)) -def doAction(action) +def do_action(action) action.show() action.execute() end screen = PPCurses::Screen.new() -screen.run { doAction(action) } +screen.run { do_action(action) } -puts "Value input was: " + action.data() +puts 'Value input was: ' + action.data()