Skip to content

Instantly share code, notes, and snippets.

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}
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