description, what is it?

Z

Zhenning Guan

I read a class like this.what's the description work for?


class Employee
description "xxxxxxxx"
#some code continue here
end
 
S

Sebastian Hungerecker

Zhenning said:
I read a class like this.what's the description work for?


class Employee
=C2=A0description "xxxxxxxx"
=C2=A0#some code continue here
end

Well, it's not part of ruby core/stdlib, but it seems to be an instance met=
hod=20
of Module or Class (or maybe Object) that, judging by its name, stores the=
=20
description of a class/module (or maybe object) and presumably allows you t=
o=20
acces this description from a documentationt or source code browser of some=
=20
sort - or something like that.

HTH,
Sebastian
=2D-=20
Jabber: (e-mail address removed)
ICQ: 205544826
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,199
Messages
2,571,045
Members
47,643
Latest member
ashutoshjha_1101

Latest Threads

Top