title: How can I logically OR two include? conditions in Ruby?
body: <p>I am starting learn Ruby, need some help with the include? method.</p>
  
  <p>The below code works just fine:</p>
  
  <pre><code>x = 'ab.c'
  if x.include? "." 
      puts 'hello'
  else
      puts 'no'
  end
  </code></pre>
  
  <p>But when I code it this way:</p>
  
  <pre><code>x = 'ab.c'
  y = 'xyz'
  if x.include? "." || y.include? "."
      puts 'hello'
  else
      puts 'no'
  end
  </code></pre>
  
  <p>If gives me error when I run it:</p>
  
  <pre><code>test.rb:3: syntax error, unexpected tSTRING_BEG, expecting keyword_then or ';' o
  r '\n'
  if x.include? "." || y.include? "."
                                   ^
  test.rb:5: syntax error, unexpected keyword_else, expecting end-of-input
  </code></pre>
  
  <p>Is this because the include? method cannot have handle logic operator?</p>
  
  <p>Thanks</p>