Module: Wherex::AbstractAdapter
- Defined in:
- lib/wherex/adapters.rb
Instance Method Summary collapse
- #regexp(left, right) ⇒ Object
- #regexp_not(left, right) ⇒ Object
- #regexp_not_operator ⇒ Object
- #regexp_operator ⇒ Object
- #regexp_quote(str) ⇒ Object
Instance Method Details
#regexp(left, right) ⇒ Object
12 13 14 |
# File 'lib/wherex/adapters.rb', line 12 def regexp left, right "#{left} #{regexp_operator} #{right}" end |
#regexp_not(left, right) ⇒ Object
16 17 18 |
# File 'lib/wherex/adapters.rb', line 16 def regexp_not left, right "#{left} #{regexp_not_operator} #{right}" end |
#regexp_not_operator ⇒ Object
8 9 10 |
# File 'lib/wherex/adapters.rb', line 8 def regexp_not_operator "NOT #{regexp_operator}" end |
#regexp_operator ⇒ Object
4 5 6 |
# File 'lib/wherex/adapters.rb', line 4 def regexp_operator "REGEXP" end |
#regexp_quote(str) ⇒ Object
20 21 22 |
# File 'lib/wherex/adapters.rb', line 20 def regexp_quote str quote str end |