Version guards should not be inside it blocks, but around them. Check for example the style here: https://github.com/rubinius/rubinius/blob/master/spec/ruby/core/kernel/instance_variables_spec.rb#L42-L56