Sha256: f1a4c1327ca3fa11fb184befde3da3314117bab307339f4afe5fad238cd4404e
Contents?: true
Size: 436 Bytes
Versions: 72
Compression:
Stored size: 436 Bytes
Contents
class Regexp # Standard in Ruby 1.8.7+. See official documentation[http://www.ruby-doc.org/core-1.8.7/classes/Regexp.html] class << self unless (union(%w(a b)) rescue false) def union_with_array_argument(*arg) return union_without_array_argument(*arg) unless arg.size == 1 union_without_array_argument(*arg.first) end Backports.alias_method_chain self, :union, :array_argument end end end
Version data entries
72 entries across 72 versions & 3 rubygems