title: if VARIABLE in ARRAY ruby
body: <p>I thought this should work:</p>
  
  <pre><code>def setMethod(method)
    if method in @@methods
      ... do something
    end
  end
  </code></pre>
  
  <p>But I keep getting keyword error for <code>in</code></p>