newbie Q: introspection to find __FILE__ and __LINE__

Discussion in 'Ruby' started by David Tran, Sep 15, 2005.

  1. David Tran

    David Tran Guest

    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.
     
    David Tran, Sep 15, 2005
    #1
    1. Advertisements

  2. David Tran

    nobu.nokada Guest

    Hi,

    At Fri, 16 Sep 2005 00:36:14 +0900,
    David Tran wrote in [ruby-talk:156270]:
    Those are reserved keyword, not variables.
     
    nobu.nokada, Sep 15, 2005
    #2
    1. Advertisements

  3. David Tran

    David Tran Guest

    Hi,
    Thank you.
     
    David Tran, Sep 15, 2005
    #3
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.