Week 7 Homework

This week there will be no programming homework. Instead, I want you to look through Ruby’s core and standard library. Find examples of where the following patterns are used:

  • Singleton
  • Template
  • Adapter
  • Factory
  • Decorator
  • Observer

Email me what you find for each pattern. Please send at least one example per pattern from Ruby’s source. If you cannot find the pattern in Ruby’s core or standard library, find it in a gem you use. Just make sure to tell me specifically where you found that pattern being used.

Leave a Reply