Trying to write my own all? method in Ruby
问题 There is a method called all? in Enumerable. I'm trying to learn all the methods of Enumberable's library by writing them myself. This is what I've come up so far for the all? method. I sorta understand it but I got stumped when trying to pass initialized values to my method. EDIT for the record, I'm aware that enum method that I have is not the right way ie, it's hard-coded array. This is for self-learning purposes. I'm just trying to figure out how to pass the initialized values to my all?