how about:
```
versions = (RUBY_VERSION > "2" ? xxxx : yyyy)
versions.each do
```