doc/syntax/literals.rdoc: explain #@@foo
too [ci skip]
This commit is contained in:
parent
2e947bc181
commit
dcb705ace7
@ -143,8 +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
|
Any expression may be placed inside the interpolated section, but it's best to
|
||||||
keep the expression small for readability.
|
keep the expression small for readability.
|
||||||
|
|
||||||
You can also use <tt>#@foo</tt> and <tt>#$foo</tt> as a shorthand for,
|
You can also use <tt>#@foo</tt>, <tt>#@@foo</tt> and <tt>#$foo</tt> as a
|
||||||
respentively, <tt>#{ @foo }</tt> and <tt>#{ $foo }</tt>.
|
shorthand for, respentively, <tt>#{ @foo }</tt>, <tt>#{ @@foo }</tt> and
|
||||||
|
<tt>#{ $foo }</tt>.
|
||||||
|
|
||||||
Interpolation may be disabled by escaping the "#" character or using
|
Interpolation may be disabled by escaping the "#" character or using
|
||||||
single-quote strings:
|
single-quote strings:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user