Is there any way to tune the translator that turns Java-formatted method
names into Ruby-formatted method names? I’m using JAXB-generated classes
for an XML schema to create Ruby bindings and am encountering cases
where the translation is very unintuitive.
For example, “getIndicatedTTPs” is getting turned into
“get_indicated_tt_ps” when I would prefer something like
Obviously I can solve this as a one-off by aliasing the method but “TTP”
is a common term throughout the schema (and therefore the generated
content) so I’d rather just tell it to turn “TTPs” into “ttps” as a
I briefly looked through the JRuby code and Googled but wasn’t able to
find any easy way to hook into it to do this.