All pastes #1255312 Raw Edit

customer

public ruby v1 · immutable
#1255312 ·published 2008-11-13 16:16 UTC
rendered paste body
#!/usr/bin/env rubymyfile = File.new "Details.txt", "w+"class Customerinfo    def customername        print "What is the customer name? "        name = gets    end    def customerlastname        print "What is the customer last name? "        name = gets    end    def customerID        print "Enter customer ID: "        id = gets    endendclass OrderDetails    def orderID        print "Please input the order ID: "        orderID = gets    end    def orderDetails        print "Product name: "        product = gets    endendputs "All current data entered has been written to file."ob = Customerinfo.newob.customernameob.customerlastnameob.customerIDob = OrderDetails.newob.orderIDob.orderDetails