Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example of a map for https://medium.com/p/f6763b23f76e
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