calling a hash value from a method
<p>So I am trying to create a menu class that among other things displays prices.</p>

<p>I am trying to create a method (show_price) that displays the price</p>

<pre><code> class Menu

  def initialize menu =  { pepperoni: 50, vegetariana: 50, mexicana: 50, deluxe: 100 }
    @list = menu
  end


  def show_price item
    item = ":" + "#{item}"
    list[item]
  end


  attr_reader :list

end
</code></pre>

<p>sadly it just gives me nil, does anybody know the right way to do this?</p>