test/getBooleanAction.rb in ppcurses-0.0.21 vs test/getBooleanAction.rb in ppcurses-0.0.22
- old
+ new
@@ -4,13 +4,13 @@
require_relative '../lib/ppcurses.rb'
action = PPCurses::GetBooleanAction.new('Is the sky blue? ')
def do_boolean_action(action)
- action.show()
- action.execute()
+ action.show
+ action.execute
end
-screen = PPCurses::Screen.new()
+screen = PPCurses::Screen.new
screen.run { do_boolean_action(action) }
-puts 'Value input was: ' + action.data()
+puts 'Value input was: ' + action.data