Description, what is it?

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

class Employee
description “xxxxxxxx”
#some code continue here
end

Zhenning G. wrote:

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

class Employee
 description “xxxxxxxx”
 #some code continue here
end

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

HTH,
Sebastian

On Sun, Oct 12, 2008 at 10:40 AM, Sebastian H.
[email protected] wrote:

Zhenning G. wrote:

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

Well, it’s not part of ruby core/stdlib

erm, uh, at http://www.ruby-doc.org/core/ I find “description” listed
as a method of Generators::HtmlMethod :slight_smile:

Hassan S. wrote:

Well, it’s not part of ruby core/stdlib

erm, uh, at http://www.ruby-doc.org/core/ I find “description” listed
as a method of Generators::HtmlMethod :slight_smile:

Yeah, but that’s not the one used in his code snippet.