title: Expecting : or ; for array find_all
body: <p>I am not sure where my syntax is wrong here and I'm new to Ruby.</p>
  
  <pre><code>class someClass
    def self.some_method(amount, some_array=[1,2,3,4])        
      if some_array.include?(amount)
        return [amount]
      end
      else
        some_array.sort
        some_array.find_all{[d] d &lt; amount}
      end
    end
  
    some_array.sort
    someArray.find_all{[d] d &lt; amount}
  end
  end
  </code></pre>
  
  <p>I'm getting the error "expected ; or end of line"</p>
  
  <pre><code>syntax error, unexpected tIDENTIFIER, expecting '}' (SyntaxError)
        @validValues = some_array.find_all{[d] d &lt; amount}
  </code></pre>
  
  <p>I know it's probably something stupid that I just don't know about the language yet but I just do not see it.</p>