tiy-houston-q1-rails / day-3

Classes (data + behavior)
0 stars 0 forks source link

LeRoy Day - 3 #4

Open leroyg opened 9 years ago

leroyg commented 9 years ago

https://gist.github.com/leroyg/a4e28959bd33a38e26df

jwo commented 9 years ago

instead of

class ActorUnit < Robot
  def change_name(new_name)
    @name = (new_name)
  end
end 

You'll want to do assignment like the following. Excellent job!

class ActorUnit < Robot
  def change_name(new_name)
    @name = new_name
  end
end