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,744
Messages
2,569,484
Members
44,906
Latest member
SkinfixSkintag

Latest Threads

Top