Why do I get the following error:
irb >> x == "AN" && arr.include? ("bar")
SyntaxError: (irb):80: syntax error, unexpected tLPAREN_ARG, expecting $end
x == "AN" && arr.include? ("bar")
^
But this works fine:
x == "AN" && (arr.include? ("bar"))
It looks to be doing this: ( x == "AN" && arr.include? ) && ("bar")
. What the ambiguity here?