Sha256: b1105dce140e27eddfb290156a1653c1b611736fc56b67df595f90f30a32bc3d
Contents?: true
Size: 437 Bytes
Versions: 1
Compression:
Stored size: 437 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] unless (union(%w(a b)) rescue false) class << self 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
backports-3.0.3 | lib/backports/1.8.7/regexp.rb |