1
0
Fork 0
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:
Nobuyoshi Nakada 2020-09-29 15:28:09 +09:00
parent 2e947bc181
commit dcb705ace7
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -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
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>.
You can also use <tt>#@foo</tt>, <tt>#@@foo</tt> and <tt>#$foo</tt> as a
shorthand for, respentively, <tt>#{ @foo }</tt>, <tt>#{ @@foo }</tt> and
<tt>#{ $foo }</tt>.
Interpolation may be disabled by escaping the "#" character or using
single-quote strings: