首页 > ruby > ruby内嵌表达式

ruby内嵌表达式

2010年7月7日 发表评论 阅读评论

可以用#{}内嵌表达式,如:

  1. ruby> var“ abc ”
  2. “ abc ”
  3. ruby> “1234#{var}5678″
  4. “1234 abc 5678″


分类: ruby 标签:
  1. 本文目前尚无任何评论.
  1. 本文目前尚无任何 trackbacks 和 pingbacks.
      
                  
      

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word