`
kevinye
  • 浏览: 37081 次
文章分类
社区版块
存档分类
最新评论

symbol

 
阅读更多

A symbol looks like a variable symbols
name, but it’s prefixed with a colon. Examples of symbols include :action,
:line_items, and :id. You can think of symbols as string literals that are
magically made into constants. Alternatively, you can consider the colon
to mean “thing named” so :id is “the thing named id.”

 

 



分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics