title: NoMethodError when method is defined in Ruby
body: <pre><code>class PalCheck
    palindromes = [
      "aba",
      "abc"
    ]
    def palindrome?(string)
      string = string.downcase.scan(/\w/)
      string == string.reverse
    end
    palindromes.palindrome?
  end
  </code></pre>
  
  <p>I keep getting a NoMethodError, and I can't figure out why.</p>