In ruby % is used to format string.
str % arg → new_str
However I do not get
number = '/javascripts/cache/money.js'.bytes.sum % 4
in this commit https://github.com/rails/rails/commit/f6a6b51ae551b7f936e974cba3ad4b30422d6804
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think this % is Integer modulo.
They may have defined the sum method themselves, which may be the reason for the question?