Skip to content

Instantly share code, notes, and snippets.

@itstommymorgan
Created August 28, 2009 19:09
Show Gist options
  • Save itstommymorgan/177161 to your computer and use it in GitHub Desktop.
Save itstommymorgan/177161 to your computer and use it in GitHub Desktop.
# If I were, say, working on a Swing app in JRuby
# This is code I'd love to be able to write...
main_window.ok_button.when_clicked do |event|
if validate_form
controller.submit_form (form_data)
else
display_error_messages
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment