Skip to content
This repository was archived by the owner on Dec 24, 2021. It is now read-only.

joshayoung/ruby-design-patterns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ruby-design-patterns

Steps:

  • Create a Gemfile with a gem inside
  • Run bundler
  • Run rspec --init
  • Run bundle install --binstubs

Ref:

Design Patterns:

Classes:

  • When building a class, you should not reach into the inside of the class and grab values out. Ideally, you will have a static method that returns an object. All the values that you need from the class will delivered via the instance that gets instantiated from the static method on the class. You can have more than one static method on the class that instantiates an instance of itself in different ways, but all the the data you grab from the class should come out of an instantiated version of this class.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published