Sha256: 3d3d7aaad9999ef5a9b2d822c4c0ec342eb9150cfd111a751a47532bed1b19e1
Contents?: true
Size: 517 Bytes
Versions: 8
Compression:
Stored size: 517 Bytes
Contents
class ThinkingSphinx::Core::Interpreter < BasicObject def self.translate!(index, block) new(index, block).translate! end def initialize(index, block) @index = index mod = ::Module.new mod.send :define_method, :translate!, block mod.send :extend_object, self end private def search_option?(key) ::ThinkingSphinx::Middlewares::SphinxQL::SELECT_OPTIONS.include? key end def method_missing(method, *args) ::ThinkingSphinx::ActiveRecord::Column.new method, *args end end
Version data entries
8 entries across 8 versions & 1 rubygems