Built-in data type Symbols in Ruby

Coming from other languages and start to learn ruby, you will find a strange concept in ruby which is Symbols. Symbols are like strings, except they are code. Symbols is one of the most basic object you can create in ruby. The main different is that each time you use a string, ruby will create…