Account for ruby version in #duplicable? example