Conversation
|
Also Tiger assignment. |
|
@mee213 looks great! perfect execution. |
There was a problem hiding this comment.
With class variables, just doing is enough to initialize them. so your def initialize isn't needed
@@allvehicles = []|
Not sure I understand your comment on Eagle exercise #1... when then does array get appended with new instance? |
|
Oh, is this what you meant, taking out the line? |
|
Nope: Remove: def initialize
@@allvehicles << self
endAnd keep @@allvehicles = [] |
|
OK, I've made the change, but still not clear... I understand I've created an empty array, but I don't understand how it gets populated? |
|
OK, my apologies :( This is perfectly fine def initialize
@@allvehicles << self
endI thought you were doing this (which is quite common) def initialize
@@allvehicles << []
endSooooo. yeah. Everything was good on yours except the matching |
|
ok... what do you mean by "except the matching"? |
I meant this comment #18 (comment) |
|
Ok! Got it. |
Hi Jesse, here's Panda assignment for Episode 6 of Ruby Newbie. Thanks! ~Marlo