Project

General

Profile

Bug #10671 ยป ruby-changes.patch

yihangho (Yihang Ho), 12/29/2014 02:39 AM

View differences:

doc/syntax/literals.rdoc (working copy)
:"my_symbol1"
:"my_symbol#{1 + 1}"
Note that symbols are never garbage collected so be careful when referencing
symbols using interpolation.
Like strings, a single-quote may be used to disable interpolation:
:'my_symbol#{1 + 1}' #=> :"my_symbol\#{1 + 1}"
    (1-1/1)