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

Version Path
marcandre-backports-1.8.0 lib/backports/1.8.7/regexp.rb
marcandre-backports-1.8.1 lib/backports/1.8.7/regexp.rb
marcandre-backports-1.8.2 lib/backports/1.8.7/regexp.rb
marcandre-backports-1.8.3 lib/backports/1.8.7/regexp.rb
marcandre-backports-1.8.4 lib/backports/1.8.7/regexp.rb
marcandre-backports-1.9.0 lib/backports/1.8.7/regexp.rb
backports-3.0.2 lib/backports/1.8.7/regexp.rb
backports-3.0.1 lib/backports/1.8.7/regexp.rb
backports-3.0.0 lib/backports/1.8.7/regexp.rb
backports-2.8.2 lib/backports/1.8.7/regexp.rb
backports-2.8.1 lib/backports/1.8.7/regexp.rb
backports-2.8.0 lib/backports/1.8.7/regexp.rb
backports-2.7.1 lib/backports/1.8.7/regexp.rb
backports-2.7.0 lib/backports/1.8.7/regexp.rb
backports-2.6.7 lib/backports/1.8.7/regexp.rb
backports-2.6.6 lib/backports/1.8.7/regexp.rb
backports-2.6.5 lib/backports/1.8.7/regexp.rb
fragrant-0.0.5 vendor/bundle/ruby/1.9.1/gems/backports-2.6.4/lib/backports/1.8.7/regexp.rb
backports-2.6.4 lib/backports/1.8.7/regexp.rb
backports-2.6.3 lib/backports/1.8.7/regexp.rb