Class: MemDB::Idx::Pattern
- Inherits:
-
Object
- Object
- MemDB::Idx::Pattern
- Includes:
- MemDB::Idx
- Defined in:
- lib/mem_db/idx/pattern.rb
Defined Under Namespace
Classes: Pattern
Constant Summary
Constants included from MemDB::Idx
Instance Attribute Summary collapse
-
#field ⇒ Object
readonly
Returns the value of attribute field.
Instance Method Summary collapse
-
#initialize(field, min: 3) ⇒ Pattern
constructor
A new instance of Pattern.
- #map_query(text) ⇒ Object
- #map_value(pattern) ⇒ Object
Methods included from MemDB::Idx
#default, #default_any, #downcase, #prepare_query, #value
Constructor Details
#initialize(field, min: 3) ⇒ Pattern
Returns a new instance of Pattern.
57 58 59 60 |
# File 'lib/mem_db/idx/pattern.rb', line 57 def initialize(field, min: 3) @field = field @min = min end |
Instance Attribute Details
#field ⇒ Object (readonly)
Returns the value of attribute field.
55 56 57 |
# File 'lib/mem_db/idx/pattern.rb', line 55 def field @field end |