Class: Chewy::Index::Compiled::Compiler
- Inherits:
-
Object
- Object
- Chewy::Index::Compiled::Compiler
- Defined in:
- lib/chewy/index/compiled.rb
Constant Summary collapse
- IDENTIFIER_RE =
/\A[A-Za-z_][A-Za-z0-9_]*[!?=]?\z/
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(index, fields: [], method_name: :__chewy_compose__) ⇒ Compiler
constructor
A new instance of Compiler.
Constructor Details
#initialize(index, fields: [], method_name: :__chewy_compose__) ⇒ Compiler
Returns a new instance of Compiler.
108 109 110 111 112 113 114 |
# File 'lib/chewy/index/compiled.rb', line 108 def initialize(index, fields: [], method_name: :__chewy_compose__) @index = index @procs = index.compiled_procs @counter = 0 @fields = fields.map(&:to_sym) @method_name = method_name end |