I have a variable in Ruby:
A='a\-b'
puts A
it will print out:
a\-b
Without using gsub to directly change content of this variable, how can I get Ruby to print out
a-b
as though as I was doing
A="a\-b"
and put the result in a variable?