rubocop got angry ... scary ...
C: Style/FormatStringToken: Prefer annotated tokens (like %<foo>s) over unannotated tokens (like %s).
format('number: %03d', 1)
^^^^
In format, you can set the argument specification using hash, so avoid it there.
format("number: %03<number>d", number: 1)
#=> "number: 001"
Recommended Posts