Skip to content

A guide to undertand and test design patterns in ruby language

Notifications You must be signed in to change notification settings

jmjurado23/ruby-design-patterns

Repository files navigation

Ruby Design Patterns

This repo shows some examples of design patterns in ruby language. This is only for learning purposes and may contain failures or code that is not the best. This is intentionally to simplify the comprehension of the patterns.

Introduction

I have been thinking about a global scenario in where I could show most part of examples. I have decided to apply examples to seller envoironment. But it is easy, we only are going to have invoices with seller or remitent info and line_concepts. this diagram will show you about it:

graph LR
Invoice[Invoice] -- has one --> SellerInfo[SellerInfo]
Invoice[Invoice] -- has one --> BuyerInfo[BuyerInfo]
Invoice[Invoice] -- has many --> LineConcept[LineConcept]
Loading

Content

The patterns that are explained in this repository are:

Contributions

Feel free to add improvements or suggesting changes to the repo making requests.

Author

Juan Manuel Jurado (jmjurado23)

Thanks to

  • I highly recommend read this book to understand design patterns in ruby: Desing patterns in Ruby (Russ Olsen)

  • Thanks to https://refactoring.guru for his effort explaining patterns in different languages.

About

A guide to undertand and test design patterns in ruby language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages