Sha256: 5a65c81217eabaf26ffa859733ab5412c04041ca6a4ced102d4a7a59c06dc5e2

Contents?: true

Size: 308 Bytes

Versions: 18

Compression:

Stored size: 308 Bytes

Contents

class Regexp
  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
      alias_method_chain :union, :array_argument
    end
  end
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
marcandre-backports-1.6.0 lib/backports/regexp.rb
marcandre-backports-1.6.1 lib/backports/regexp.rb
marcandre-backports-1.6.3 lib/backports/regexp.rb
marcandre-backports-1.6.4 lib/backports/regexp.rb
marcandre-backports-1.6.6 lib/backports/regexp.rb
marcandre-backports-1.6.7 lib/backports/regexp.rb
marcandre-backports-1.6.8 lib/backports/regexp.rb
marcandre-backports-1.7.0 lib/backports/regexp.rb
marcandre-backports-1.7.1 lib/backports/regexp.rb
backports-1.7.1 lib/backports/regexp.rb
backports-1.6.4 lib/backports/regexp.rb
backports-1.6.6 lib/backports/regexp.rb
backports-1.7.0 lib/backports/regexp.rb
backports-1.6.0 lib/backports/regexp.rb
backports-1.6.3 lib/backports/regexp.rb
backports-1.6.1 lib/backports/regexp.rb
backports-1.6.7 lib/backports/regexp.rb
backports-1.6.8 lib/backports/regexp.rb