Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

snake_case method better handles numbers. #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jonhiggs
Copy link

"Ec2Instance".snake_case will now return 'ec2_instance' instead of 'ec2instance'.

@jonhiggs
Copy link
Author

It seems travis isn't able to run the specs. I guess it's because of the same reason I couldn't initially run the tests either. I've hacked the Rakefile and added a Gemfile but as you requested pull requests to not touch the rake tasks I've left that commit out. You can find it at jonhiggs@8b22c4d if you are interested.

@dkubb
Copy link
Member

dkubb commented Jul 11, 2014

@jonhiggs If all you need is inflection, a better library is probably https://github.com/mbj/inflecto which was extracted from extlib.

@jonhiggs
Copy link
Author

Cheers. I had a quick look and it seems to be what I'm after. I didn't know it was called inflection. Thanks again.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants