Hashes in Ruby Discussion
If we use h = HashWithIndifferentAccess.new({key: "value"})
it will allow us to access the value through both h[:key]
and h["key"]
.
Hey Yago, while this is true, HashWithIndifferentAccess is only available via ActiveSupport. This section of the learning path is focused purely on Ruby.
Thanks Collin! I like the #dig method! : )
It's a good one for sure! ;)
i didn't even know something like that existed until now. Really cool method
I am coming from javascript and most of the concepts are similar but you do an amazing job explaining everything. Good job!
Thank you so much, Gabriel!
Great series collin, very informative and interactive for beginners
Hey thanks Amit! Glad you are enjoying it.