From: Alexey Bovanenko Date: 2010-08-09T02:57:01+09:00 Subject: Re: New in classes --0016e6d26cb654a0a1048d53a09c Content-Type: text/plain; charset=UTF-8 Hi! You have a class. Next, Test.new - it's a instantiation, you create the real object in memory from you class. You need to store that instance in variable to work with it, f.e class Test def test put "Hello" end end v=Test.new // I create instance and store it in variable v.test // call method test To work with real object you need have link for it. This link is a variable "v" On Sun, Aug 8, 2010 at 6:54 PM, Amir Ebrahimifard wrote: > Hi > In the attached code what is the meaning of colored part of code? what > is the meaning those codes that showed when I wrote "Test.new" and > "variable = Test.new" ? > > Attachments: > http://www.ruby-forum.com/attachment/4926/capture.jpg > > -- > Posted via http://www.ruby-forum.com/. > > -- With regards, Alexei Bovanenko --0016e6d26cb654a0a1048d53a09c--