Class: MemDB::Idx::Itself

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

Constant Summary

Constants included from MemDB::Idx

ANY

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from MemDB::Idx

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

Constructor Details

#initialize(field) ⇒ Itself

Returns a new instance of Itself.



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

def initialize(field)
  @field = field
end

Instance Attribute Details

#fieldObject (readonly)

Returns the value of attribute field.



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

def field
  @field
end

Instance Method Details

#map_query(val) ⇒ Object



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

def map_query(val)
  val
end

#map_value(val) ⇒ Object



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

def map_value(val)
  val
end