Ruby: symbols vs. strings

Example:

:symbol
Symbols are lightweight, immutable strings.

Solution:

hash = {symbol: "value"}
puts hash[:symbol]  // Outputs: value

Beginner's Guide to Ruby