Discussion Forum : Ruby Basics
Question - Which sequence can be used to substitute the value of any ruby expression in a string?
Options:
A .  #(expr)
B .  #{expr}
C .  #expr
D .  None of the mentioned
Answer: Option B


#{expr} is valid.



Was this answer helpful ?
Next Question
Submit Your Solution hear:

Your email address will not be published. Required fields are marked *