Isn’t:
A.class_eval { n }
identical to:
A.instance_eval { n }
Because #class_eval basically just sets self to the class object?
I’ve never figured out the difference between the two. Is there one?
- Dan
Isn’t:
A.class_eval { n }
identical to:
A.instance_eval { n }
Because #class_eval basically just sets self to the class object?
I’ve never figured out the difference between the two. Is there one?
Never mind. Answered elsewhere.
Apologies.