Skip to content

Instantly share code, notes, and snippets.

View ricardo-vallejo's full-sized avatar
🤓
Learning

Ricardo Vallejo ricardo-vallejo

🤓
Learning
  • S4N
  • Colombia
View GitHub Profile
@ricardo-vallejo
ricardo-vallejo / Builder.scala
Created December 15, 2021 20:57 — forked from kencoba/Builder.scala
Builder pattern (Design patterns in Scala)
abstract class Product
abstract class PizzaBuilder {
var dough: String
var sauce: String
var topping: String
def withDough(dough: String): PizzaBuilder
def withSauce(sauce: String): PizzaBuilder
def withTopping(topping: String): PizzaBuilder
### Keybase proof
I hereby claim:
* I am ricardo-vallejo on github.
* I am ricardovallejo (https://keybase.io/ricardovallejo) on keybase.
* I have a public key ASCreseSicDaQ8QsPjycswj5izdTtWPcmigGZzx76rN69wo
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am ricardo-vallejo on github.
  • I am ricardovallejo (https://keybase.io/ricardovallejo) on keybase.
  • I have a public key ASB-hZXpY0OYWd-gCEFdnmrQCnLUYYQuCI2dtxLKWyEObgo

To claim this, I am signing this object: