So, I have a list of arrays, and I want to loop through the list of arrays, and send a array into the method, and sleep for the amount of notes in the array I’m sending in.
I have been looking for documentation on it, and I can’t find it. The RubyDocs page I found on the array doesn’t have size or length or count that I can find.
I found a workaround where I loop through and count on a variable, then use that, but there has to be a better way. I’m doing this to refactor code, and though I made it modular, I didn’t exactly shrink my code line count at all, so I want a more elegant solution if possible.
Can someone point me in the direction of some documentation?
Edit: Since most of them in the sequence are 2, 3, or 4, I’m going to hardcode them for now, but I would like to figure out how to get the count dynamically still if possible.