Adding support for ruby 2.0 without breaking legacy support