Check whether another lib has implemented ruby 1.9 string interp syntax

This commit is contained in:
Jeremy Kemper 2009-11-14 02:00:04 -08:00
parent e1385be025
commit 4403dfac6c
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@
You may redistribute it and/or modify it under the same license terms as Ruby.
=end
if RUBY_VERSION < '1.9'
if RUBY_VERSION < '1.9' && !"".respond_to?(:interpolate_without_ruby_19_syntax)
# KeyError is raised by String#% when the string contains a named placeholder
# that is not contained in the given arguments hash. Ruby 1.9 includes and