> Design Patterns > Bridge > Bridge Design Pattern In Ruby

Bridge Design Pattern In Ruby

Bridge design pattern in Ruby to have interface and implementation independently in separate hierarchies.


Bridge design pattern In Ruby

Output

Inside RefinedAbstraction1:Operation()
Inside ConcreteImplementor1:Operation()
Inside RefinedAbstraction2:Operation()
Inside ConcreteImplementor2:Operation()


Suresh Kumar Srivastava is founder of online learning site coursegalaxy.com and author of popular books C In Depth, Data Structures Through C In Depth. He has 18+ years experience in industry and worked on architecture and design of multiple products. This article Bridge Design Pattern In Ruby is from his Design Patterns course.