Have you ever thought about the to_a and to_ary methods for the Array class? Are they the same? Why do we have two similar methods? What is the difference? What about implementations of these methods in classes other than Array? In this article I want to answer these questions. So let’s get started!
What's the difference between to_a and to_ary in Ruby?
