Class: Montage::Operators::Like

Inherits:
Object
  • Object
show all
Defined in:
lib/montage/operators/like.rb

Class Method Summary collapse

Class Method Details

.==(value) ⇒ Object



12
13
14
# File 'lib/montage/operators/like.rb', line 12

def self.==(value)
  value =~ /like/i && !value.downcase.include?("ilike")
end

.montage_operatorObject



8
9
10
# File 'lib/montage/operators/like.rb', line 8

def self.montage_operator
  "$contains"
end

.operatorObject



4
5
6
# File 'lib/montage/operators/like.rb', line 4

def self.operator
  "like"
end