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)
199 199
  :"my_symbol1"
200 200
  :"my_symbol#{1 + 1}"
201 201

  
202
Note that symbols are never garbage collected so be careful when referencing
203
symbols using interpolation.
204

  
205 202
Like strings, a single-quote may be used to disable interpolation:
206 203

  
207 204
  :'my_symbol#{1 + 1}' #=> :"my_symbol\#{1 + 1}"