nahi/jrubyfx — pull request #7 by byteit101 (2013-01-05 20:32:40+00:00)
Title: Enum translation automagic

I noticed the init_style= rubification hack, so decided to clean it up a bit.
All enums can be auto-detected from symbols/strings, and it dynamically finds all Enums in JavaFX, patches them to support convert_ruby, and overrides each method with one argument (which is most likely a setter) to call convert_ruby. Supports everything. Some enums have overrides (shortcuts)

Before:

stage.init_modality = Modality::APPLICATION_MODAL

now:

stage.init_modality = :application_modal

or:

stage.init_modality = :application