Code examples are written in Ruby and taken mostly from Rem Zolotykh's Tuts+ course.
Original files are also available in github.
These files are written by me. I have added some additinional test cases and refactored a bit.
12 Design Patterns implemented in this project:
- Template Method
- Strategy
- Observer
- Iterator
- Command
- Factory and Abstract Factory
- Singleton
- Builder
- Composite
- Decorator
- Proxy
- Adapter
requires Ruby v2 or newer.
- git clone https://github.com/bkdir/design_patterns_ruby_2.git
- bundle install
- rspec