class ThinkingSphinx::Core::Interpreter
Public Class Methods
new(index, block)
click to toggle source
# File lib/thinking_sphinx/core/interpreter.rb, line 8 def initialize(index, block) @index = index mod = ::Module.new mod.send :define_method, :translate!, block mod.send :extend_object, self end
translate!(index, block)
click to toggle source
# File lib/thinking_sphinx/core/interpreter.rb, line 4 def self.translate!(index, block) new(index, block).translate! end
Private Instance Methods
method_missing(method, *args)
click to toggle source
# File lib/thinking_sphinx/core/interpreter.rb, line 22 def method_missing(method, *args) ::ThinkingSphinx::ActiveRecord::Column.new method, *args end
search_option?(key)
click to toggle source
# File lib/thinking_sphinx/core/interpreter.rb, line 18 def search_option?(key) ::ThinkingSphinx::Middlewares::SphinxQL::SELECT_OPTIONS.include? key end