DEV Community

Hashes and symbols in Ruby

Damien Cosset on October 11, 2018

Introduction In this article, we'll keep exploring hashes and we'll discover what symbols are. For a refresher on hashes, I wrote this. ...
Collapse
 
chenge profile image
chenge • Edited

Another, fetch(key, default) is a good method for hash.

Collapse
 
mudlabs profile image
Sam

Snakecase?

so_😎_cool = "So 😎 cool"
puts so_😎_cool # puts So 😎 cool