def foo?
Object.new
end
foo?.class
since "foo?" is a valid method it would conflict with "?."Edit: with ".?" looks like "foo?.?class"
Edit 2: side note, this would never pass a code review, the expectation of "foo?" is that it returns true/false.