http://www.troubleshooters.com/codecorn/ruby/symbols.htm
Ruby 里的Symbol概念的讲解,
What are symbols?
It's a string. No it's an object. No it's a name.
puts :Steve.class # output : Symbol Class
Symbol can not change at runtime
What can symbols do for you?
A symbol is a way to pass string information, always assuming that:
- The string needn't be changed at runtime.
- The string doesn't need methods of class String.