D
Diogo Veras
Hi all,
Don't know why but when I try to use the _FILE_ variable I'm getting the
following error:
irb(main):001:0> puts File.dirname(_FILE_)
NameError: undefined local variable or method `_FILE_' for main:Object
from (irb):1
from :0
I've got this error in Windows Seven and Ubuntu 10.04 LTS, both using
Ruby 1.8.7
Have also tried running the code in .rb file but get the same error.
Neither File.dirname(_FILE_) nor only _FILE_ seems to work.
Looked about it everywhere but got nothing. Any idea..?
Regards,
metanolbr
Don't know why but when I try to use the _FILE_ variable I'm getting the
following error:
irb(main):001:0> puts File.dirname(_FILE_)
NameError: undefined local variable or method `_FILE_' for main:Object
from (irb):1
from :0
I've got this error in Windows Seven and Ubuntu 10.04 LTS, both using
Ruby 1.8.7
Have also tried running the code in .rb file but get the same error.
Neither File.dirname(_FILE_) nor only _FILE_ seems to work.
Looked about it everywhere but got nothing. Any idea..?
Regards,
metanolbr