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

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

c# - Create a Notification Object (Email or Page) At Run Time -- Dependency Injection or Factory -

Set Up Of Common Name Of SSL Certificate To Protect Plesk Panel -