hi there. how could I find the cause when an `instance_eval &block` is raising an exception? it's a failed conversion of fixnum to string, but I have no idea which line of code even tries to do that...
I was trying to use byebug to step through the code line-by-line, but it goes directly to the `rescue` block after the `instance_eval`
Ox0dea: I commented that line out ;) so, no more Regexp.quote except for in some specs
Ox0dea: turns out you can call `instance_eval` either with string, filename, line_no OR with a block. what is not possible (and leads to my error) is `instance_eval(filename, line_no) &block`
Ox0dea: exactly, and when I pass that block to instance_eval, I could give it source and line_no information from that. or will it figure that out from Proc#source_location itself?
workmad3: I want to ensure that the file I read is the file that I checked before, so nothing can exchange the file between the line that checks if it's ok and the line that reads the file