Class: MemDB::Idx::Chars

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

Defined Under Namespace

Classes: Chars, ReversedChars

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) ⇒ Chars

Returns a new instance of Chars.



72
73
74
# File 'lib/mem_db/idx/chars.rb', line 72

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/chars.rb', line 10

def field
  @field
end

Instance Method Details

#map_query(text) ⇒ Object



80
81
82
# File 'lib/mem_db/idx/chars.rb', line 80

def map_query(text)
  Chars.new(text)
end

#map_value(raw) ⇒ Object



76
77
78
# File 'lib/mem_db/idx/chars.rb', line 76

def map_value(raw)
  raw.chars
end