# File lib/backports/1.9.1/regexp/try_convert.rb, line 4defRegexp.try_convert(obj)
Backports.try_convert(obj, Regexp, :to_regexp)
end
union_with_array_argument(*arg)click to toggle source
# File lib/backports/1.8.7/regexp/union.rb, line 5defunion_with_array_argument(*arg)
returnunion_without_array_argument(*arg) unlessarg.size==1union_without_array_argument(*arg.first)
end