This file contains hidden or 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
| def print_out(string) | |
| STDOUT << string | |
| end | |
| def products | |
| @products ||= { 827 => {'name' => "ARM", 'price' => 349.99}, | |
| 199 => {'name' => "LEG", 'price' => 224.75}, | |
| 776 => {'name' => "FIRSTBORN", 'price' => 1499.95}, | |
| 222 => {'name' => "LIFESAVINGS", 'price' => 49.99}, | |
| 811 => {'name' => "RETIREMENT", 'price' => 49.99} |
This file contains hidden or 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
| def products | |
| @products ||= { 827 => ["ARM",349.99], | |
| 199 => ["LEG", 224.75], | |
| 776 => ["FIRSTBORN",1499.95], | |
| 222 => ["LIFESAVINGS",49.99], | |
| 811 => ["RETIREMENT",49.99]} | |
| end | |
| puts | |
| print "1. Add a product |