#!/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