Created
August 28, 2009 19:09
-
-
Save itstommymorgan/177161 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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