Why use __FILE_, __LINE__ in class_eval?

B

Ben Johnson

I've noticed in code that some people do:

class_eval src

amd some do

class_eval src, __FILE__, __LINE__

What exactly is the difference and why should I use one over the other?

Thanks for your help.
 
A

ara.t.howard

I've noticed in code that some people do:

class_eval src

amd some do

class_eval src, __FILE__, __LINE__

What exactly is the difference and why should I use one over the
other?

Thanks for your help.

raise an error inside the eva'd code and see

a @ http://codeforpeople.com/
 

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

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,823
Latest member
Nadia88

Latest Threads

Top