From 2e947bc181794d1bcf26d700b2c2c15b53c45b36 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Tue, 29 Sep 2020 14:39:21 +0900 Subject: [PATCH] doc/syntax/literals.rdoc: explain `#@foo` and `#$foo` --- doc/syntax/literals.rdoc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/syntax/literals.rdoc b/doc/syntax/literals.rdoc index e58430e96f..c871d2780d 100644 --- a/doc/syntax/literals.rdoc +++ b/doc/syntax/literals.rdoc @@ -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 #@foo and #$foo as a shorthand for, +respentively, #{ @foo } and #{ $foo }. + Interpolation may be disabled by escaping the "#" character or using single-quote strings: