Skip to content

Instantly share code, notes, and snippets.

@luanrjjj
luanrjjj / symbols.md
Created May 27, 2022 17:34 — forked from ryansobol/symbols.md
Symbols in Ruby

What's a Symbol and why is it imporant?

In Ruby, a Symbol is the most efficient way, in terms of time and memory, to represent a set of characters.

What does a Symbol look like?

Most commonly, a Symbol is a single word prefixed by a colon:

:hello