[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Reflection and files

brian.kejser

9/11/2006 10:52:00 PM

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




2 Answers

brian.kejser

9/11/2006 10:55:00 PM

0

Hi

Let me rephrase the question ....

Is it possible to extract the class name via reflection?

Thanks



-----Original Message-----
From: brian.kejser@protexis.com
Sent: Mon, September 11, 2006 15:52
To: "ruby-talk ML" <ruby-talk@ruby-lang.org>
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







Ara.T.Howard

9/11/2006 10:59:00 PM

0