Values?

B

Bertram Scharpf

Hi,


what's the use of class Values below Array?

Google finds everything when I ask 'ruby values.new', e.g.

Thanks in advance.


Bertram
 
E

ES

Hi,


what's the use of class Values below Array?

Google finds everything when I ask 'ruby values.new', e.g.

I think CGI or some other web library used Values for something,
maybe? Where did you come across it?
Thanks in advance.


Bertram

E
 
B

Bertram Scharpf

Hi,

Am Montag, 21. Mär 2005, 00:07:45 +0900 schrieb ES:
I think CGI or some other web library used Values for something,
maybe? Where did you come across it?

I'm assembling a quick reference. I find out predefined
classes by:

c = self.class.constants.select do |x|
(eval x+".class") <= Class
end.map do |x|
ancs = eval x + ".ancestors"
ancs.reject! { |y| y.class > Class }
ancs.map! { |y| y.name }
ancs.reverse!
[ ancs, x]
end.sort!

puts c.map { |a,x| " " * a.length + x }

Saying

$ find ruby-cvs -type f -exec grep -nH rb_cValues {} \;

finds almost nothing.

Bertram
 

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

No members online now.

Forum statistics

Threads
474,169
Messages
2,570,919
Members
47,460
Latest member
eibafima

Latest Threads

Top