tiy-houston-q1-rails / day-1

Day 1 Intro to Ruby
0 stars 0 forks source link

$Will Rich - day1 #5

Open BTheKid0226 opened 9 years ago

BTheKid0226 commented 9 years ago

https://gist.github.com/ed2c3d55f5c44e805e5d.git

jwo commented 9 years ago

You're really close with this, nicely done!

Will = { "Rich"=>"Lastname",
"6ft3" => "Height",
"Julie" => "Wife",
"Kids" => 3
}
  1. instead of Will, we should name it will (underscore)
  2. Instead of "Rich"=>"Lastname" it should be "lastname"=>"rich" (key => value)
Movies = Hash.new
Movies = { "Goonies"=>"Sloth", 

In ruby, you can just do this:

movies = { "Goonies"=>"Sloth"}