From: "Matthew, Graeme" Date: 2002-09-19T15:35:36+09:00 Subject: Business Objects I have been searching the www for some examples on how programmers have implemented OO models in a real business environment. Does anyone know of any examples around eg Orders , inventory. I am planning a "software development project management system" that I will be writing in Ruby /Apache / Mysql. I have decided to move away from Perl as its difficult to refactor my code even after 6 months let alone someone else's. I am trying to find out the best way to implement an OO structure, so the question is Do you take a class and embed all sub classes within the one definition eg class Project class ProjectData end class ProjectSearch end class ProjectScreen end end class OR use them seperately using file locations eg require Project/Data require Project/Search require Project/Screen Any advice would be welcome, or criticism :-) Graeme Matthew Analyst Programmer Mercer Investment Consulting Level 29, 101 Collins Street, Melbourne, VIC, 3001, Australia Tel - 61 3 9245 5352 Fax - 61 3 9245 5330 visit http://www.merceric.com -----Original Message----- From: JamesBritt [mailto:james@jamesbritt.com] Sent: Thursday, 19 September 2002 16:24 To: ruby-talk@ruby-lang.org Subject: RE: If Statement Help > Hi All > > Im currently learning ruby and its going well. I have been looking at a > number of "guru" libraries such as DBI, CGI etc to try and learn > by example. > I have noticed that a number of if statements have the following > syntax eg: > > if File.name? > > Can someone please explain the ? usage as I have searched all over the > Pragmatic Programmer pages with no answer. Methods that end with a question mark should return a Boolean value. This is a coding convention, not a parser-enforced syntax rule. James > > Thanks __ ********************************************** This e-mail and any attachments may be confidential or legally privileged. If you received this message in error or are not the intended recipient, you should destroy the e-mail message and any attachments or copies, and you are prohibited from retaining, distributing, disclosing or using any information contained herein. Please inform us of the erroneous delivery by return e-mail. Thank you for your cooperation. ********************************************** ec03/04