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.

4 Responses to “Week 1 Homework and Slides”

  1. bthatswho Says:

    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

  2. bthatswho Says:

    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!

  3. Aaron Patterson Says:

    Hey Brian,

    Yes, there is a way. You are looking for the “singleton_methods” method, and we will be discussing that tomorrow night!

  4. bthatswho Says:

    word!

Leave a Reply