The anticipated outcome of using Ruby's match operator on a nil value is a TypeError because nil does not have the methods required to perform the match operation.
Please start posting anonymously - your entry will be published after you log in or create a new account.
This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss