摘要: http://www.troubleshooters.com/codecorn/ruby/symbols.htmRuby 里的Symbol概念的讲解,What are symbols?It's a string. No it's an object. No it's a name.puts :Steve.class # output : Symbol ClassSymbol can not change at runtimeWhat can symbols do for you?A symbol is a way to pass string information, 阅读全文
posted @ 2013-05-04 17:27 卜海清 阅读(206) 评论(0) 推荐(0)