Hi,

At Sun, 4 Feb 2007 05:04:04 +0900,
Austin Ziegler wrote in [ruby-core:10185]:
> I have some code like:
> 
>   if rr.instance_variables.include?("@__transaction_checkpoint__")

    if rr.instance_eval {defined?(@__transaction_checkpoint__)}

> Now, I don't *really* need this particular test except to dramatically
> reduce the number of warnings generated by Transaction::Simple; what
> I'm curious about is why the change was made. Alternatively, without
> doing a check on RUBY_VERSION, how can I have one test that works in
> both Ruby 1.8 and Ruby 1.9?

1.9 has and 1.8.6 will have #instance_variable_defined? method.

-- 
Nobu Nakada