Content deleted Content added
|
|
'J. Random Hacker' => '553-1337'
}
<code>phonebook['John Doe'] </code>; #produces <codethis -> '555-1212' </code>▼
</source>
▲<code>phonebook['John Doe']</code> produces <code>'555-1212'</code>
Ruby supports hash looping and iteration with the following syntax:
|