Examveda

What is the correct syntax for string interpolation in Ruby?

A. "#{variable}"

B. $(variable)

C. %(variable)

D. variable.to_string

Answer: Option A


This Question Belongs to Ruby Programming >> Basic Syntax In Ruby

Join The Discussion

Related Questions on Basic Syntax in Ruby