Reflection and files

B

brian.kejser

Hi

Suppose I have a ruby file with a single class. Is it possible to write a
ruby script that can extract the class name from the file?

Thanks
 
B

brian.kejser

Hi

Let me rephrase the question ....

Is it possible to extract the class name via reflection?

Thanks



-----Original Message-----
From: (e-mail address removed)
Sent: Mon, September 11, 2006 15:52
To: "ruby-talk ML" <[email protected]>
Subject: Reflection and files

Hi

Suppose I have a ruby file with a single class. Is it possible to write a
ruby script that can extract the class name from the file?

Thanks
 

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,212
Messages
2,571,101
Members
47,695
Latest member
KayleneBee

Latest Threads

Top