Today I Learned

A Hashrocket project

Rubocop doesn't care where you put the underscore


currency_value = 123.45


currency_value = 12345

Rubocop’s first pass:

currency_value = 12_345


currency_value = 123_45

Rubocop won’t fix the underscore position, so long as it’s already present.

Looking for help? Each developer at Hashrocket has years of experience working with Ruby applications of all types and sizes. Contact us and find out how we can help you.