Episode #565
Parameter Destructuring

I don’t often get language envy when looking at non-Ruby programming languages. But lately I’ve been working in some JavaScript projects, and one feature I really like about modern JavaScript is how easy it is to “destructure” associative arrays into separate variables. In this episode, guest chef Brandon Weaver shows us how to emulate that kind of destructuring in Ruby. In the process, we’ll learn more about Ruby’s handy method introspection features. Enjoy!

Members only

Log in below or get 48-hour access for $5.

Need more time? See all available plans.