How do I use string.tr to replace double quotes with single ones in Ruby?
'abc "def" ghi'.tr('"', "'") # => abc 'def' ghi
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With