Class: MemDB::Idx::Downcase

Inherits:
Object
  • Object
show all
Includes:
MemDB::Idx
Defined in:
lib/mem_db/idx/downcase.rb

Constant Summary

Constants included from MemDB::Idx

ANY

Instance Method Summary collapse

Methods included from MemDB::Idx

#default, #default_any, #downcase, #prepare_query, #value

Constructor Details

#initialize(original) ⇒ Downcase

Returns a new instance of Downcase.



8
9
10
# File 'lib/mem_db/idx/downcase.rb', line 8

def initialize(original)
  @original = original
end

Instance Method Details

#fieldObject



12
13
14
# File 'lib/mem_db/idx/downcase.rb', line 12

def field
  @original.field
end

#map_query(str) ⇒ Object



20
21
22
# File 'lib/mem_db/idx/downcase.rb', line 20

def map_query(str)
  @original.map_query(str.downcase)
end

#map_value(str) ⇒ Object



16
17
18
# File 'lib/mem_db/idx/downcase.rb', line 16

def map_value(str)
  @original.map_value(str.downcase)
end