Ok -- new to programming in general and google isn''t helping with this question because it''s too generic. Basically, what is a Class? Is it the equivalent of the xhtml <div id = foo> line? Basically defining a piece of code so it can be called later? I''m trying to get my hands around the basics and could really use a tip.. thx. AC -- Posted via http://www.ruby-forum.com/.
There are A LOT or resources on google for this type of thing. Try googling "oo programming" There are so many documents "Results *1* - * 10* of about *2,900,000"* Or from a ruby (and therefore rails point of view) http://www.rubycentral.com/book/ Good Luck!! On 11/28/05, anonymous <jack-uoHweeQC0x/QT0dZR+AlfA@public.gmane.org> wrote:> > Ok -- new to programming in general and google isn''t helping with this > question because it''s too generic. > > Basically, what is a Class? Is it the equivalent of the xhtml <div id > foo> line? Basically defining a piece of code so it can be called > later? > > I''m trying to get my hands around the basics and could really use a > tip.. > > thx. > > AC > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
You may find the following helpful: Learn to Program (in Ruby) http://pine.fm/LearnToProgram/?Chapter=Contents Programming Ruby - The Pragmatic Programmer''s Guide http://www.rubycentral.com/book/index.html On 27/11/05, anonymous <jack-uoHweeQC0x/QT0dZR+AlfA@public.gmane.org> wrote:> Ok -- new to programming in general and google isn''t helping with this > question because it''s too generic. > > Basically, what is a Class? Is it the equivalent of the xhtml <div id > foo> line? Basically defining a piece of code so it can be called > later? > > I''m trying to get my hands around the basics and could really use a > tip.. > > thx. > > AC > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Hi: From one newbie to another... The best (easiest to grasp and manipulate) explanation I have had is that it is a mould (is that the right spelling) from which to make an object. So a cup mould would produce cups. All the cups would be largely the same (except that parameters could vary them slightly). That is all a class is, as far as I know. Not a technical answer but probably what you are looking for. bruce On 27-Nov-05, at 9:22 PM, anonymous wrote:> Ok -- new to programming in general and google isn''t helping with this > question because it''s too generic. > > Basically, what is a Class? Is it the equivalent of the xhtml <div > id > foo> line? Basically defining a piece of code so it can be called > later? > > I''m trying to get my hands around the basics and could really use a > tip.. > > thx. > > AC > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails
On Monday 28 Nov 2005 04:39, Hammed Malik wrote:> You may find the following helpful:Not forgetting "Why''s (Poignant) Guide to Ruby" - it''s madder than a sack full of badgers, but somehow also informative, a good introduction and fun too: http://poignantguide.net/ruby/ ~Dave -- Dave Silvester Rent-A-Monkey Website Development Web: http://www.rentamonkey.com/