def foo(arg1, arg2, arg3, arg4 = SOME_CONST) ... puts "arg4 is true" if arg4 puts "!arg4 is false" unless !arg4 # <---INTERMITTENTLY this line will not print when the line above and below prints! puts "!!arg4 is true" if !!arg4 ... end
ensureblock to the method in question (which adds a catch block, which turns off JIT) problem goes away.