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 believe it is to do with the readibility. It's almost English !!!
i dont see the point of this kata
A joke but not a kata: only one test case...
I think this code is clever because it is the type of code that is not typically on people's radar when they're first learning to code in Ruby on Rails. I know this because I'm a total newbie at this and the first lessons you learn with Ruby are if/elsif/else statements. Using these if/elsif/else statements is therefore the thing that many newbies will be most inclined to use for an assignment like this. This "when" command followed by a range is not something taught very often in your first classes with Ruby and it is the type of free-and-easy code that belies extensive experience with the language. So my thinking goes.
I can't tell you why :( It's just a basic Ruby specific feature, not "Obscure" or "Creative" xD !!
Please tell me why this is marked "clever".