Sha256: 6e54e66a06065daf12cbb27e736a2f62f3c1f880c964e16c01a571426f7e4f06

Contents?: true

Size: 171 Bytes

Versions: 3

Compression:

Stored size: 171 Bytes

Contents

class Regexp

  # Operator form of `Regexp.union`:
  #
  #   /a/ | /b/  #=> /(a|b)/
  #
  def |(arg)
    Regexp.union(self, arg.is_a?(Regexp) ? arg : arg.to_s)
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
facets-2.9.0 lib/tour/facets/regexp/op_or.rb
facets-2.9.0.pre.2 lib/tour/facets/regexp/op_or.rb
facets-2.9.0.pre.1 lib/tour/facets/regexp/op_or.rb