I have implemented the variant that uses regular captures rather than named
captures, based on the group counter hack.
We have a similar improvement of 6x, and the code reads better I believe:
https://gist.github.com/1808549
Also, I've added a sanity check to the script that ensures the current
inflector in AS and the one in the script give the same plurals for the
entire /usr/share/dict/words.
Yeah, I think we should do this.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Core" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en.