Description, what is it?


#1

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

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


#2

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


#3

On Sun, Oct 12, 2008 at 10:40 AM, Sebastian H.
removed_email_address@domain.invalid 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:


#4

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.