Git Product home page Git Product logo

Comments (3)

ls1955 avatar ls1955 commented on June 18, 2024

If this issue is still open, I will like to be assign to work on this issue.

While playing around GeneratorHelp#to_capitalized(input), I noticed that it perform camel-casing on '-', where String#camelcase does not. Perhaps I am missing something?

to_capitalized("eiffel-tower") # => "EiffelTower"
"eiffel-tower".camelcase # => "Eiffel-tower"

from crystal.

meatball133 avatar meatball133 commented on June 18, 2024

Seems like I didn't think it through all the way but the to_capitalized method in GeneratorHelp can still be simplified. Since what has to happen is the - has to be replaced by _. And then running Cammelcase on that will make it into what to expect. And that would make that method quite light which would be nice. So if you like you could update that method and replace to use the underscore method elsewhere.

from crystal.

ls1955 avatar ls1955 commented on June 18, 2024

Guess I would begin working on this issue, then. :D

from crystal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.