Symbols
Learn what symbols are and how to use them in Ruby.
We'll cover the following...
Define symbols
Symbols are similar to strings. Symbols are instances of the Symbol
class, just as strings are instances of the String
class). Here is how we can define a symbol in Ruby:
# assign symbol :something to variable "x"
x
...