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 -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -