Why use __FILE_, __LINE__ in class_eval?

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.

On Sep 5, 2008, at 9:48 AM, Ben J. wrote:

Thanks for your help.

raise an error inside the eva’d code and see

a @ http://codeforpeople.com/

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs