doc/syntax/literals.rdoc: explain #@foo and #$foo

This commit is contained in:
Yusuke Endoh 2020-09-29 14:39:21 +09:00
parent a9ff390870
commit 2e947bc181

View File

@ -143,6 +143,9 @@ Double-quote strings allow interpolation of other values using
Any expression may be placed inside the interpolated section, but it's best to
keep the expression small for readability.
You can also use <tt>#@foo</tt> and <tt>#$foo</tt> as a shorthand for,
respentively, <tt>#{ @foo }</tt> and <tt>#{ $foo }</tt>.
Interpolation may be disabled by escaping the "#" character or using
single-quote strings: