mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
doc/syntax/literals.rdoc: explain #@@foo
too [ci skip]
This commit is contained in:
parent
2e947bc181
commit
dcb705ace7
1 changed files with 3 additions and 2 deletions
|
@ -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…
Reference in a new issue