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?
we are supposed to fix the code!!! NOT write a new one....
Elegant.
This way you ensure the string spans from beginning to the end with just one letter. Otherwise you would match any string with a vowel, for example 'codewars'. Because of the above, your solution wouldn't work with the current test set.
It'll return false, as it wouldn't be a valid tail:
make sure that the second argument (tail), is the same as the last letter of the first argument (body)
smepple 119 Style...disclaimer number could change anytime..!!! :)
What if tail.length > 1?
this is the best
Love it!
Wow, this is a clever way to use the send mehtod!!!
That is the splat operator - in this context - used for array coercion. You delve deeper here: https://endofline.wordpress.com/2011/01/21/the-strange-ruby-splat/
This comment is hidden because it contains spoiler information about the solution
It shouldn't be possible to require
active_support
in my opinion. It's not in the standard library.Thanks
Loading more items...