...
Code Block | ||||
---|---|---|---|---|
| ||||
somevar = <<
The average of #{a} and #{b} is #{(a + b)/2}
>>; |
The value of somevar
would be "The average of 10 and 20 is 15."
Info | ||
---|---|---|
| ||
If you try to insert non-scalar values into a string using the beesting syntax, only their types will be printed. For a non-scalar, use the |