Factory « Design Patterns « Ruby






1.Use class method to create object
2.Factory pattern