aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/nodes/matches.rb
blob: 583fb97c9bfcfc94818953430b25023d8d9e943a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module Arel
  module Nodes
    class Matches < Binary
      attr_reader :escape

      def initialize(left, right, escape = nil)
        super(left, right)
        @escape = escape && Nodes.build_quoted(escape)
      end
    end

    class DoesNotMatch < Matches; end
  end
end