Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Accessing Instance Variables from file
Mark cheng
7/11/2006 1:54:00 PM
How do I access all of the instance variables from a ruby file that has
classes in if I do know the class names, but I can store the class names
as class-type objects? Object.instance_variables only applies to various
methods (i tried on irb) and I cannot store method names as methods
types because that is not an object type. I was wondering if there was a
library to perform this function or should I just write my own to add to
the module class?
--
Posted via
http://www.ruby-...
.
1 Answer
Logan Capaldo
7/12/2006 11:45:00 PM
0
On Jul 11, 2006, at 9:53 AM, Mark cheng wrote:
> How do I access all of the instance variables from a ruby file that
> has
> classes in if I do know the class names, but I can store the class
> names
> as class-type objects? Object.instance_variables only applies to
> various
> methods (i tried on irb) and I cannot store method names as methods
> types because that is not an object type. I was wondering if there
> was a
> library to perform this function or should I just write my own to
> add to
> the module class?
>
> --
> Posted via
http://www.ruby-...
.
>
Huh? What do you want exactly?
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Accessing Instance Variables from file
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password