doc/syntax/literals.rdoc: explain #@foo
and #$foo
This commit is contained in:
parent
a9ff390870
commit
2e947bc181
@ -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:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user