newbie Q: introspection to find __FILE__ and __LINE__

D

David Tran

What method can introspect to find __FILE__ and __LINE__ variables name ?

I tried=20
Kernel#global_variables, Kernel#local_variables,
Module#class_variables, and Object#instance_variables,
no one listed "__FILE__" and "__LINE__" vairables name.

( BTW: Of course, I am not using irb to try that )

Thank you.
 
N

nobu.nokada

Hi,

At Fri, 16 Sep 2005 00:36:14 +0900,
David Tran wrote in [ruby-talk:156270]:
What method can introspect to find __FILE__ and __LINE__ variables name ?

Those are reserved keyword, not variables.
 

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
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top