Created
February 14, 2017 06:22
-
-
Save ClayShentrup/e3b51787c57d855a473494960bdc2ced to your computer and use it in GitHub Desktop.
Example of a map for https://medium.com/p/f6763b23f76e
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shock_cost_class_map = { | |
front: FrontShockCost, | |
lefty: LeftyShockCost, | |
rear: RearSHockCost, | |
} | |
shock_cost_class = shock_cost_class_map.fetch(type, ShockCost) | |
shock_cost_class.new.compute |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment