I read a class like this.what’s the description work for?
class Employee
description “xxxxxxxx”
#some code continue here
end
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
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
Yeah, but that’s not the one used in his code snippet.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs