Class: Arel::Nodes::Matches
- Defined in:
- lib/arel/nodes/matches.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#case_sensitive ⇒ Object
Returns the value of attribute case_sensitive.
-
#escape ⇒ Object
readonly
Returns the value of attribute escape.
Attributes inherited from Binary
Instance Method Summary collapse
-
#initialize(left, right, escape = nil, case_sensitive = false) ⇒ Matches
constructor
A new instance of Matches.
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, case_sensitive = false) ⇒ Matches
Returns a new instance of Matches.
8 9 10 11 12 |
# File 'lib/arel/nodes/matches.rb', line 8 def initialize(left, right, escape = nil, case_sensitive = false) super(left, right) @escape = escape && Nodes.build_quoted(escape) @case_sensitive = case_sensitive end |
Instance Attribute Details
#case_sensitive ⇒ Object
Returns the value of attribute case_sensitive.
6 7 8 |
# File 'lib/arel/nodes/matches.rb', line 6 def case_sensitive @case_sensitive end |
#escape ⇒ Object (readonly)
Returns the value of attribute escape.
5 6 7 |
# File 'lib/arel/nodes/matches.rb', line 5 def escape @escape end |