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.
The $ is just a character in the string. Is there a reason you think it would need to be escaped?
How come the $ does not need to be escaped in this solution?
I thought you were just supposed to debug it LOL
this is the best
Superb!
isArray
is a "class" method ofArray
object. You should useArray.isArray(someArray)
to check is the instance array. Here is a link for documentation.Thanks
This is the so called "ternary operator":
http://www.w3resource.com/ruby/ruby-ternary-operator.php
is a shortcut for:
what does ? and : mean in ruby