Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In generate_module.rb 'bumpy' and 'camel' naming conventions are exchanged. #523

Open
deltalejo opened this issue Sep 19, 2020 · 3 comments

Comments

@deltalejo
Copy link

Lets say I want to create the module super useful module using bumpy case, I would run something like:

ruby generate_module.rb -n"bumpy" "super useful module"

I expect the module to be named SuperUsefulModule but instead it is named superUsefulModule (first letter is not capitalized and it should be.).
Then, if I want to create the same module using camel case, I would run something like:

ruby generate_module.rb -n"camel" "super useful module"

I expect the module to be named superUsefulModule but instead it is named SuperUsefulModule (first letter is capitalized and it should not be).

@mvandervoord
Copy link
Member

Does it not match the documentation or this functionality elsewhere? Camel-case usually starts with a capital (the head of the camel) and bumpy case just has bumps in it?

@deltalejo
Copy link
Author

This is the only documentation I found. Actual functionality and documentation does not match.

@mvandervoord
Copy link
Member

Thanks for pointing that out. Also, after you brought this all up, I jumped on Wikipedia and noticed their official entry on camel case matches our documentation, not our code. So I apologize. You are correct and I'll definitely get on fixing this. :)

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

No branches or pull requests

2 participants