Class: Arel::Nodes::Matches

Inherits:
Binary show all
Defined in:
lib/arel/nodes/matches.rb

Direct Known Subclasses

DoesNotMatch

Instance Attribute Summary collapse

Attributes inherited from Binary

#left, #right

Instance Method Summary collapse

Methods inherited from Binary

#eql?, #hash, #initialize_copy

Methods inherited from Node

#_caller, #and, #each, #not, #or, #to_sql

Methods included from FactoryMethods

#create_and, #create_false, #create_join, #create_on, #create_string_join, #create_table_alias, #create_true, #grouping, #lower

Constructor Details

#initialize(left, right, escape = nil) ⇒ Matches

Returns a new instance of Matches.



6
7
8
9
# File 'lib/arel/nodes/matches.rb', line 6

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

Instance Attribute Details

#escapeObject (readonly)

Returns the value of attribute escape.



4
5
6
# File 'lib/arel/nodes/matches.rb', line 4

def escape
  @escape
end