Welcome to the Ruby Design Patterns Repository! This repository contains examples of various design patterns implemented in Ruby. Each pattern example is fully functional and can be executed from the command line.
To run any example from the command line, follow these steps:
- Clone this repository to your local machine:
git clone https://github.com/davidmrtz-dev/ruby-d-patterns
- Navigate to the directory of the design pattern you want to explore:
cd ruby-design-patterns/creational/singleton
- Run the Ruby file:
ruby singleton.rb
This repository includes examples of the following design patterns:
- Creational Patterns
- Singleton
- Factory Method
- Abstract Factory
- Builder
- Prototype
- Structural Patterns
- Adapter
- Bridge
- Composite
- Decorator
- Facade
- Behavioral Patterns
- Observer
- Strategy
- Command
- Iterator
- State
If you have any ideas for additional design patterns or improvements to existing examples, feel free to contribute! Simply fork this repository, make your changes, and submit a pull request.
This repository is licensed under the MIT License. See the LICENSE file for details.
Special thanks to the authors and contributors of the various Ruby design pattern resources that served as inspiration for this repository.
Happy coding! 🚀