title: How do I pass a nested hash inside a method?
body: <p>How do I pass a nested hash inside a method? Here is a sample code</p>
  
  <pre><code>MONOPOLY_GAME = { 
    deeds: 
    { 
      boardwalk: 
      {  
        price: 400,
        rent: 50
      },
      atlantic: 
      { 
        price: 260, 
        rent: 22 
      },
      baltic:
      {
        price: 60, 
        rent: 4 
      }
    }
  }
  def rent_for(p)
    return MONOPOLY_GAME[:deeds][:p][:rent]
  end
  
  rent_for(:boardwalk)
  rent_for(:atlantic)
  rent_for(:baltic)
  </code></pre>