Actions
Bug #18246
closedsend does not work for unary ! operator when operator isn't a literal symbol
Bug #18246:
send does not work for unary ! operator when operator isn't a literal symbol
Description
Actions
Added by chucke (Tiago Cardoso) almost 5 years ago. Updated almost 5 years ago.
Description
The method you are looking for is ! and not !@. The reason false.send(:!@) works is that :!@ is parsed as :!, that's why the unquoted version works but the quoted version does not. This was determined to be a feature and not a bug in #10463.