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.
Your if sentence is wrong, change to:
EDIT: Brackets are not necessary.
The error means nil has no a method
split
, I think perhaps you want use split with a string value, but your code generate some invalid value(nil) , and then callsplit
, and then post the error. isn't it?EDIT: I've read the description, it said:
If you forgot to validate the type of the argument?
A small suggestion is you should tell author that you are using which language ;-)