Concat double quotes with String in Ruby -
Concat double quotes with String in Ruby -
i need string double quotes
tried
expectedvalue = "/""+expectedvalue+"/"" but did not worked -
throws below error -
nomethoderror: undefined method `/' "/+expectedvalue+":string please suggest.
probably mean:
expectedvalue = "\""+expectedvalue+"\"" or more in ruby style:
expectedvalue = "\"#{expectedvalue}\"" ruby string concat
Comments
Post a Comment