红宝石中%@ ... @的含义是什么?

abe*_*008 2 ruby ruby-on-rails

themes.rb中,包含以下代码%@ @:

 %@
 $has_bg_image: #{theme.has_bg_image?};
 $bg_color: ##{theme.bg_color};
 $fg_color: ##{theme.fg_color};
 $bg_image_url: '/_files/themes/bg_image/#{theme.group_id}/#     {theme.id}/#{theme.version}.png';
 $topbar_color: ##{theme.topbar_color};
 $logo_url: '/_files/groups/logo/#{theme.group_id}/#  {theme.version}.png';
 $view_bg_color: ##{theme.view_bg_color};
 $brand_color: ##{theme.brand_color};
 $fluid: #{theme.fluid};
 $bg_shadow:      #999;
 @
Run Code Online (Sandbox Code Playgroud)

我能找到哪些关于语法的参考?我不知道这是尴尬如何搜索特殊字符,例如%@googleSO!

rdu*_*bya 5

该语法将使用插值创建一个字符串,其中包含两个"@"字符之间的所有文本.您可以在"%"之后使用任何分隔符,只要它与文本中的字符不冲突即可.以下是它的参考:http://www.zenspider.com/Languages/Ruby/QuickRef.html#strings