- Some people choose to implement interfaces in ruby like this:
class InterfaceModel
def something
raise NotImplementedError, "Implement this method in a child class"
end
end- I chose not to implement them and just create classes like they were supposed to implement all the methods.
- Abstract Factory
- Factory Method
- Builder
- Prototype
- Singleton
- Adapter
- Bridge
- Composite
- Decorator
- Facade
- Flyweight
- Proxy
- Chain of Responsibility
- Command
- Iterator
- Mediator
- Memento
- Observer
- State
- Strategy
- Template method
- Visitor