Enumerable#to_a says, that it can take arguments also. Lets try
(1..4).to_a(1,2)
#ArgumentError: wrong number of arguments (2 for 0)Oops! Why then error ? Because Enumerable#to_a called actually Range#each which don't accept any arguments. Now look the below code :-