Week 1 Homework and Slides
Here are the Week 1 Slides.
Here is the Week 1 Homework. After you complete the homework, run ‘rake package’ and email me the generated gem under pkg. Or just zip up the directory and send me the zip file.
Send the homework to aaron.patterson@gmail.com. This homework is due April 11, 2008.
April 2nd, 2008 at 6:49 pm
I used some of the examples in the slides and came up with some really cool stuff. Awesome! I put it up here if anyone wants to see http://rubyurl.com/Dkfq
April 8th, 2008 at 4:36 am
Is there a way to find a method that has been added with “class << var”, as a child, or a method that has been added last? I tried self.methods.last but it seemed that the added method becomes part of the returned .methods array with unshift. Maybe the find would have worked with self.methods.first?
I ended up using rindex, but I still would like to find out if there are any ways to find added methods anonymously. Thanks!
April 8th, 2008 at 11:02 pm
Hey Brian,
Yes, there is a way. You are looking for the “singleton_methods” method, and we will be discussing that tomorrow night!
April 9th, 2008 at 12:27 pm
word!