J
Joshua Ball
[Note: parts of this message were removed to make it a legal post.]
I am curious if there is a programatic way to list all methods of a class.
(Yes, I know about "ri", I am just curious here)
For instance, I am trying to figure out what I could do with the File f in:
open(ARGV[0], 'rb') { |f|
puts f.stat.mtime
puts f.class
}
Now, f.class returns: File
Is there anything like:
f.functions.each { |p| puts p }
Thanks
I am curious if there is a programatic way to list all methods of a class.
(Yes, I know about "ri", I am just curious here)
For instance, I am trying to figure out what I could do with the File f in:
open(ARGV[0], 'rb') { |f|
puts f.stat.mtime
puts f.class
}
Now, f.class returns: File
Is there anything like:
f.functions.each { |p| puts p }
Thanks