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.
This comment is hidden because it contains spoiler information about the solution
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?
Ruby!
A small suggestion is you should tell author that you are using which language ;-)
all my tests pass, yet when i try to submit, i get the following:
STDERR:
order_word': undefined method
split' for nil:NilClass (NoMethodError)from
block in ' from
block in describe'from
measure' from
describe'from `
'
any suggestions?
This comment is hidden because it contains spoiler information about the solution