Smart operator for ~ in ruby-modes