Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
I made the ugliest solution ever and now I want to hide it :(
it's...beautiful... any particular reason you chose (1..number-1) vs. (1...number) ?
ah I am new to Ruby as well but I have found that the community is very opinionated and there is a Right Way to do things... a lot of Rubyists will leave the 'return' statements out.
Isn't one of the central tenants of Ruby that you cannot freeze a class?
I don't think the 'return' here is idiomatic ruby (the function will return the value without using 'return')