Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 310 Bytes

shortcut-variable-interpolation.md

File metadata and controls

16 lines (10 loc) · 310 Bytes

Shortcut variable interpolation

@instance = :instance
@@class = :class
$global = :global

p "#@instance, #@@class, and #$global variables don't need braces"

# Result:
# "instance, class, and global variables don't need braces"

View Source