Class: MemDB::Idx::Reverse

Inherits:
Object
  • Object
show all
Includes:
MemDB::Idx
Defined in:
lib/mem_db/idx/reverse.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) ⇒ Reverse

Returns a new instance of Reverse.



10
11
12
# File 'lib/mem_db/idx/reverse.rb', line 10

def initialize(original)
  @original = original
end

Instance Method Details

#fieldObject



14
15
16
# File 'lib/mem_db/idx/reverse.rb', line 14

def field
  @original.field
end

#map_query(val) ⇒ Object



22
23
24
# File 'lib/mem_db/idx/reverse.rb', line 22

def map_query(val)
  @original.map_query(val).reverse
end

#map_value(val) ⇒ Object



18
19
20
# File 'lib/mem_db/idx/reverse.rb', line 18

def map_value(val)
  @original.map_value(val).reverse
end