Feature #16779
Updated by gearnode (Bryan Frimin) over 5 years ago
It would be great to have if sprintf format option for quoted string for sprintf (like golang sprintf), it's particularly useful to format log for example. Currently we have to do this: ``` ruby sprintf("%s", some_value.inspect.dump) ``` I propose to introduce the `%q` format option which allow to do this: ```ruby sprintf("%q", some_value) ```