Recipe 1.7. Converting Between Strings and Symbols
摘要:
To turn a symbol into a string, use Symbol#to_s, or Symbol#id2name, for which to_s is an alias.[代码]Output:a_symbol AnotherSymbol Yet another symbol!You usually reference a symbol by just typing ... 阅读全文
posted @ 2009-11-05 22:57 Ray Z 阅读(183) 评论(0) 推荐(0) 编辑